[Paraview] Mimicking the 'set view plane direction' GUI buttons in Python script
Adriano Gagliardi
agagliardi at ara.co.uk
Thu Jul 9 05:39:18 EDT 2009
Indeed, that has fixed it. Thanks for the pointer.
===================================
Adriano Gagliardi MEng PhD
Project Scientist
Computational Aerodynamics
Aircraft Research Association Ltd.
Manton Lane
Bedford
Tel: 01234 32 4644
E-mail: agagliardi at ara.co.uk
Url: www.ara.co.uk
-----Original Message-----
From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org]
On Behalf Of Jean M. Favre
Sent: 09 July 2009 10:19
Cc: paraview at paraview.org
Subject: Re: [Paraview] Mimicking the 'set view plane direction' GUI buttons
in Python script
Adriano Gagliardi wrote:
> //=======================================
>
> Is it possible Render() calls ResetCamera()?
>
> ===================================
You may look at the source code in
/Utilities/VTKPythonWrapping/paraview/simple.py
def Render(view=None):
"""Renders the given view (default value is active view)"""
if not view:
view = active_objects.view
view.StillRender()
if _funcs_internals.first_render:
view.ResetCamera()
view.StillRender()
_funcs_internals.first_render = False
return view
So, it would seem that if a first rendering has not been done, then yes, it
calls ResetCamera. Try doing a Render call before setting your camera, and
then follow your usual procedure
Jean--
Swiss National Supercomputing Center
_______________________________________________
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
---------------------------
This email contains information that is private and confidential and is intended only for the addressee. If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone other than the recipient, for system management and security reasons.
Aircraft Research Association Ltd. Registered in England, Registration No 503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB 196351245
More information about the ParaView
mailing list