[Paraview] Set TextureMaptoPlane texture via Python

Ryan Danks Ryan.Danks at rwdi.com
Tue Feb 21 10:18:58 EST 2012


I've been trying to have a texture (PNG file) applied to a multiblock surface via a Python script. My starting point was a trace of the process,which looks like this
t1 = TextureMaptoPlane()
rep = Show()
rep.Texture = []
 
When I load the PNG file with PNGSeriesReader, and make the command rep.Texture=[pngObject] Paraview crashes with the following error
ERROR: In /home/kitware/Dashboards/MyTests/Paraview-master/ParaViewCo
vtkPVSessionCore (0x1ba6360): Object type: vtkGlyph3DRepresentation, 
or the method was called with incorrect arguments.
 
while processing
Message 0 = Invoke
  Argument 0 = vtk_object_pointer {vtkGlyph3DRepresentation (0x21b2be
  Argument 1 = string_value {SetTexture}
  Argument 2 = vtk_object_pointer {vtkFileSeriesReader (0x22ca5f30)}
 
 
 
ERROR: In /home/kitware/Dashboards/MyTests/Paraview-master/ParaViewCo
vtkPVSessionCore (0x1ba6360): Aborting execution for debugging purposes.
 
Now my representation mode was set to surface so I have no idea why it's referencing vtkGlyph3DRepresentation, and the crash occurs with both multi-block and single block datasets, and in both the Linux and Windows versions of 3.12.
 
I'm hoping someone out there knows the solution to this!
 

 
 
 
Ryan Danks, B.A.Sc., E.I.T.
Project Coordinator
Rowan, Williams Davies & Irwin Inc. (RWDI)
Consulting Engineers & Scientists
 
650 Woodlawn Road West
Guelph, Ontario, Canada N1K 1B8
T (519) 823-1311 x 2282
F (519) 823-1316
email: ryan.danks at RWDI.com
web: www.rwdi.com


     RWDI - One of Canada's 50 Best Managed Companies
     www.rwdi.com/50_best/

This communication is intended for the sole use of the party to whom it was addressed and may contain information that is privileged and/or confidential. Any other distribution, copying or disclosure is strictly prohibited. If you received this email in error, please notify us immediately by replying to this email and delete the message without retaining any hard or electronic copies of same. 

Outgoing emails are scanned for viruses, but no warranty is made to their absence in this email or attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120221/d21293cb/attachment-0001.htm>


More information about the ParaView mailing list