Discussion:
[Paraview] Reset camera center of rotation
Laurent Vanboquestal
2010-07-09 15:58:51 UTC
Permalink
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100709/ca6f29d5/attachment.htm>
Utkarsh Ayachit
2010-07-09 16:37:40 UTC
Permalink
Try the following:

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

On Fri, Jul 9, 2010 at 11:58 AM, Laurent Vanboquestal
Post by Laurent Vanboquestal
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
http://paraview.org/Wiki/ParaView
http://www.paraview.org/mailman/listinfo/paraview
Laurent Vanboquestal
2010-07-12 07:01:27 UTC
Permalink
Yeah, It works ...

Thanks you,

Regards,

Laurent

On Fri, Jul 9, 2010 at 6:37 PM, Utkarsh Ayachit <utkarsh.ayachit at kitware.com
Post by Laurent Vanboquestal
ResetCamera()
view = GetActiveView()
view.CenterOfRotation = GetActiveCamera().GetFocalPoint()
Render()
On Fri, Jul 9, 2010 at 11:58 AM, Laurent Vanboquestal
Post by Laurent Vanboquestal
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
http://paraview.org/Wiki/ParaView
http://www.paraview.org/mailman/listinfo/paraview
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100712/4749d45a/attachment.htm>
Loading...