Dear Paraviewers,

I'm trying to use the SurfaceLIC plugin in a script intended to be executed by 
pvbatch. Naturally, I used the trace tool in the GUI to design my python 
script. When save the state in python and try to run it with pvbatch it raises 
the following error :


ensight_full_cyclescaseDisplay.SelectInputVectors = ['POINTS', 'vitesse']
  File "/usr/lib/lib/python2.7/site-packages/paraview/servermanager.py", line 
453, in __setattr__
    "to add this attribute.")
AttributeError: Attribute SelectInputVectors 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.


but if I just load state in the paraview GUI with the exact same script, 
paraview does not complain. Any workaround ?


In fact, by searching a solution, it seems that the 
ensight_full_cyclescaseDisplay object has a dictionary called 
_Proxy__Properties which contain a key 'SelectInputVectors'. The problem is 
that the SelectInputVectors value is a dead weakref object... and I'm not 
really familiar with weakref objects.


Lionel Wilhelm
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to