Try: cue.AnimatedProxy = slice.SliceType cue.AnimatedPropertyName = "Origin"
Utkarsh On Wed, Aug 18, 2010 at 4:17 AM, Adriano Gagliardi <[email protected]> wrote: > > Dear All, > > I've decided to revisit a problem that got me stuck a long time ago. I'd > like to animate a slice moving through a fluid, but I'm stuck on the syntax > for the cue.AnimatedPropertyName I need. I followed the example from the > Wiki as closely as possible. I only wish to animate the y component of the > origin, but since I can't pass that scalar as an AnimatedPropertyName, I am > defining the KeyValue as a vector instead. Is this correct? Secondly, after > I execute the following code, I get this error message: > > ERROR: In > /usr/people/gagliard/Paraview/FILES/ParaView3/Servers/ServerManager/vtkSMRam > pKeyFrameProxy.cxx, line 53 > vtkSMRampKeyFrameProxy (0x10e34270): Cue does not have domain or property > set! > >>>> slice = GetActiveSource() >>>> movie = servermanager.animation.AnimationScene() >>>> movie.ViewModules = (GetActiveView()) >>>> cue = servermanager.animation.KeyFrameAnimationCue() >>>> cue.AnimatedProxy = slice >>>> cue.AnimatedPropertyName = "SliceType.Origin" >>>> movie.Cues = [cue] >>>> keyf1 = servermanager.animation.CompositeKeyFrame() >>>> keyf1.Interpolation = "Ramp" >>>> keyf1.KeyTime = 0 >>>> keyf1.KeyValues = [0,0.2,0] >>>> keyf2 = servermanager.animation.CompositeKeyFrame() >>>> keyf2.KeyTime = 1.0 >>>> keyf2.KeyValues = [0,0.4,0] >>>> cue.KeyFrames = [keyf1,keyf2] >>>> movie.Play() > > I'm pretty sure other people have this working, so it would be good to have > some pointers. > > Cheers, > > Adriano > > =================================== > > Adriano Gagliardi MEng PhD > Business Sector Leader > Computational Aerodynamics > Aircraft Research Association Ltd. > Manton Lane > Bedford > > Tel: 01234 32 4644 > E-mail: [email protected] > Url: www.ara.co.uk > > > ********************************************************************** > This email contains information that is private and confidential and is > intended only for the addressee. > If you are not the intended recipient please delete it and notify us > immediately by e-mailing the sender. > Note: All email sent to or from this address may be accessed by someone other > than the recipient, for > system management and security reasons. > Aircraft Research Association Ltd. Registered in England, Registration No > 503668 Registered Office: > Manton Lane, Bedford MK41 7PF England VAT No GB 196351245 > > ********************************************************************** > _______________________________________________ > 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 > _______________________________________________ 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
