Title: Re: [Paraview] setting graphical window size
I should have added that I have now just learnt that the export option and specifying the size will produce similar images - but that they aren't what i actually see on the screen. Very frustrating as I set the visual composition based on what I see on the screen.

Moreland, Kenneth wrote:
When you write an image, you can specify a resolution to use independent of the size of the GUI.  If you type in the same resolution every time, you should get the same projection.

-Ken


On 5/6/09 11:28 PM, "John" <[email protected]> wrote:

Hi,

I'm using to paraview to create screenshots of multiple sets of data
(12+). Each dataset is located in a separate file and may have different
boundary conditions or different surfaces. (i.e. they are not identical
- although they *might* have elements in common and their domain size is
the same). I've written a simple script (below) using python to set my
camera angle the same between loading the state for each scenario

However, I have one difficulty, if I have exited paraview or resized the
windows (or ....@.. it crashed ) the size & aspect ratio of the window
displaying my 3D view may change. This results in my screenshots have
differing resolutions i.e. my first series had 1198x712 but my next was
1106x780. I know you can specify this resolution in the save screenshot
dialog - however this is after the fact and some elements seem to differ
based on the real size (i.e. legends)

I can't seem to find an option to specify the size of this window, but I
assume I may be able to via python ? can anyone help with this ?

Also would love to know how to move the location of the orientation axes ?

For reference, I am not a python programmer ( but can program C, C++,
Fortran ... ) so forgive any style mistakes.

Thanks, John

My quick script to set camera state is: (iso_L.py)
#!/usr/bin/env python

from paraview.servermanager import *
if not servermanager.ActiveConnection:
    connection = servermanager.Connect()
view = servermanager.GetRenderView()
camera = view.GetActiveCamera()
view.CameraPosition=[0.5,-4,4]
view.CameraFocalPoint=[2.915, 0, 0.821]
view.CameraViewUp=[0, 0, 1]
view.CameraViewAngle=30
#view.ResetCamera()
view.StillRender()
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview




   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********  
*** *** ***  email: [email protected]
**  ***  **  phone: (505) 844-8919
    ***      web:   http://www.cs.unm.edu/~kmorel


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to