<div dir="ltr">Hi,<div><br></div><div>I would like to use the python shell to get the data for a single point from a data set. I have point data which is imported as a Polygonal Mesh.</div><div><br></div><div>I can use the following to get a handle to an array,</div>
<div><br></div><div><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,0,0)">data = GetActiveSource()</span><br></div><div><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,0,0)">pointdata = data.PointData()</span><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,0,0)"><br>
</span></div><div><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,0,0)">pressure_array = </span><span style="color:rgb(0,0,0);font-family:Courier;font-size:8.25pt">pointdata.GetArray('Pressure')</span></div>
<div><br></div><div>However at this point I can't extract the value for a given point index, I've tried,</div><div><br></div><div><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,0,0)">pressure_array.GetValue(17)</span><br>
</div><div><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,0,0)">pressure_array.GetPointData(17)</span><span style="font-family:Courier;font-size:8.25pt;color:rgb(0,0,0)"><br></span></div><div><br></div><div>
Where 17 is a point index. both these functions just give me an error. Can anyone help with this?</div><div><br></div><div>Cheers,</div><div>Bruce</div></div>