I am writing a script that applies a transform over the active object and
animates its translation over time.
A snippet of the relevant lines [the python script is at
http://www.wikiupload.com/NEU3a9P3 ->Download button.   ] :
-------------------------------------
t=Transform()
scene = servermanager.animation.AnimationScene()
scene.ViewModules = [GetActiveView()]
cue = servermanager.animation.KeyFrameAnimationCue()
cue.AnimatedProxy = t.Transform
cue.AnimatedPropertyName = "Scale"
cue.AnimatedElement=2
scene.Cues = [cue]
.
.
.
cue.KeyFrames = [keyf0, keyf1]

scene.Play()
--------------------------------------

When I use "Scale" for AnimatedPropertyName
the script works fine. However, I get an error "ERROR: In
..\..\..\src\Servers\ServerManager\vtkSMRampKeyFrameProxy.cxx, line 52
vtkSMRampKeyFrameProxy
(0C1076F0): Cue does not have domain or property set!" on using "Translate"
or "Rotate".
I don't know what I'm setting wrong. In case anyone has got this working,
please let me know.

Thanks,
--Madhura
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to