[Paraview] SurfaceLIC and python interface

Albina, Frank frank.albina at sauber-motorsport.com
Thu Jul 26 04:48:49 EDT 2012


Hi!

Forgot to tell that the PV version is 3.14.1.

Cheers,

Frank.

From: paraview-bounces at paraview.org [mailto:paraview-bounces at paraview.org] On Behalf Of Albina, Frank
Sent: Donnerstag, 26. Juli 2012 10:26
To: paraview at paraview.org
Subject: [Paraview] SurfaceLIC and python interface

Dear All!

I am trying to run the SurfaceLIC representation under pvbatch. From the python trace tool under the GUI, I could find the following output which helps me setting the LIC intensity and LICStepSize:

RenderView1 = GetRenderView()
DataRepresentation1 = Show()
DataRepresentation1.Representation = 'Surface LIC'
DataRepresentation1.InterpolateScalarsBeforeMapping = 0
DataRepresentation1.LICIntensity = 1.0
DataRepresentation1.LICStepSize = 0.25

Unfortunately, doing the same within a python script does not work, since I get :

AttributeError: Attribute LICIntensity 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.

The above attributes LICIntensity and LICStepSize are not available from the python shell either, even after having set the representation to 'Surface LIC'.  I get the same issue either with the Kitware binaries or those compiled by myself. Even forcing the load of the SurfaceLIC plugin with  paraview.servermanager.LoadPlugin("libSurfaceLIC.so") does not solve the issue.

I am surely missing one step. Could someone tell me which?

Thanks a lot in advance.

Cheers,

Frank Albina.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20120726/f2f22c9f/attachment.htm>


More information about the ParaView mailing list