[Paraview] mouse interaction when scripting python

Moreland, Kenneth kmorel at sandia.gov
Wed Jul 28 18:41:34 EDT 2010


Also, it should be noted that if you issue these commands from the Python Shell in the ParaView GUI, the visualization gets built in the ParaView GUI and you can then use the mouse to interact with its views as usual.

-Ken


On 7/28/10 3:19 PM, "pat marion" <pat.marion at kitware.com> wrote:

Hi Lars,

Currently it is not possible with paraview-python.  But you can make it work using vtk-python (which looks very similar to your c++ example.)  See  this email:

http://markmail.org/message/sjt6pbkyc56l2wgl

Pat

On Wed, Jul 28, 2010 at 5:00 PM, Lars Freemail <larsfreemail at yahoo.de> wrote:
Dear all,
I started with a simple python scripting example as described in this paragraph:
http://www.paraview.org/Wiki/ParaView/Python_Scripting#Rendering

Unfortunately I don't see any possibility to interact with the render window
using the mouse (to rotate the camera, zoom, pan, ...) as I did before in C++:

...
// an interactor
vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
iren->SetRenderWindow(renWin);
// add actors
ren1->AddActor(...);
// render an image
renWin->Render();
// begin mouse interaction
iren->Start();

Is it possible to use mouse interaction in combination with python scripting?

Thanks
Lars




_______________________________________________
Powered by www.kitware.com <http://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




   ****      Kenneth Moreland
    ***      Sandia National Laboratories
***********
*** *** ***  email: kmorel at sandia.gov
**  ***  **  phone: (505) 844-8919
    ***      web:   http://www.cs.unm.edu/~kmorel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100728/f788c13e/attachment.htm>


More information about the ParaView mailing list