[Paraview] SelectInputVector attribute in the SurfaceLIC plugin

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Sep 11 10:43:12 EDT 2017


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.wilhelm at 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
>


More information about the ParaView mailing list