View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010277ParaViewBugpublic2010-02-11 10:072010-07-12 21:26
ReporterStephane P 
Assigned ToUtkarsh Ayachit 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionDevelopment 
Target Version3.8.1Fixed in Version3.8.1 
Summary0010277: animation cue created in python are not visible in the animation view
Descriptionwhen 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.
TagsNo tags attached.
ProjectParaViS
Topic Name
Type
Attached Files

 Relationships
child of 0009470closedUtkarsh Ayachit animation + python integration 

  Notes
(0021125)
Utkarsh Ayachit (administrator)
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 (administrator)
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 (administrator)
2010-06-22 15:14

Needs to move to "release" branch
(0021288)
Utkarsh Ayachit (administrator)
2010-07-07 16:44

Moved to "release" branch and verified it works on "release" branch
(0021370)
Alan Scott (manager)
2010-07-12 21:26

Trusting fixed.

 Issue History
Date Modified Username Field Change
2010-02-11 10:07 Stephane P New Issue
2010-06-15 09:35 Utkarsh Ayachit Relationship added related to 0009470
2010-06-15 09:35 Utkarsh Ayachit Target Version => 3.8.2
2010-06-15 09:44 Utkarsh Ayachit Target Version 3.8.2 => 3.8.1
2010-06-21 21:31 Utkarsh Ayachit Relationship deleted related to 0009470
2010-06-21 21:31 Utkarsh Ayachit Relationship added child of 0009470
2010-06-22 15:12 Utkarsh Ayachit Status backlog => tabled
2010-06-22 15:12 Utkarsh Ayachit Assigned To => Utkarsh Ayachit
2010-06-22 15:13 Utkarsh Ayachit Note Added: 0021125
2010-06-22 15:13 Utkarsh Ayachit Status tabled => @80@
2010-06-22 15:13 Utkarsh Ayachit Fixed in Version => 3.8.1
2010-06-22 15:13 Utkarsh Ayachit Resolution open => fixed
2010-06-22 15:14 Utkarsh Ayachit Note Added: 0021126
2010-06-22 15:14 Utkarsh Ayachit Note Added: 0021127
2010-07-07 09:55 Utkarsh Ayachit Fixed in Version 3.8.1 => Development
2010-07-07 16:44 Utkarsh Ayachit Note Added: 0021288
2010-07-07 16:44 Utkarsh Ayachit Fixed in Version Development => 3.8.1
2010-07-12 21:26 Alan Scott Note Added: 0021370
2010-07-12 21:26 Alan Scott Status @80@ => closed
2011-06-23 11:44 Utkarsh Ayachit Project => ParaViS


Copyright © 2000 - 2018 MantisBT Team