[vtkusers] using vtkGL2PSExporter in python [ under pythonXY() ]

Gideon Valch gvalch1237 at gmail.com
Tue Jul 9 02:34:35 EDT 2013


Hello,

I use pythonxy() as my platform for python supported vtk.     Currently,
I'm trying to export a vtk render window to post script using the sample
code (at bottom) but I'm getting an error (see below).   I suspect this
relates to how pythonxy() is compiled.  Can anyone suggest a workaround?

Thanks,
GV

exporter = vtk.vtkGL2PSExporter()
AttributeError: 'module' object has no attribute 'vtkGL2PSExporter'

----------------------------

prefix="c:\\temp\\foo444"
exporter = vtk.vtkGL2PSExporter()
exporter.SetFilePrefix(prefix)
exporter.SetFileFormatToSVG()
exporter.SetRenderWindow(renWin)
exporter.CompressOff()
exporter.SetSortToOff()
#exporter.DrawBackgroundOn()
#exporter.Write3DPropsAsRasterImageOn()
exporter.Write()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130708/2dfee622/attachment.htm>


More information about the vtkusers mailing list