<HTML>
<HEAD>
<TITLE>Re: [Paraview] CoProcessing -> Export State</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Okay thanks. Apparently, I’m doing some version of building that includes not bringing those updates over from the src directory to the build directory...<BR>
<BR>
On 9/1/10 4:08 PM, "Andy Bauer" <<a href="andy.bauer@kitware.com">andy.bauer@kitware.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>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(<BR>
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'])<BR>
<BR>
self.SMProperty.SetElement(3, str(val))<BR>
self.SMProperty.SetElement(4, values[1])<BR>
else:<BR>
<BR>
Andy<BR>
<BR>
<BR>
On Wed, Sep 1, 2010 at 5:43 PM, Fabian, Nathan <<a href="ndfabia@sandia.gov">ndfabia@sandia.gov</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>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 www.kitware.com <<a href="http://www.kitware.com">http://www.kitware.com</a>> <BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">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">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>