<div dir="ltr">It works for me if I set the PV_PLUGIN_PATH to point to the directory where the point sprite plugin is located. <div><br></div><div>Alternatively you edit the script to use the "SetPropertyWithName" for the ones relating to the plugin, e.g. DataRepresentation1.SetPropertyWithName('ConstantRadius', 0.0121232312) </div>
<div><br></div><div>Regards,<br>Paul</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 10 December 2013 08:35, <span dir="ltr"><<a href="mailto:S.Appanaboyina@shell.com" target="_blank">S.Appanaboyina@shell.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Sebastien,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanx for your reply,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Yes, I am using the PointSprite plugin. In order to enable this plugin with “pvbatch” I added the following line to the script. But still I get the same attribute
error.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">servermanager.LoadPlugin('/glb/apps/ffre-3rdparty/ParaView/ParaView-4.0.1/lib/paraview-4.0/libPointSprite_Plugin.so')<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I also followed your advice of removing the “ConstantRadius” line from the script. But, now I get the same kind of error with the next statement in the script.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Am I doing anything wrong. How do I load a plugin to be used with ‘pvbatch’.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Please help.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Best Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Sunil<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> Sebastien Jourdain [mailto:<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>]
<br>
<b>Sent:</b> Monday, December 09, 2013 7:59 PM<br>
<b>To:</b> Appanaboyina, Sunil Kumar PTIN-PTT/ICOE<br>
<b>Cc:</b> <a href="mailto:paraview@paraview.org" target="_blank">paraview@paraview.org</a><br>
<b>Subject:</b> Re: [Paraview] Attribute Error<u></u><u></u></span></p>
</div><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi <span style="font-size:10.0pt;font-family:"Arial","sans-serif"">Sunil,</span><u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">is it possible that you've enabled some plugin when you recorded your trace that are not present or enabled at the pvbatch execution time?</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">And easy fix could be to remove the line that cause the error.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif"">DataRepresentation1.ConstantRadius = 0.10583775824451128</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">My guess is that propriety on the representation is not defined in the general case but may be extended via a plugin.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">Seb</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Mon, Dec 9, 2013 at 2:48 AM, <<a href="mailto:S.Appanaboyina@shell.com" target="_blank">S.Appanaboyina@shell.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222;background:white">Hi,</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">I am very new to ParaView and have started using ParaView 4.1. I generated a python script using the "Start Trace" and "Stop Trace" method. Now I want to run this in batch mode. When
I run the same python script using "pvbatch" I get the following error. I have included the script below. Please help.</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">Thank you very much,</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">Sunil</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">------------Error---------------------------</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">Traceback (most recent call last):</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> File "test_410_2.py", line 20, in <module></span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> DataRepresentation1.ConstantRadius = 0.10583775824451128</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> File "/glb/apps/ffre-3rdparty/ParaView/ParaView-4.0.1/lib/paraview-4.0/site-packages/paraview/servermanager.py", line 251, in __setattr__</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> "to add this attribute.")</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">AttributeError: Attribute ConstantRadius does not exist. This class does not allow addition of new attributes to avoid mistakes due to typos. Use add_attribute() if you really want
to add this attribute.</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">---------------------------------------------------------------------</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">------------------------python script-------------------------------------------------------------------------------</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">from paraview.simple import *</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">paraview.simple._DisableFirstRenderCameraReset()</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">Fluid = XMLPolyDataReader( FileName=['/glb/ap/bngsti/proj/ccoe/insap3/2D_progressivewave_toycase/Fluid0991.vtp', '/glb/ap/bngsti/proj/ccoe/insap3/2D_progressivewave_toycase/Fluid0992.vtp',
'/glb/ap/bngsti/proj/ccoe/insap3/2D_progressivewave_toycase/Fluid0993.vtp', '/glb/ap/bngsti/proj/ccoe/insap3/2D_progressivewave_toycase/Fluid0994.vtp', '/glb/ap/bngsti/proj/ccoe/insap3/2D_progressivewave_toycase/Fluid0995.vtp', '/glb/ap/bngsti/proj/ccoe/insap3/2D_progressivewave_toycase/Fluid0996.vtp',
'/glb/ap/bngsti/proj/ccoe/insap3/2D_progressivewave_toycase/Fluid0997.vtp', '/glb/ap/bngsti/proj/ccoe/insap3/2D_progressivewave_toycase/Fluid0998.vtp', '/glb/ap/bngsti/proj/ccoe/insap3/2D_progressivewave_toycase/Fluid0999.vtp', '/glb/ap/bngsti/proj/ccoe/insap3/2D_progressivewave_toycase/Fluid1000.vtp']
)</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">AnimationScene1 = GetAnimationScene()</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">Fluid.PointArrayStatus = ['Density', 'Pressure', 'Velocitylacement']</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">AnimationScene1.EndTime = 9.0</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">AnimationScene1.PlayMode = 'Snap To TimeSteps'</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">RenderView1 = GetRenderView()</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">DataRepresentation1 = Show()</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">DataRepresentation1.ConstantRadius = 0.10583775824451128</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">DataRepresentation1.EdgeColor = [0.0, 0.0, 0.50000762951094835]</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">DataRepresentation1.PointSpriteDefaultsInitialized = 1</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">DataRepresentation1.Texture = []</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">DataRepresentation1.RadiusRange = [0.0, 0.10583775824451128]</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">RenderView1.CenterOfRotation = [5.8816560222767293, 0.17167776415590197, 0.0]</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">a3_Velocitylacement_PVLookupTable = GetLookupTableForArray( "Velocitylacement", 3, NanColor=[0.25, 0.0, 0.0], RGBPoints=[3.9815157949476304e-05, 0.23000000000000001, 0.29899999999999999,
0.754, 0.38799442741086698, 0.70599999999999996, 0.016, 0.14999999999999999], VectorMode='Magnitude', ColorSpace='Diverging', ScalarRangeInitialized=1.0 )</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">a3_Velocitylacement_PiecewiseFunction = CreatePiecewiseFunction()</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">RenderView1.CameraPosition = [5.8590496605322775, 0.16414231024108439, 15.27905334719394]</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">RenderView1.CameraClippingRange = [15.126262813722001, 15.50823914740185]</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">RenderView1.InteractionMode = '3D'</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">RenderView1.CameraFocalPoint = [5.8590496605322775, 0.16414231024108439, 0.0]</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">RenderView1.CameraParallelScale = 5.8744171209670162</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">RenderView1.CenterOfRotation = [5.8590496605322775, 0.16414231024108439, 0.0]</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">DataRepresentation1.ColorArrayName = 'Velocitylacement'</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">DataRepresentation1.Texture = []</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">DataRepresentation1.MaxPixelSize = 4.0</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">DataRepresentation1.LookupTable = a3_Velocitylacement_PVLookupTable</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">DataRepresentation1.Representation = 'Point Sprite'</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">DataRepresentation1.RadiusRange = [0.0, 0.105838]</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">DataRepresentation1.RenderMode = 'Texture'</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">DataRepresentation1.InterpolateScalarsBeforeMapping = 0</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222"> </span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">Render()</span><u></u><u></u></p>
<p class="MsoNormal" style="background:white">
<span style="font-size:10.0pt;font-family:"Arial","sans-serif";color:#222222">---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">
http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div></div></div>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>