This was fixed a little while ago. Try updating paraview if you can. The change servermanager.py is:<br>@@ -796,6 +796,10 @@ class ArraySelectionProperty(<div>VectorProperty):<br>
elif len(values) == 2:<br> if isinstance(values[0], str):<br> val = str(ASSOCIATIONS[values[0]])<br>+ else:<br>+ # In case user didn't specify valid association,<br>
+ # just pick POINTS.<br>+ val = str(ASSOCIATIONS['POINTS'])<div class="im"><br> self.SMProperty.SetElement(3, str(val))<br></div> self.SMProperty.SetElement(4, values[1])<br>
else:<br>
<br>Andy<br></div><br><br><div class="gmail_quote">On Wed, Sep 1, 2010 at 5:43 PM, Fabian, Nathan <span dir="ltr"><<a href="mailto:ndfabia@sandia.gov">ndfabia@sandia.gov</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>
When I export state with the image data into the coprocessing python script<br>
it includes some properties which don't appear when I use coprocessing. For<br>
instance, "DataRepresentation1.SelectOrientationVectors = [None, '']". It<br>
complains with:<br>
<br>
File<br>
"/Users/ndfabia/Desktop/Work/ParaView_build/Utilities/VTKPythonWrapping/para<br>
view/servermanager.py", line 2367, in setProperty<br>
return self.SetPropertyWithName(propName, value)<br>
File<br>
"/Users/ndfabia/Desktop/Work/ParaView_build/Utilities/VTKPythonWrapping/para<br>
view/servermanager.py", line 256, in SetPropertyWithName<br>
prop.SetData(arg)<br>
File<br>
"/Users/ndfabia/Desktop/Work/ParaView_build/Utilities/VTKPythonWrapping/para<br>
view/servermanager.py", line 799, in SetData<br>
self.SMProperty.SetElement(3, str(val))<br>
UnboundLocalError: local variable 'val' referenced before assignment<br>
<br>
It's using the same paraview to export the script as is running insitu...<br>
Does anyone have a suggestion as to what I'm missing?<br>
<br>
Thanks,<br>
Nathan.<br>
<br>
<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>
</blockquote></div><br>