Hi,
One way zooming is the following: >> cam = GetActiveCamera() >> cam.GetPosition(). # Returns the current camera position >> cam.SetPosition(xpos, ypos,zpos) >> Render() There are many other usefull properties for cameras. You can easily experiment in the python shell by generating the "cam" object and than use tab completion. An alternative way is bringing the object closer to the camera. You can do something like: >> src = GetActiveSource() >> props = GetDisplayProperties(src) >> props.Position = (xpos, ypos, zpos) Regards, Marco On Sep 22, 2011, at 5:00 PM, Tim Gallagher <tim.gallag...@gatech.edu> wrote: > The RenderView.CameraParallelScale does it I believe. At least, that's what > popped out of my trace awhile back and it seems to zoom in. > > Tim > > ----- Original Message ----- > From: "Alastair McKinstry" <alastair.mckins...@ichec.ie> > To: paraview@paraview.org > Sent: Thursday, September 22, 2011 10:51:54 AM > Subject: Re: [Paraview] Scaling up 3-D area in screenshots > > On 2011-09-22 15:48, Tim Gallagher wrote: >> The best way to learn what variables/functions to use is to turn on the >> Python Trace feature in the GUI, change what you want to change, then see >> what the trace says. >> >> In this instance, pull up something to look at, turn on the trace, zoom in, >> then turn off the trace and it will show you how to do the same thing in >> python. >> >> Tim > Thanks, thats been my modus operandi until now, and it appears that the > "view" variables for the camera viewpoint > are whats needed; they are the only ones listed as changed in the > trace. But no matter how I change them in the script, it still seems to > take up the middle half of the image only (i am appending screenshots to > make an animation, and its very annoying). > > - Alastair > >> ----- Original Message ----- >> From: "Alastair McKinstry"<alastair.mckins...@ichec.ie> >> To: paraview@paraview.org >> Sent: Thursday, September 22, 2011 10:46:40 AM >> Subject: [Paraview] Scaling up 3-D area in screenshots >> >> Hi, >> >> I'm generating screenshots from 3-D visualizations using paraview scripting >> in python (doing a viz, cut and paste the trace from paraview). >> >> This works but almost half my screen image is "background". Within paraview, >> I can zoom in, but when writing screenshots via python, what variable do >> I set? >> >> Regards, >> Alastair >> > > > Regards, > Alastair > > -- > Alastair McKinstry , Computational Scientist<alastair.mckins...@ichec.ie> > ICHEC, Room 301, IT Building NUI Galway, Galway , Ireland > tel: +353 91 495946 > > > _______________________________________________ > 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 > _______________________________________________ > 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 _______________________________________________ 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