[Paraview] Python script change solid color
Hom Nath Gharti
hng.email at gmail.com
Wed Nov 17 05:18:47 EST 2010
Great. thank you!
On Wed, Nov 17, 2010 at 11:10 AM, Favre Jean <jfavre at cscs.ch> wrote:
>
> ________________________________________
> From: paraview-bounces at paraview.org [paraview-bounces at paraview.org] On
> Behalf Of Hom Nath Gharti [hng.email at gmail.com]
> Sent: Wednesday, November 17, 2010 10:31 AM
> To: ParaView
> Subject: [Paraview] Python script change solid color
>
> Dear all,
>
> Is there a simple way to change the solid color of e.g. surface with Python
> script?
>
> -------------------------------------------------------------------------------------------------------------
>
> Assuming you already have your data representation, and if you don't, you
> do something like that:
>
> rep = GetDisplayProperties(Contour)
>
> then, you simply assign an RGB tuple (e.g. blue)
>
> rep.DiffuseColor = [0.0, 0.0, 1.0]
> -----------------
> Jean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20101117/2fbdccf5/attachment.htm>
More information about the ParaView
mailing list