<HTML>
<HEAD>
<TITLE>Re: [Paraview] setting graphical window size</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>When you write an image, you can specify a resolution to use independent of the size of the GUI. &nbsp;If you type in the same resolution every time, you should get the same projection.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 5/6/09 11:28 PM, &quot;John&quot; &lt;<a href="bitumen.surfer@gmail.com">bitumen.surfer@gmail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi,<BR>
<BR>
I'm using to paraview to create screenshots of multiple sets of data<BR>
(12+). Each dataset is located in a separate file and may have different<BR>
boundary conditions or different surfaces. (i.e. they are not identical<BR>
- although they *might* have elements in common and their domain size is<BR>
the same). I've written a simple script (below) using python to set my<BR>
camera angle the same between loading the state for each scenario<BR>
<BR>
However, I have one difficulty, if I have exited paraview or resized the<BR>
windows (or .#%#@.. it crashed ) the size &amp; aspect ratio of the window<BR>
displaying my 3D view may change. This results in my screenshots have<BR>
differing resolutions i.e. my first series had 1198x712 but my next was<BR>
1106x780. I know you can specify this resolution in the save screenshot<BR>
dialog - however this is after the fact and some elements seem to differ<BR>
based on the real size (i.e. legends)<BR>
<BR>
I can't seem to find an option to specify the size of this window, but I<BR>
assume I may be able to via python ? can anyone help with this ?<BR>
<BR>
Also would love to know how to move the location of the orientation axes ?<BR>
<BR>
For reference, I am not a python programmer ( but can program C, C++,<BR>
Fortran ... ) so forgive any style mistakes.<BR>
<BR>
Thanks, John<BR>
<BR>
My quick script to set camera state is: (iso_L.py)<BR>
#!/usr/bin/env python<BR>
<BR>
from paraview.servermanager import *<BR>
if not servermanager.ActiveConnection:<BR>
&nbsp;&nbsp;&nbsp;&nbsp;connection = servermanager.Connect()<BR>
view = servermanager.GetRenderView()<BR>
camera = view.GetActiveCamera()<BR>
view.CameraPosition=[0.5,-4,4]<BR>
view.CameraFocalPoint=[2.915, 0, 0.821]<BR>
view.CameraViewUp=[0, 0, 1]<BR>
view.CameraViewAngle=30<BR>
#view.ResetCamera()<BR>
view.StillRender()<BR>
_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>