Great. thank you!<br><br><div class="gmail_quote">On Wed, Nov 17, 2010 at 11:10 AM, Favre Jean <span dir="ltr"><<a href="mailto:jfavre@cscs.ch">jfavre@cscs.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
________________________________________<br>
From: <a href="mailto:paraview-bounces@paraview.org">paraview-bounces@paraview.org</a> [<a href="mailto:paraview-bounces@paraview.org">paraview-bounces@paraview.org</a>] On Behalf Of Hom Nath Gharti [<a href="mailto:hng.email@gmail.com">hng.email@gmail.com</a>]<br>
Sent: Wednesday, November 17, 2010 10:31 AM<br>
To: ParaView<br>
Subject: [Paraview] Python script change solid color<br>
<div class="im"><br>
Dear all,<br>
<br>
Is there a simple way to change the solid color of e.g. surface with Python script?<br>
</div>-------------------------------------------------------------------------------------------------------------<br>
<br>
Assuming you already have your data representation, and if you don't, you do something like that:<br>
<br>
rep = GetDisplayProperties(Contour)<br>
<br>
then, you simply assign an RGB tuple (e.g. blue)<br>
<br>
rep.DiffuseColor = [0.0, 0.0, 1.0]<br>
-----------------<br>
<font color="#888888">Jean</font></blockquote></div><br>