You are using 3.8.0, not 3.8.1. If you use 3.8.1 to generate the trace script you will not receive these errors.<br><br><br>Your script can also be fixed by hand- editing test_trace.py and move the lines at the very bottom modifying Slice1, Slice2 and Slice3. Moving the lines up so they appear after the constructors of Slice1, Slice2, and Slice3.<br>
<br>Pat<br><br><div class="gmail_quote">On Mon, Jan 24, 2011 at 3:08 PM, Fabian Braennstroem <span dir="ltr"><<a href="mailto:f.braennstroem@gmx.de">f.braennstroem@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
thanks. I get this error message:<br>
<br>
<br>
Traceback (most recent call last):<br>
File "<string>", line 382, in <module><br>
File "/home/gcae504/HOME/Dissertation/simulation_calc/OpenFOAM/ThirdParty-1.7.x/platforms/linux64Gcc/paraview-3.8.0/lib/paraview-3.8/paraview/servermanager.py", line 201, in __setattr__<br>
"to add this attribute.")<br>
AttributeError: Attribute SelectedMapperIndex 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.<br>
<br>
I attached two pictures (test.png is the one create manually and test2.png the one create with the script) and the script. Thanks for your help!<br>
<br>
Best Regards!<br>
Fabian<div class="im"><br>
<br>
On 01/24/2011 08:57 PM, pat marion wrote:<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
Hi Fabian,<br>
<br>
Regarding your issue of python trace state not replicating your paraview<br>
state exactly, I believe both issues you quote (camera position and cut<br>
filter's slice property) have been addressed in the latest version of<br>
paraview. If not, can you list the steps required to repeat the<br>
problem? I can't find bug reports for these issues, but below I have<br>
copied the git logs for the commits the addressed the issues.<br>
<br>
Pat<br>
<br>
commit f3f73df79fe4ca377297885c4c71bcba661b165d<br></div>
Author: Pat Marion <<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a> <mailto:<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>>><div class="im">
<br>
Date: Tue May 18 14:50:17 2010 -0400<br>
<br>
BUG: Add method to disable the first render ResetCamera.<br>
<br>
Added python method paraview.simple._DisableFirstRenderResetCamera()<br>
and included it at the top of all generated trace scripts. This is<br>
tested by PythonSMTraceTest1 since I removed the extra 'Render()'<br>
call from the test which was there to work around the issue.<br>
<br>
commit d9119f6be4b10b97b18fc2a2d5232788363d3fc9<br></div>
Author: Pat Marion <<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a> <mailto:<a href="mailto:pat.marion@kitware.com" target="_blank">pat.marion@kitware.com</a>>><div class="im">
<br>
Date: Fri Apr 30 13:35:03 2010 -0400<br>
<br>
BUG: Group helper proxies with the proxy using the helper.<br>
<br>
For example, now 'my_slice.SliceType.Normal' is mapped to my_slice<br>
instead of the SliceType helper proxy. Now when you trace state,<br>
the helper proxy's properties are grouped with the parent proxy.<br>
Previously all helper proxy properties were listed at the very<br>
end of the trace, and that was incorrect.<br>
<br>
<br>
On Mon, Jan 24, 2011 at 2:39 PM, Fabian Braennstroem<br></div><div><div></div><div class="h5">
<<a href="mailto:f.braennstroem@gmx.de" target="_blank">f.braennstroem@gmx.de</a> <mailto:<a href="mailto:f.braennstroem@gmx.de" target="_blank">f.braennstroem@gmx.de</a>>> wrote:<br>
<br>
Hello,<br>
<br>
thanks for the info!<br>
Is my impression correct, that in version 3.8.1 the python trace<br>
state process is not as 'complete' as using the old state file approach?<br>
For my case setup, e.g. there is not always the correct camera<br>
position and the correct slices...<br>
<br>
Best Regards!<br>
Fabian<br>
<br>
<br>
On 01/24/2011 08:13 PM, David E DeMarle wrote:<br>
<br>
That page is ancient.<br>
<br>
I think PVFWrap was the predecessor to paraview.simple which<br>
since 3.6<br>
is the standard way to do ParaView python scripting (see python<br>
trace).<br>
The comments about paraview state files being too verbose have been<br>
addressed since then as well.<br>
<br>
Or did you mean something else?<br>
<br>
David E DeMarle<br>
Kitware, Inc.<br>
R&D Engineer<br>
28 Corporate Drive<br>
Clifton Park, NY 12065-8662<br>
Phone: 518-371-3971 x109<br>
<br>
<br>
<br>
On Mon, Jan 24, 2011 at 2:02 PM, Fabian Braennstroem<br></div></div>
<<a href="mailto:f.braennstroem@gmx.de" target="_blank">f.braennstroem@gmx.de</a> <mailto:<a href="mailto:f.braennstroem@gmx.de" target="_blank">f.braennstroem@gmx.de</a>>> wrote:<div class="im"><br>
<br>
Hi,<br>
<br>
I just found this page and wonder, if this will be a new<br>
approach for python<br>
scripting:<br>
<br>
<a href="http://www.paraview.org/ParaView3/index.php/Visualization_Script_Examples#Paraview_Python_Script_with_PVFWrap" target="_blank">http://www.paraview.org/ParaView3/index.php/Visualization_Script_Examples#Paraview_Python_Script_with_PVFWrap</a><br>
<br>
In addition, there are comments about the VisIt way... do<br>
you plan something<br>
like this!?<br>
<br>
Best Regards!<br>
Fabian<br>
_______________________________________________<br></div>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><div class="im"><br>
<br>
Visit other Kitware open-source projects at<br>
<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:<br>
<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>
<br>
_______________________________________________<br></div>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><div class="im"><br>
<br>
Visit other Kitware open-source projects at<br>
<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:<br>
<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>
<br>
</div></blockquote>
<br>
</blockquote></div><br>