<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
I am trying to figure out how to save a visualization in Paraview
directly to ps/eps format.<br>
<br>
I have compiled from source paraview 3.6 with the configuration
option VTK_USE_GL2PS set to ON.<br>
<br>
There are many hits in the mailing list archives regarding trying to
use vtkGL2PSExporter to achieve this but I couldn't find anything
that I could make work.<br>
<br>
I know that I can just use WriteImage("test.eps",
Writer="vtkPostScriptWriter") in the python shell to get what I am
asking for.<br>
<br>
However, I wonder if GL2PS could provide a better looking eps file,
and having spent a couple of hours on this, I would really like to
get to the bottom of this.<br>
<br>
I have looked at the vtkGL2PSExporter class reference at
<a class="moz-txt-link-freetext" href="http://www.vtk.org/doc/nightly/html/classvtkGL2PSExporter.html">http://www.vtk.org/doc/nightly/html/classvtkGL2PSExporter.html</a> and
from there followed the vtkGL2PSExporter (Tests) link which provides
examples of unit testing that is done on the class. One example is
actually titled "test vector EPS output" <br>
<br>
However, even after doing a: from paraview import vtk in the python
shell, when I try to follow the test example and do exp =
<meta name="qrichtext" content="1">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">
p, li { white-space: pre-wrap; }</style>vtk.vtkGL2PSExporter() I get the
following error:<br>
<br>
<meta name="qrichtext" content="1">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
<p style="margin: 0px; text-indent: 0px;"><!--StartFragment--><span
style="font-family: 'Courier'; font-size: 9pt; color: rgb(255,
0, 0);">AttributeError: 'module' object has no attribute
'vtkGL2PSExporter'</span><!--EndFragment--></p>
<br>
Can anyone shine any light on how to actually utilize the
vtkGL2PSExporter in Paraview to export an .eps, my impression is
that it has to be done in the Python Shell, and I am not very
familiar with Python.<br>
<br>
Thank You,<br>
Marcin Sliwowski<br>
</body>
</html>