[Paraview] Error when running script to animate a transform

Madhura Phadke madhura.np at gmail.com
Tue Sep 7 19:08:29 EDT 2010


Hi,

I was using 3.8.0 Paraview. I tried GetAnimationTrack on 3.9.0 and it worked
perfect!

Thanks,
--Madhura


On Tue, Aug 31, 2010 at 10:16 AM, Utkarsh Ayachit <
utkarsh.ayachit at kitware.com> wrote:

> 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
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100907/060e3b73/attachment.htm>


More information about the ParaView mailing list