<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Dear all<div><br></div><div>I wrote a script that generats color map using normal&nbsp;<span style="font-size: 12pt;">and then color the surface with it</span></div><div><br></div><div>the script works fine for some data while it displays the following error&nbsp;</div><div><br></div><div>message for other data&nbsp;</div><div><br></div><div>ValueError: Could not locate array Normals in the input.</div><div><br></div><div>this is my code</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>a1_Normals_PVLookupTable = GetLookupTableForArray( "Normals", 3,NumberOfTableValues=2048 )</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>a1_Normals_PVLookupTable.RGBPoints=[-1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0, 1.0]</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>a1_Normals_PVLookupTable.Discretize = 0</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span># We want x component of the normal</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>a1_Normals_PVLookupTable.VectorComponent = 0</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>a1_Normals_PVLookupTable.NanColor=[0.0, 1.0, 0.0]</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>a1_Normals_PVLookupTable.ColorSpace='RGB'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>a1_Normals_PVLookupTable.ScalarRangeInitialized=1.0</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>DataRepresentation0.ColorArrayName = 'Normals'</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>DataRepresentation0.LookupTable = a1_Normals_PVLookupTable</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>DataRepresentation0.InterpolateScalarsBeforeMapping = 1</div></div><div><br></div>                                               </div></body>
</html>