<div dir="ltr"><div><div><div><div><div><div><div><div>Hello everyone,<br><br></div>I am used to create vector images (PDF) using the export view tool in the Paraview 4.3 GUI.<br></div>As I wanted to use it in scripts I used Start Trace to get the python instructions which is :<br><br>ExportView('your_path.pdf', view=your_render_view, Rasterize3DGeometry=0)<br><br></div>Problem
is, the Rasterize3DGeometry option is unknown when you try and use it
in the console (and without it you get a pixeled image).<br><br></div>I looked up old messages and found this piece of code :<br><br>rw = your_render_view.GetRenderWindow()<br>exp = paraview.vtk.vtkInstantiator.CreateInstance('vtkGL2PSExporter')<br>exp.SetRenderWindow(rw)<br>exp.SetDrawBackground(0)<br>exp.SetSortToSimple()<br>exp.SetFileFormatToPDF()<br>exp.SetFilePrefix("your_path.pdf")<br>exp.Write3DPropsAsRasterImageOff()<br>exp.Write()<br><br></div>that
should take care of it in a less direct way. Unfortunately, the
instanciation fail and the object (named exp here) is undefined.<br><br></div>Is it only an interface problem with python ? Is there any way to get the correct instance of the renderer ?<br><br></div>Best regards,<br><br></div>Silvère Pierre</div>