[Paraview] Error when running script to animate a transform

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Aug 31 10:16:17 EDT 2010


What version of ParaView are you using?
With 3.8.1 or git-master, you can use the following to create/obtain
the animation cue:

cue = GetAnimationTrack("Scale", 2, t.Transform)

Utkarsh

On Mon, Aug 30, 2010 at 8:19 PM, Madhura Phadke <madhura.np at gmail.com> wrote:
> 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
>
>


More information about the ParaView mailing list