<div dir="ltr"><div>Hello,</div><div><br></div><div>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?</div>
<div><br></div><div>Thanks,</div><div>GV</div><div><br></div><div>exporter = vtk.vtkGL2PSExporter()</div><div>AttributeError: 'module' object has no attribute 'vtkGL2PSExporter'</div><div><br></div><div>----------------------------</div>
<div><br></div><div>prefix="c:\\temp\\foo444"</div><div>exporter = vtk.vtkGL2PSExporter()</div><div>exporter.SetFilePrefix(prefix)</div><div>exporter.SetFileFormatToSVG()</div><div>exporter.SetRenderWindow(renWin)</div>
<div>exporter.CompressOff()</div><div>exporter.SetSortToOff()</div><div>#exporter.DrawBackgroundOn()</div><div>#exporter.Write3DPropsAsRasterImageOn()</div><div>exporter.Write()</div></div>