<div dir="ltr"><div><div>Hi,<br><br></div>I have encountered a strange issue with <u>ParaView 4.0.1 Windows 64 bits</u> (the binaries available on the website).<br>I wanted to trace the simple process of adding a camera orbit animation.<br>
</div>The generated script was this one:<br><div> <br><span style="font-family:courier new,monospace">try: paraview.simple<br>except: from paraview.simple import *<br>paraview.simple._DisableFirstRenderCameraReset()<br><br>
RenderView1 = GetRenderView()<br>AnimationScene1 = GetAnimationScene()<br>CameraAnimationCue1 = GetCameraTrack()<br>CameraAnimationCue1.Mode = 'Path-based'<br><br>TimeAnimationCue1 = GetTimeTrack()<br><br>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 )<br>
<br>KeyFrame3744 = CameraKeyFrame( Position=[1.7464136512707524, -0.6823887589100782, -2.5975997691536614], ViewUp=[0.140081802080566, 0.976729759779852, -0.16240709678537404], KeyTime=1.0 )<br><br>RenderView1.CacheKey = 1.0<br>
RenderView1.CameraPosition = [1.7464100000000002, -0.6823890000000001, -2.5976000000000012]<br>RenderView1.CameraClippingRange = [1.7185298609605595, 5.080751234557081]<br>RenderView1.ViewTime = 1.0<br>RenderView1.UseCache = 0<br>
RenderView1.CameraParallelScale = 1.0<br><br>AnimationScene1.AnimationTime = 1.0<br><br>CameraAnimationCue1.KeyFrames = [ KeyFrame3743, KeyFrame3744 ]<br><br>Render()<br></span><div><div><br><br></div><div>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:<br>
<span style="font-family:'Courier';font-size:8.25pt;color:rgb(0,0,0)">>>> </span><span style="font-family:'Courier';font-size:8.25pt;color:rgb(255,0,0)">Traceback (most recent call last):</span>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Courier';font-size:8.25pt;color:rgb(255,0,0)"> File "<string>", line 5, in <module></span></p>
<p style="margin:0px;text-indent:0px"><span style="font-family:'Courier';font-size:8.25pt;color:rgb(255,0,0)">NameError: name 'GetRenderView' is not defined</span></p><p style="margin:0px;text-indent:0px">
<br><span style="font-family:'Courier';font-size:8.25pt;color:rgb(255,0,0)"></span></p><p style="margin:0px;text-indent:0px">I replaced the first line by<span style="font-family:courier new,monospace"> try: from paraview.simple import *</span> 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.</p>
<p style="margin:0px;text-indent:0px"><br></p>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.<br>
<br></div><div>Any idea on what happen here?<br><br></div><div>Regards,<br></div><div><br clear="all"><div><b>Joachim Pouderoux</b><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<font size="1"><i>PhD, R&D Enginee</i>r</font> <br><b><font size="1"><a href="http://www.kitware.fr" target="_blank">Kitware SAS</a></font></b><br></blockquote>
</div>
</div></div></div></div>