[Paraview] Reset camera center of rotation

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Fri Jul 9 12:37:40 EDT 2010


Try the following:

ResetCamera()
view = GetActiveView()
view.CenterOfRotation = GetActiveCamera().GetFocalPoint()
Render()

On Fri, Jul 9, 2010 at 11:58 AM, Laurent Vanboquestal
<laurent.vanboquestal at gmail.com> wrote:
> Hello,
>
> I would like to know if there is a (python) way to reset the center of
> rotation (like the Reset button in the paraview GUI/Camera toolbar) ?
> I notice that the ResetCamera() function doesn't reset the center of
> rotation ....
>
> Any idea?
>
> Best Regards,
>
> Laurent
>
> _______________________________________________
> 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
>
>


More information about the ParaView mailing list