<HTML>
<HEAD>
<TITLE>Re: [Paraview] mouse interaction when scripting python</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>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.<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 7/28/10 3:19 PM, "pat marion" <<a href="pat.marion@kitware.com">pat.marion@kitware.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Lars,<BR>
<BR>
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:<BR>
<BR>
<a href="http://markmail.org/message/sjt6pbkyc56l2wgl">http://markmail.org/message/sjt6pbkyc56l2wgl</a><BR>
<BR>
Pat<BR>
<BR>
On Wed, Jul 28, 2010 at 5:00 PM, Lars Freemail <<a href="larsfreemail@yahoo.de">larsfreemail@yahoo.de</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Dear all,<BR>
I started with a simple python scripting example as described in this paragraph:<BR>
<a href="http://www.paraview.org/Wiki/ParaView/Python_Scripting#Rendering">http://www.paraview.org/Wiki/ParaView/Python_Scripting#Rendering</a><BR>
<BR>
Unfortunately I don't see any possibility to interact with the render window<BR>
using the mouse (to rotate the camera, zoom, pan, ...) as I did before in C++:<BR>
<BR>
...<BR>
// an interactor<BR>
vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();<BR>
iren->SetRenderWindow(renWin);<BR>
// add actors<BR>
ren1->AddActor(...);<BR>
// render an image<BR>
renWin->Render();<BR>
// begin mouse interaction<BR>
iren->Start();<BR>
<BR>
Is it possible to use mouse interaction in combination with python scripting?<BR>
<BR>
Thanks<BR>
Lars<BR>
<BR>
<BR>
<BR>
<BR>
_______________________________________________<BR>
Powered by www.kitware.com <<a href="http://www.kitware.com">http://www.kitware.com</a>> <BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>