[Paraview] PVPython where is PiecewiseFunction

Kevin H. Hobbs hobbsk at ohiou.edu
Wed Nov 19 12:14:20 EST 2008


I'm trying to make a ParaView python script to do some volume rendering.

I can load my data, set the representation to volume rendering, and set
the color scale the way I want, but I can't figure out how to set the
opacity.

I found rep.ScalarOpacityFunction, but what do I set it to?

I created a simple ParaView session with a volume rendering. Poking
around there I found that there is a PiecewiseFunction that I think is
created.

How do I make a PiecewiseFunction?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.paraview.org/pipermail/paraview/attachments/20081119/6f760fd4/attachment.pgp>


More information about the ParaView mailing list