[Paraview] SurfaceLIC and python interface

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


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/94b1018c/attachment.htm>


More information about the ParaView mailing list