[Paraview-developers] Problem with Python script & ParaView in multicore mode
Joachim Pouderoux
joachim.pouderoux at kitware.com
Thu Jul 18 03:49:18 EDT 2013
Hi,
I have encountered a strange issue with *ParaView 4.0.1 Windows 64
bits*(the binaries available on the website).
I wanted to trace the simple process of adding a camera orbit animation.
The generated script was this one:
try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()
RenderView1 = GetRenderView()
AnimationScene1 = GetAnimationScene()
CameraAnimationCue1 = GetCameraTrack()
CameraAnimationCue1.Mode = 'Path-based'
TimeAnimationCue1 = GetTimeTrack()
KeyFrame3743 = CameraKeyFrame( FocalPathPoints=[0.0, 0.0, 0.0],
Position=[1.7464136512707524, -0.6823887589100782, -2.5975997691536614],
ViewUp=[0.140081802080566, 0.976729759779852, -0.16240709678537404],
PositionPathPoints=[1.74641, -0.682389, -2.5976, -0.9588139824909798,
-0.3670773605241656, -3.0346430356454444, -2.953212461726081,
0.2203698996704745, -1.2219253899669988, -2.7582197409579714,
0.6444433392083331, 1.4966780009610456, -0.518395471151553,
0.5907522046213224, 3.1057054534591018, 2.1057459787953205,
0.09910091345504979, 2.412289633763058, 3.16877315589021,
-0.4660203175917717, -0.06949924835751364], ClosedPositionPath=1 )
KeyFrame3744 = CameraKeyFrame( Position=[1.7464136512707524,
-0.6823887589100782, -2.5975997691536614], ViewUp=[0.140081802080566,
0.976729759779852, -0.16240709678537404], KeyTime=1.0 )
RenderView1.CacheKey = 1.0
RenderView1.CameraPosition = [1.7464100000000002, -0.6823890000000001,
-2.5976000000000012]
RenderView1.CameraClippingRange = [1.7185298609605595, 5.080751234557081]
RenderView1.ViewTime = 1.0
RenderView1.UseCache = 0
RenderView1.CameraParallelScale = 1.0
AnimationScene1.AnimationTime = 1.0
CameraAnimationCue1.KeyFrames = [ KeyFrame3743, KeyFrame3744 ]
Render()
I was running ParaView in multicore mode (4 cores on my laptop) and when I
tried to run the generated script again, I had the following error:
>>> Traceback (most recent call last):
File "<string>", line 5, in <module>
NameError: name 'GetRenderView' is not defined
I replaced the first line by try: from paraview.simple import * and then it
works. Well it works but the animation is not added in the animation view
panel and thus is not taken into account.
I started the same ParaView after disabling the multicore mode, and the
original script works perfectly, the animation is correctly created in the
animation view, even without adding the "from import *" stuff.
Any idea on what happen here?
Regards,
*Joachim Pouderoux*
*PhD, R&D Enginee*r
*Kitware SAS <http://www.kitware.fr>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20130718/dce14dbe/attachment.htm>
More information about the Paraview-developers
mailing list