MantisBT - ParaView
View Issue Details
0010277ParaViewBugpublic2010-02-11 10:072010-07-12 21:26
Stephane P 
Utkarsh Ayachit 
normalminoralways
closedfixed 
Development 
3.8.13.8.1 
ParaViS
0010277: animation cue created in python are not visible in the animation view
when creating animations from python, the cues created and registered in the AnimationScene are not visible in the animation view, and are not saved in the state.
No tags attached.
child of 0009470closed Utkarsh Ayachit animation + python integration 
Issue History
2010-02-11 10:07Stephane PNew Issue
2010-06-15 09:35Utkarsh AyachitRelationship addedrelated to 0009470
2010-06-15 09:35Utkarsh AyachitTarget Version => 3.8.2
2010-06-15 09:44Utkarsh AyachitTarget Version3.8.2 => 3.8.1
2010-06-21 21:31Utkarsh AyachitRelationship deletedrelated to 0009470
2010-06-21 21:31Utkarsh AyachitRelationship addedchild of 0009470
2010-06-22 15:12Utkarsh AyachitStatusbacklog => tabled
2010-06-22 15:12Utkarsh AyachitAssigned To => Utkarsh Ayachit
2010-06-22 15:13Utkarsh AyachitNote Added: 0021125
2010-06-22 15:13Utkarsh AyachitStatustabled => @80@
2010-06-22 15:13Utkarsh AyachitFixed in Version => 3.8.1
2010-06-22 15:13Utkarsh AyachitResolutionopen => fixed
2010-06-22 15:14Utkarsh AyachitNote Added: 0021126
2010-06-22 15:14Utkarsh AyachitNote Added: 0021127
2010-07-07 09:55Utkarsh AyachitFixed in Version3.8.1 => Development
2010-07-07 16:44Utkarsh AyachitNote Added: 0021288
2010-07-07 16:44Utkarsh AyachitFixed in VersionDevelopment => 3.8.1
2010-07-12 21:26Alan ScottNote Added: 0021370
2010-07-12 21:26Alan ScottStatus@80@ => closed
2011-06-23 11:44Utkarsh AyachitProject => ParaViS

Notes
(0021125)
Utkarsh Ayachit   
2010-06-22 15:13   
commit 76abe353579e6776f17ecd1f08ada64156f72000
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Mon Jun 21 22:36:40 2010 -0400

    Fixed BUG 0009470. Better support for animation in python.
    
    * Added API to access the active AnimationScene.
    * Ensured that a valid animation scene is created when a new connection is made
      in pvpython. Also ensureing that the Views and TimeKeeper properties on the
      animation scene and updated correctly.
    * Added new "Name" property to Property class to allow access to the name of a
      property.
    * Added API to access/create animation tracks.
(0021126)
Utkarsh Ayachit   
2010-06-22 15:14   
Note that the new API has been added as indicated on the wiki:
http://www.paraview.org/Wiki/ParaView/Python_Scripting#Animating [^]

Old API will work, but those animation scenes/tracks won't be seen by the GUI.

---------------------------------
Sample new-style script:
---------------------------------

from paraview.simple import *
Sphere()
Show()
Render()
 
# Get the application-wide animation scene
scene = GetAnimationScene()
 
# Get the animation track for animating "StartTheta" on the active source.
# GetAnimationTrack() creates a new track if none exists.
cue = GetAnimationTrack("StartTheta")
 
# Create 2 keyframes for the StartTheta track
keyf0 = CompositeKeyFrame()
keyf0.Interpolation = 'Ramp'
# At time = 0, value = 0
keyf0.KeyTime = 0
keyf0.KeyValues= [0]
 
keyf1 = CompositeKeyFrame()
# At time = 1.0, value = 200
keyf1.KeyTime = 1.0
keyf1.KeyValues= [200]
 
# Add keyframes.
cue.KeyFrames = [keyf0, keyf1]
 
scene.Play()
(0021127)
Utkarsh Ayachit   
2010-06-22 15:14   
Needs to move to "release" branch
(0021288)
Utkarsh Ayachit   
2010-07-07 16:44   
Moved to "release" branch and verified it works on "release" branch
(0021370)
Alan Scott   
2010-07-12 21:26   
Trusting fixed.