<div dir="ltr">Stephen,<div>Here is another cool feature added recently (thanks Utkarsh for the tip) that allows one to add a custom Python animation to time-dependent data:</div><div>Open the animation view:</div><div><br></div><div>View > Animation View</div><div>Next to the + sign, choose Python and then click +</div><div>Double-click on the timeline to the right of Pyton.</div><div><br></div><div>You'll get a skeleton script that you can fill in. Here is a sample script that just moves the </div><div>camera closer and father from the data. </div><div><br></div><div>
<pre style="margin-top:12px;margin-bottom:0px"><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,128,0)">from</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,0,255)">paraview.simple</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,128,0)">import</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">*</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,128,0)">from</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,0,255)">math</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,128,0)">import</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">*</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;font-family:'Courier New,courier';color:rgb(102,102,102)"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,128,0)">def</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(0,0,255)">start_cue</span><span style="font-family:'Courier New,courier'">(</span><span style="font-family:'Courier New,courier';color:rgb(0,128,0)">self</span><span style="font-family:'Courier New,courier'">):</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(0,128,0)">self</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">camera </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">=</span><span style="font-family:'Courier New,courier'"> GetActiveView()</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">GetActiveCamera()</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(0,128,0)">self</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">start </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">=</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">0</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,128,0)">pass</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;font-family:'Courier New,courier';font-weight:600;color:rgb(0,128,0)"><br></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,128,0)">def</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(0,0,255)">tick</span><span style="font-family:'Courier New,courier'">(</span><span style="font-family:'Courier New,courier';color:rgb(0,128,0)">self</span><span style="font-family:'Courier New,courier'">):</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(0,128,0)">self</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">camera</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">Dolly(</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">1</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">+</span><span style="font-family:'Courier New,courier'"> sin(</span><span style="font-family:'Courier New,courier';color:rgb(0,128,0)">self</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">start </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">*</span><span style="font-family:'Courier New,courier'"> pi </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">/</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">6</span><span style="font-family:'Courier New,courier'">) </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">/</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">2</span><span style="font-family:'Courier New,courier'">)</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(0,128,0)">self</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">start </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">=</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(0,128,0)">self</span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">.</span><span style="font-family:'Courier New,courier'">start </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">+</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(102,102,102)">1</span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,128,0)">pass</span></pre>
<pre style="margin-top:0px;margin-bottom:0px;font-family:'Courier New,courier';font-weight:600;color:rgb(0,128,0)"><br></pre>
<pre style="margin-top:0px;margin-bottom:12px"><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,128,0)">def</span><span style="font-family:'Courier New,courier'"> </span><span style="font-family:'Courier New,courier';color:rgb(0,0,255)">end_cue</span><span style="font-family:'Courier New,courier'">(</span><span style="font-family:'Courier New,courier';color:rgb(0,128,0)">self</span><span style="font-family:'Courier New,courier'">): </span><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,128,0)">pass</span></pre><pre style="margin-top:0px;margin-bottom:12px"><span style="font-family:'Courier New,courier';font-weight:600;color:rgb(0,128,0)"><br></span></pre></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 24, 2015 at 5:27 PM, Christopher Snyder <span dir="ltr"><<a href="mailto:22csnyder@gmail.com" target="_blank">22csnyder@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Steven,<div><br></div><div>Not sure if your question has been answered. Why not try turning on the trace (tools>trace) then moving the camera, then turning off the trace? I think that'll get you want you want and is a generally helpful technique.</div><div><br></div><div>-Chris</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 22, 2015 at 12:40 PM, Dan Lipsa <span dir="ltr"><<a href="mailto:dan.lipsa@kitware.com" target="_blank">dan.lipsa@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Stephen,</div><div><br></div>See ParaView User Guide section 4.4.3, section Interactions.<div><br></div><div>Dan</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Fri, May 22, 2015 at 12:06 PM, Stephen Wornom <span dir="ltr"><<a href="mailto:stephen.wornom@inria.fr" target="_blank">stephen.wornom@inria.fr</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>Are there some examples available showing how to programming the camera position using python?<br>
The position would be a function (x,y,z,t).<br>
Hope my question is clear.<span><font color="#888888"><br>
Stephen<br>
<br>
-- <br>
<a href="mailto:stephen.wornom@inria.fr" target="_blank">stephen.wornom@inria.fr</a><br>
2004 route des lucioles - BP93<br>
Sophia Antipolis<br>
06902 CEDEX<br>
<br>
Tel: 04 92 38 50 54<br>
Fax: 04 97 15 53 51<br>
<br>
</font></span><br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a 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 href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a 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 href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>