Applying a texture through Python crashes Paraview
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I am trying to add a texture to a TextureMaptoPlane object via a Python script.
Based on the trace information my script uses code like the following:
t1 = TextureMaptoPlane()
rep = Show()
DataRepresentation7.Representation = 'Surface'
rep.Texture = [PNGobject]
Where PNGObject is a standard PNGSeriesReader with the desired texture png read in. Once the script reaches the line where the texture is set ParaView fails and outputs the following error message.
ERROR: In /home/kitware/Dashboards/MyTests/ParaView-master/ParaViewCore/ServerImplementation/vtkPVSessionCore.cxx, line 324 vtkPVSessionCore (0x232b260): Object type: vtkGlyph3DRepresentation, could not find requested method: "SetTexture" or the method was called with incorrect arguments.
while processing Message 0 = Invoke Argument 0 = vtk_object_pointer {vtkGlyph3DRepresentation (0x8a80170)} Argument 1 = string_value {SetTexture} Argument 2 = vtk_object_pointer {vtkFileSeriesReader (0x90dafd0)}
ERROR: In /home/kitware/Dashboards/MyTests/ParaView-master/ParaViewCore/ServerImplementation/vtkPVSessionCore.cxx, line 325 vtkPVSessionCore (0x232b260): Aborting execution for debugging purposes.
I don't know why it's referencing vtkGlyph3DRepresentation when my representation is set to Surface.