[Paraview] Collaboration between "Python Shell" and "Programmable Source Python Script"
Сергей Дмитриев
allrond1992 at rambler.ru
Sun May 12 07:43:32 EDT 2013
Hello.
I make the following data from the "Python Shell" in "Programmable Source"
In the "Python Shell" I write the following:
src=ProgrammableSource()
src.add_attribute('MyArray',[1,2,3])
Show()
In the ProgrammableSource Script I write the following:
array=self.MyArray
print array
######
Result:
Traceback (most recent call last):
File "<string>", line 24, in <module>
File "<string>", line 2, in RequestData
AttributeError: Array
How to pass an array between the two interpreters?
.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130512/72569f64/attachment.htm>
More information about the ParaView
mailing list