<font size="2"><font face="trebuchet ms,sans-serif">I am writing a script that applies a transform over the active object and animates its translation over time.</font></font><div><font size="2"><font face="trebuchet ms,sans-serif">A snippet of the relevant lines [the python script is at <a href="http://www.wikiupload.com/NEU3a9P3" target="_blank">http://www.wikiupload.com/NEU3a9P3</a> ->Download button.  ] :</font></font></div>
<div><font size="2"><font face="trebuchet ms,sans-serif"><div><div>-------------------------------------</div><div>t=Transform()</div><div>scene = servermanager.animation.AnimationScene()</div><div>scene.ViewModules = [GetActiveView()]</div>
</div><div>cue = servermanager.animation.KeyFrameAnimationCue()</div><div>cue.AnimatedProxy = t.Transform</div><div>cue.AnimatedPropertyName = "Scale"</div><div>cue.AnimatedElement=2</div></font></font></div><div>
<font size="2"><font face="trebuchet ms,sans-serif">scene.Cues = [cue]</font></font></div><div><font size="2"><font face="trebuchet ms,sans-serif">.</font></font></div><div><font size="2"><font face="trebuchet ms,sans-serif">.</font></font></div>
<div><font size="2"><font face="trebuchet ms,sans-serif">.</font></font></div><div><font size="2"><font face="trebuchet ms,sans-serif"><div>cue.KeyFrames = [keyf0, keyf1]</div><div>Â </div><div>scene.Play()</div><div>--------------------------------------</div>
<div><br></div><div>When I use "Scale" for AnimatedPropertyName</div><div>the script works fine. However, I get an error "<span style="font-family:Courier;font-size:11px;color:rgb(128, 0, 0)">ERROR: In ..\..\..\src\Servers\ServerManager\vtkSMRampKeyFrameProxy.cxx, line 52 </span><span style="font-family:Courier;font-size:11px;color:rgb(128, 0, 0)">vtkSMRampKeyFrameProxy (0C1076F0): Cue does not have domain or property set!" </span>on using "Translate" or "Rotate".</div>
<div>I don't know what I'm setting wrong. In case anyone has got this working, please let me know.</div><div><br></div><div>Thanks,</div></font></font>--Madhura<br>
</div>