<font size="2"><font face="trebuchet ms,sans-serif">Hi,<br><br>I was using 3.8.0 Paraview. I tried GetAnimationTrack on 3.9.0 and it worked perfect!<br><br>Thanks, <br clear="all"></font></font>--Madhura<br>
<br><br><div class="gmail_quote">On Tue, Aug 31, 2010 at 10:16 AM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</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;">

What version of ParaView are you using?<br>
With 3.8.1 or git-master, you can use the following to create/obtain<br>
the animation cue:<br>
<br>
cue = GetAnimationTrack(&quot;Scale&quot;, 2, t.Transform)<br>
<br>
Utkarsh<br>
<div><div></div><div class="h5"><br>
On Mon, Aug 30, 2010 at 8:19 PM, Madhura Phadke &lt;<a href="http://madhura.np" target="_blank">madhura.np</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>&gt; wrote:<br>
&gt; I am writing a script that applies a transform over the active object and<br>
&gt; animates its translation over time.<br>
&gt; A snippet of the relevant lines [the python script is<br>
&gt; at <a href="http://www.wikiupload.com/NEU3a9P3" target="_blank">http://www.wikiupload.com/NEU3a9P3</a> -&gt;Download button.  Â ] :<br>
&gt; -------------------------------------<br>
&gt; t=Transform()<br>
&gt; scene = servermanager.animation.AnimationScene()<br>
&gt; scene.ViewModules = [GetActiveView()]<br>
&gt; cue = servermanager.animation.KeyFrameAnimationCue()<br>
&gt; cue.AnimatedProxy = t.Transform<br>
&gt; cue.AnimatedPropertyName = &quot;Scale&quot;<br>
&gt; cue.AnimatedElement=2<br>
&gt; scene.Cues = [cue]<br>
&gt; .<br>
&gt; .<br>
&gt; .<br>
&gt; cue.KeyFrames = [keyf0, keyf1]<br>
&gt;<br>
&gt; scene.Play()<br>
&gt; --------------------------------------<br>
&gt; When I use &quot;Scale&quot; for AnimatedPropertyName<br>
&gt; the script works fine. However, I get an error &quot;ERROR: In<br>
&gt; ..\..\..\src\Servers\ServerManager\vtkSMRampKeyFrameProxy.cxx, line<br>
&gt; 52 vtkSMRampKeyFrameProxy (0C1076F0): Cue does not have domain or property<br>
&gt; set!&quot; on using &quot;Translate&quot; or &quot;Rotate&quot;.<br>
&gt; I don&#39;t know what I&#39;m setting wrong. In case anyone has got this working,<br>
&gt; please let me know.<br>
&gt; Thanks,<br>
&gt; --Madhura<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
</blockquote></div><br>