<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
I try to modify representation properties in order to color my data
with the values of an array<br>
and I get a segmentation fault.<br>
<br>
So I try the example which is on the wiki on the Python Scripting page<br>
And i also get a segmentation fault during the rendering<br>
<br>
<div dir="ltr" style="text-align: left;">
<div class="python 
source-python" style="font-family: monospace;">
<pre class="de1"><span class="sy0">&gt;&gt;&gt;</span> <span class="kw1">from</span> paraview.<span
 class="me1">simple</span> <span class="kw1">import</span> <span
 class="sy0">*</span>
paraview version 3.7.0, Date: 2009-11-24
<span class="co1"></span><span class="sy0">&gt;&gt;&gt;</span> sph = Sphere<span
 class="br0">(</span><span class="br0">)</span>
<span class="sy0">&gt;&gt;&gt;</span> elev = Elevation<span class="br0">(</span>sph<span
 class="br0">)</span>
<span class="sy0">&gt;&gt;&gt;</span> Show<span class="br0">(</span>elev<span
 class="br0">)</span>
<span class="sy0">vtkSphereSource : [ ...........]
vtkElevationFilter : [ ...........]
&lt;paraview.servermanager.GeometryRepresentation object at 0x371b410&gt;
&gt;&gt;&gt;</span> Render<span class="br0">(</span><span class="br0">)
vtkPVGeometryFilter : [ ...........]
vtkPVCacheKeeper : [ ...........]
vtkPainterPolyDataMapper : [ ...........]
vtkPainterPolyDataMapper : [ ...........]
&lt;paraview.servermanager.RenderView object at 0x23fbb10&gt;
</span><span class="co1"></span><span class="sy0">&gt;&gt;&gt;</span> dp = GetDisplayProperties<span
 class="br0">(</span>elev<span class="br0">)</span>
<span class="sy0">&gt;&gt;&gt;</span> dp.<span class="me1">Representation</span> = <span
 class="st0">'Points'</span>
<span class="co1"></span><span class="sy0">&gt;&gt;&gt;</span> ai = elev.<span
 class="me1">PointData</span><span class="br0">[</span><span class="nu0">1</span><span
 class="br0">]</span>
<span class="sy0"></span><span class="sy0">&gt;&gt;&gt;</span> dp.<span
 class="me1">LookupTable</span> = MakeBlueToRedLT<span class="br0">(</span><span
 class="nu0">0</span>, <span class="nu0">0.5</span><span class="br0">)</span>
<span class="sy0">&gt;&gt;&gt;</span> dp.<span class="me1">ColorAttributeType</span> = <span
 class="st0">'POINT_DATA'</span>
<span class="sy0">&gt;&gt;&gt;</span> dp.<span class="me1">ColorArrayName</span> = <span
 class="st0">'Elevation'</span> <span class="co1"># color by Elevation</span>
<span class="sy0">&gt;&gt;&gt;</span> Render<span class="br0">(</span><span
 class="br0">)
vtkPainterPolyDataMapper : [ ...........]
Segmentation fault
</span></pre>
</div>
</div>
I'm using paraview 3.7<span id="result_box" class="medium_text"><span
 style="background-color: rgb(255, 255, 255);"
 title="le r&eacute;sultat est sombre et les chiffres sont
 &eacute;crits &agrave; l'envers, et l'objet affich&eacute; a une sym&eacute;trie suivant le plan 
xy"><br>
</span></span><span id="result_box" class="short_text"><span
 style="background-color: rgb(255, 255, 255);"
 title="Savez-vous ce qui se passe ?">Do you have an idea of what
happens?</span></span><br>
<br>
Thanks in advance<br>
<br>
-- <br>
Nicolas Richart<br>
</body>
</html>