Re: [Paraview] [Fwd: zoom and rotate in script]

2010-11-08 Thread Xueli Wang

Hello Utkarsh:

Thanks a lot for your reply. I have made some progress in using 
ParaView. I have now a script to make zoom in and zoom out of the view. 
But it is too quick.  I can't control the speed of the process. I would 
like to have a script that shows this zoom in and out slowly just like 
what we see on the television. Do you know how to do it?
By the way I got these scripts by using the Python shell trace to 
record what I did by mouse click and so...


Thanks a lot!

Xueli Wang

Utkarsh Ayachit wrote:

Yes, the following link points to the section regarding how to get
access to the camera:
http://www.paraview.org/Wiki/ParaView/Python_Scripting#Representations_and_Views

Once you have the camera, you can use the vtkCamera API to zoom or do
whatever (http://www.vtk.org/doc/nightly/html/classvtkCamera.html)

Utkarsh

On Thu, Nov 4, 2010 at 7:57 AM, Xueli Wang w...@knmi.nl wrote:
  

Hello everyone,

I'm a new user of ParaView. One thing I wonder is whether is it possible to
write Python scripts to zoom in and zoom out and rotate of the active object
in the  render window. My aim is to make a movie of a globe, the global can
be zoomed in and out and rotate in a controlled manner.

Thanks in advance!

Xueli Wang


___
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


Re: [Paraview] [Fwd: zoom and rotate in script]

2010-11-08 Thread Utkarsh Ayachit
Try using time.sleep (from Python module time) to slow things down

Utkarsh

On Mon, Nov 8, 2010 at 5:44 AM, Xueli Wang w...@knmi.nl wrote:
 Hello Utkarsh:

 Thanks a lot for your reply. I have made some progress in using ParaView. I
 have now a script to make zoom in and zoom out of the view. But it is too
 quick.  I can't control the speed of the process. I would like to have a
 script that shows this zoom in and out slowly just like what we see on the
 television. Do you know how to do it?
 By the way I got these scripts by using the Python shell trace to record
 what I did by mouse click and so...

 Thanks a lot!

 Xueli Wang

 Utkarsh Ayachit wrote:

 Yes, the following link points to the section regarding how to get
 access to the camera:

 http://www.paraview.org/Wiki/ParaView/Python_Scripting#Representations_and_Views

 Once you have the camera, you can use the vtkCamera API to zoom or do
 whatever (http://www.vtk.org/doc/nightly/html/classvtkCamera.html)

 Utkarsh

 On Thu, Nov 4, 2010 at 7:57 AM, Xueli Wang w...@knmi.nl wrote:


 Hello everyone,

 I'm a new user of ParaView. One thing I wonder is whether is it possible
 to
 write Python scripts to zoom in and zoom out and rotate of the active
 object
 in the  render window. My aim is to make a movie of a globe, the global
 can
 be zoomed in and out and rotate in a controlled manner.

 Thanks in advance!

 Xueli Wang


 ___
 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


Re: [Paraview] [Fwd: zoom and rotate in script]

2010-11-04 Thread Utkarsh Ayachit
Yes, the following link points to the section regarding how to get
access to the camera:
http://www.paraview.org/Wiki/ParaView/Python_Scripting#Representations_and_Views

Once you have the camera, you can use the vtkCamera API to zoom or do
whatever (http://www.vtk.org/doc/nightly/html/classvtkCamera.html)

Utkarsh

On Thu, Nov 4, 2010 at 7:57 AM, Xueli Wang w...@knmi.nl wrote:


 Hello everyone,

 I'm a new user of ParaView. One thing I wonder is whether is it possible to
 write Python scripts to zoom in and zoom out and rotate of the active object
 in the  render window. My aim is to make a movie of a globe, the global can
 be zoomed in and out and rotate in a controlled manner.

 Thanks in advance!

 Xueli Wang


 ___
 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