Great. thank you!

On Wed, Nov 17, 2010 at 11:10 AM, Favre Jean <jfa...@cscs.ch> wrote:

>
> ________________________________________
> From: paraview-boun...@paraview.org [paraview-boun...@paraview.org] On
> Behalf Of Hom Nath Gharti [hng.em...@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
_______________________________________________
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

Reply via email to