fmeobjects.FMELibrary.addTexture

FMELibrary.addTexture(texture)

This routine adds the Texture object to the Library. (If the Texture passed in is None, this Texture is will not be added to the Library.) There is no checking for duplicates when adding a Texture. This call will always add the Texture to the Library, even if an identical Texture already exists therein. If addition is successful, a unique texture reference ‘key’ that is associated with the Texture is returned. If there are any errors in operation, an exception is raised. If the texture is successfully added to the library, the library consumes the texture.

Parameters:

texture (FMETexture) – The texture object that will be added to the library.

Return type:

int

Returns:

The unique texture reference ‘key’.

Raises:

FMEException – An exception is raised if an error occurred.