Paraview python scripting has the concept of active objects and active views.  At the python console, type &#39;help(Show)&#39; and you&#39;ll see that it takes optional object and view arguments.  If the arguments are not specified it uses the &#39;active&#39; object and view.  When you create a view (CreateRenderView()) or create an object (Sphere()) they become the active objects.  The active object concept is explained on the python scripting wiki page.<br>
<br>Pat<br><br><div class="gmail_quote">On Wed, Jul 28, 2010 at 5:30 PM, Lars Freemail <span dir="ltr">&lt;<a href="mailto:larsfreemail@yahoo.de">larsfreemail@yahoo.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">cool, it works perfectly!<br><br>I&#39;ll try to figure out, what is happening under the hood.<br>
<br>Maybe you can help me with the first step? How does the sequence &quot;Sphere();
Show();
Render()&quot; in your example know that it should render into the previously created &quot;iren&quot;? Does paraview.simple keep track of opened windows and reuse them when one is available?<br><br>Thanks<br><font color="#888888">Lars<br>
</font><div class="hm"><br></div><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div class="hm"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">Von:</span></b> pat marion &lt;<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>&gt;<br>
<b><span style="font-weight: bold;">An:</span></b> Lars Freemail &lt;<a href="mailto:larsfreemail@yahoo.de" target="_blank">larsfreemail@yahoo.de</a>&gt;<br><b><span style="font-weight: bold;">CC:</span></b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b><span style="font-weight: bold;">Gesendet:</span></b> Mittwoch, den 28. Juli 2010, 23:19:18 Uhr<br><b><span style="font-weight: bold;">Betreff:</span></b> Re: [Paraview] mouse interaction when scripting python<br></font></div>
<div><div></div><div class="h5"><br>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 rel="nofollow" href="http://markmail.org/message/sjt6pbkyc56l2wgl" target="_blank">http://markmail.org/message/sjt6pbkyc56l2wgl</a><br>

<br>Pat<br><br><div class="gmail_quote">On Wed, Jul 28, 2010 at 5:00 PM, Lars Freemail <span dir="ltr">&lt;<a rel="nofollow" href="mailto:larsfreemail@yahoo.de" target="_blank">larsfreemail@yahoo.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Dear all,<br>
I started with a simple python scripting example as described in this paragraph:<br>
<a rel="nofollow" href="http://www.paraview.org/Wiki/ParaView/Python_Scripting#Rendering" target="_blank">http://www.paraview.org/Wiki/ParaView/Python_Scripting#Rendering</a><br>
<br>
Unfortunately I don&#39;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-&gt;SetRenderWindow(renWin);<br>
// add actors<br>
ren1-&gt;AddActor(...);<br>
// render an image<br>
renWin-&gt;Render();<br>
// begin mouse interaction<br>
iren-&gt;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 <a rel="nofollow" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a rel="nofollow" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a rel="nofollow" href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a rel="nofollow" href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>
</div></div></div></div>
</div><br></div></blockquote></div><br>