Changes between Version 5 and Version 6 of Examples/ParaviewAnimating


Ignore:
Timestamp:
06/14/18 13:09:33 (6 years ago)
Author:
Herwig Zilken
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Examples/ParaviewAnimating

    v5 v6  
    4040* !PlayMode: either 'Sequence', 'Snap To !TimeSteps' or '!RealTime'
    4141* !NumberOfFrames: number of frames, only used when !PlayMode is set to 'Sequence'
     42* Duration: duration of the animation in seconds, only used when !PlayMode is set to '!RealTime'
    4243* !AnimationTime: the actual animation clock time. Can be get or set.
    4344* !TimeKeeper: the !TimeKeeper-object
     45* Cues: List of attached cues (=tracks)
    4446
    4547Important methods of !AnimationScene:
     
    4850* !GoToNext(): goto next frame
    4951* !GoToPrevious(): goto previous frame
     52* Play(): renders all timesteps one after another in a window
     53* Stop(): stops the rendering
    5054
    51 === Use Case ===
     55=== !AnimationScene Use Cases ===
    5256Get the animation scene and play a sequence of 100 timesteps:
    5357{{{
    5458#!python
     59from paraview.simple import *
    5560animationScene = GetAnimationScene()
    5661animationScene.StartTime = 0
     
    7075{{{
    7176#!python
     77from paraview.simple import *
    7278animationScene = GetAnimationScene()
    7379animationScene.PlayMode = 'Snap To TimeSteps'
     
    8187}}}
    8288
     89== !KeyFrameAnimationCue ==
     90As already mentioned, a !KeyFrameAnimationCue is connected to a property of a pipeline object.
     91This connection is defined via the attributes !AnimatedProxy (proxy of the pipeline object) and !AnimatedPropertyName (name of the connected property), though typically you do not have to set these attributes on your own. Instead they are set when constructing a !KeyFrameAnimationCue by calling !GetAnimationTrack(...) (see use case below).
     92Similar to the !AnimationScene, every cue also has the properties !StartTime and !EndTime. Typically these properties do not have the same values as the corresponding ones of !AnimationScene. When !TimeMode is set to 'Normalize', the start and end time of the animation scene is linearly interpolated to the interval [0,1]. These values are the default ones.
     93
     94=== !KeyFrameAnimationCue Use Case ===
     95Create three different animation cues for three different properties of a sphere:
     96{{{
     97#!python
     98from paraview.simple import *
     99sphere = Sphere()
     100Show(sphere)
     101track3 = GetAnimationTrack("Visibility") # property of active source
     102track1 = GetAnimationTrack("Center", 0, sphere)
     103track2 = GetAnimationTrack(sphere.GetProperty("Radius"))
     104}}}
    83105
    84106
    85