fmeobjects.FMELibrary.replaceTexture

FMELibrary.replaceTexture(textureReference, newTexture)

Replaces the Texture with a new one at index = ‘textureReference’. A FMEException is thrown if ‘newTexture’ is None, ‘textureReference’ is not a valid index or the existing shared object is not an texture type. If the ‘newTexture’ successfully replaces the existing texture, the library consumes the ‘newTexture’.

Parameters:
  • textureReference (int) – The index of the Texture to replace.

  • newTexture (FMETexture) – The new texture to replace the original with.

Return type:

None

Raises:

FMEException – An exception is raised if an error occurred.