Python exception with creating animation cue
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I was toying around with doing camera animation from Python and following
http://www.paraview.org/Wiki/ParaView/Python_Scripting#Animating
specifically the code under "ParaView 3.8.1 onwards". When executing that code I get an exception, which seems to come from one of the ParaView-specific Python modules. Here's the output from the Python shell:
Python 2.7.2 (default, Nov 9 2011, 15:37:53)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
>>> from paraview.simple import *
paraview version 3.12.0, Date: 2011-07-26
>>> Sphere()
<paraview.servermanager.Sphere object at 0x40cfcd0>
>>> Show()
<paraview.servermanager.GeometryRepresentation object at 0x40cff10>
>>> Render()
<paraview.servermanager.RenderView object at 0x40cfcd0>
>>> scene = GetAnimationScene()
>>> scene
<paraview.servermanager.AnimationScene object at 0x4169bd0>
>>> t = GetAnimationTrack('StartTheta')
Traceback (most recent call last):
File "<console>", line 1, in <module>
File "/home/paulmlocal/software/ParaView-3.12.0-Linux-x86_64/lib/paraview-3.12/site-packages/paraview/simple.py", line 797, in GetAnimationTrack
cue = KeyFrameAnimationCue()
NameError: global name 'KeyFrameAnimationCue' is not defined
>>>
This is with the Linux x86_64 binary 3.12 distribution from paraview.org.