<div dir="ltr"><div>Hello,</div><div><br></div><div>I use pythonxy() as my platform for python supported vtk.     Currently, I&#39;m trying to export a vtk render window to post script using the sample code (at bottom) but I&#39;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: &#39;module&#39; object has no attribute &#39;vtkGL2PSExporter&#39;</div><div><br></div><div>----------------------------</div>
<div><br></div><div>prefix=&quot;c:\\temp\\foo444&quot;</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>