fmeobjects.FMELibrary.replaceTexture

FMELibrary. replaceTexture ( textureReference,newTexture )

Replaces the Texture with a new one at index = ‘textureReference’. AFMEExceptionis thrown if ‘newTexture’ isNone,“textureReference”不是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.