<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div><br>
</div>
<div>The indices of the points selected are in a field called "vtkOriginalPointIds". It is a field with a special meaning and is hidden in some cases.</div>
<div><br>
</div>
<div>if you write the selected data to disk, it will show up as field "vtkOriginalPointIds"</div>
<div><br>
</div>
<div>Consider the pvpython code below:</div>
<div><br>
</div>
<div><i>from paraview.simple import *<br>
<br>
w = Wavelet()<br>
w.UpdatePipeline()<br>
<br>
selection=SelectPoints()<br>
selection.QueryString="RTData <= 40"<br>
selection.FieldType = 'POINT'<br>
selection.UpdatePipelineInformation()<br>
<br>
# create a new 'Extract Selection'<br>
mySelection = ExtractSelection(Input=w, Selection=selection)<br>
mySelection.UpdatePipeline()</i></div>
<div><i>SaveData("foo.vtk", mySelection)</i></div>
<div><br>
</div>
<div>and inspect the contents of foo.vtk, you will find your ids.</div>
<div><br>
</div>
<div>if you need more, I simply use a Python Calculator to rename the field and I can then access the array</div>
<div><br>
</div>
<div><i>passthru = PythonCalculator(Input = mySelection)<br>
passthru.Expression = 'inputs[0].PointData["vtkOriginalPointIds"]'<br>
passthru.ArrayAssociation = "Point Data"<br>
passthru.ArrayName = 'ids'<br>
passthru.UpdatePipeline()</i></div>
<div><i><br>
</i></div>
<div><i>passthru.GetPointDataInformation().GetArray("ids").GetName()</i></div>
<div><i><br>
</i></div>
<div>HTH</div>
<div>Jean<i><br>
</i></div>
<div><i><br>
</i></div>
<div><i><br>
</i></div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</body>
</html>