<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"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></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("Scale", 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 <<a href="http://madhura.np" target="_blank">madhura.np</a>@<a href="http://gmail.com" target="_blank">gmail.com</a>> wrote:<br>
> I am writing a script that applies a transform over the active object and<br>
> animates its translation over time.<br>
> A snippet of the relevant lines [the python script is<br>
> at <a href="http://www.wikiupload.com/NEU3a9P3" target="_blank">http://www.wikiupload.com/NEU3a9P3</a> ->Download button.  ] :<br>
> -------------------------------------<br>
> t=Transform()<br>
> scene = servermanager.animation.AnimationScene()<br>
> scene.ViewModules = [GetActiveView()]<br>
> cue = servermanager.animation.KeyFrameAnimationCue()<br>
> cue.AnimatedProxy = t.Transform<br>
> cue.AnimatedPropertyName = "Scale"<br>
> cue.AnimatedElement=2<br>
> scene.Cues = [cue]<br>
> .<br>
> .<br>
> .<br>
> cue.KeyFrames = [keyf0, keyf1]<br>
><br>
> scene.Play()<br>
> --------------------------------------<br>
> When I use "Scale" for AnimatedPropertyName<br>
> the script works fine. However, I get an error "ERROR: In<br>
> ..\..\..\src\Servers\ServerManager\vtkSMRampKeyFrameProxy.cxx, line<br>
> 52Â vtkSMRampKeyFrameProxy (0C1076F0): Cue does not have domain or property<br>
> set!"Â on using "Translate" or "Rotate".<br>
> I don't know what I'm setting wrong. In case anyone has got this working,<br>
> please let me know.<br>
> Thanks,<br>
> --Madhura<br>
><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<br>
> <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:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
><br>
</blockquote></div><br>