Utkarsh, Thanks for the so quick reply :) Actually I explicitly load the plugin with the following command : LoadPlugin('/usr/lib/paraview-5.4/plugins/SurfaceLIC/libSurfaceLIC.so', remote=True, ns=globals())
I tried to load it with the command you suggested but it raises the same error. While i'm continuing looking for a solution, I saw this old thred https://public.kitware.com/pipermail/paraview/2012-July/025681.html I tried to use a command like extractBlock1Display_1 = Show(extractBlock1, View4) extractBlock1Display_1.Representation = 'Surface LIC' extractBlock1Display_1.SMProxy.GetProperty('SelectInputVectors').SetElement(0,['POINTS', 'vitesse']) but it still does not work... Thanks in advance, Lionel ________________________________________ De : Utkarsh Ayachit <utkarsh.ayac...@kitware.com> Envoyé : lundi 11 septembre 2017 16:43 À : Wilhelm Lionel Cc : Paraview@paraview.org Objet : Re: [Paraview] SelectInputVector attribute in the SurfaceLIC plugin Lionel, Does your Python script load the plugin explcitly? Currently none of the state files capture which plugins are loaded, you have to manually load the plugin. You can use the following to load the plugin in your script before creating any of the proxies. LoadDistributedPlugin("SurfaceLIC", ns=globals()) On Mon, Sep 11, 2017 at 10:16 AM, Wilhelm Lionel <lionel.wilh...@epfl.ch> wrote: > 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 > _______________________________________________ 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