<div dir="ltr"><div><div><div>Hi,<br><br></div>I am trying to write a Python function that can be used in ParaviewWeb to extract the values of a point data set after a selection has been made (I am using basically pv_web_visualizer with a custom protocol that contains my python functions). I am struggling with 2 problems:<br>
<br></div>1) I cannot figure out how to display the rectangle for the selection in ParaviewWeb. With <br><br> RenderView1 = simple.GetRenderView()<br> RenderView1.InteractionMode = "Selection"<br><br></div><div>
only the mouse mode is changed, but no rectangle is shown.<br></div><div><br><div><br></div><div>2)  Using the normal Paraview GUI, after I have made a selection I can do in the Python shell:<br><br></div><div>sel=ExtractSelection()<br>
<br></div><div>this creates the Extract Selection filter which I need to finalize using the 'Apply' button.<br><br></div><div>In the Python shell I can then access the data in that selection using:<br><br>datsel=servermanager.Fetch(sel)   <br>
ar0=datsel.GetPointData().GetArray(0)<br>ar0.GetTuple1(0) <br></div><div><br></div><div>In ParavewWeb, ExtractSelection  does not pick up any selection that I have made. But it might also be that using the code in 1) is not enough to enable the selection tool.<br>
<br></div><div>in ParaviewWeb, how can I obtain the IDs of the points in the selection so that I can fetch the values ?<br></div><div><br></div><div>Any help or ideas would be greatly appreciated.<br><br></div><div>Thank you very much<br>
<br>kyr.<br></div><div><br><br></div></div></div>