[Paraview] OpacityTableValues

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Jan 7 11:01:44 EST 2014


I think OpacityTableValues is coming from the "PointSprite" plugin
that's loaded in your ParaView. The Python trace/state doesn't capture
the loaded plugins. You should either manually load the plugin
(http://www.paraview.org/ParaView3/Doc/Nightly/www/py-doc/paraview.simple.html#paraview.simple.LoadPlugin)
 before in the python script or save the state file from a ParaView
without the plugin loaded.

Utkarsh

On Tue, Jan 7, 2014 at 10:47 AM, Favre  Jean <jfavre at cscs.ch> wrote:
> I am using the RC2, but am puzzled by the following:
>
> I can run paraview and create a sphere, and in the python shell, I do  this (without any problem)
>
> s = FindSource('Sphere1')
> dp = GetDisplayProperties(s)
> dp.OpacityTableValues
>
> I use "save state" and the python code sets OpacityTableValues
>
> if instead I run pvpython, I cannot access the OpacityTableValues attr.
>
> from paraview.simple import *
> s = Sphere()
> dp = Show(s)
> dp.OpacityTableValues
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "/apps/eiger/src/ParaView-v4.1.0Build/lib/site-packages/paraview/servermanager.py", line 414, in __getattr__
>     return getattr(self.SMProxy, name)
> AttributeError: OpacityTableValues
>
> sorry if this is trivial...
> TIA
> Jean
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview


More information about the ParaView mailing list