<div dir="ltr">I have a source object that produces a polydata object. Unfortunately the normals and scalars are unnamed. How do I access these and name them in ParaView.<div>I thought something like this may work in a Programmable Filter:</div>
<div><pre class="" style="padding:0px;border:0px none white;color:rgb(0,0,0);line-height:1.2em;font-size:10px;margin-top:0px;margin-bottom:0px;vertical-align:top;background-image:none;background-repeat:initial"><p style="margin:0px">
pdi = self.GetPolyDataInput()</p>
<p style="margin:0px">pdo = self.GetPolyDataOutput()</p>
<p style="margin:0px">pdi.GetNormals().SetName('Normals')</p>
<p style="margin:0px">pdi.GetScalars().SetName('Scalars')</p>
<p style="margin:0px">pdo = pdi</p></pre><div><br></div><div>However, I can't see the array names.</div><div><br></div><div>This sort of thing works Ok in a Python Script:</div><div><div> # Name the arrays</div><div>
randomHillsSource.GetOutput().GetPointData().GetNormals().SetName('Normals')</div><div> randomHillsSource.GetOutput().GetPointData().GetScalars().SetName('Scalars')</div><div># pd = randomHillsSource.GetOutput().GetPointData()</div>
<div># print pd</div></div><div><br></div><div>Is it possible to do this on ParaView?</div><div><br></div><div>Thanks in advance for any help.</div><div><br></div><div>Andrew</div><div><br></div>-- <br>___________________________________________<br>
Andrew J. P. Maclean<br><br>___________________________________________
</div></div>