[Paraview] SelectInputVector attribute in the SurfaceLIC plugin

Wilhelm Lionel lionel.wilhelm at epfl.ch
Mon Sep 11 10:16:47 EDT 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170911/5cfd0482/attachment.html>


More information about the ParaView mailing list