# using "find data" aka "extract selection" with python scripting

**URL:** https://discourse.paraview.org/t/using-find-data-aka-extract-selection-with-python-scripting/562
**Category:** ParaView Support
**Tags:** python
**Created:** [September 12, 2018, 9:41am UTC](https://discourse.paraview.org/t/using-find-data-aka-extract-selection-with-python-scripting/562 "2018-09-12T09:41:59Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![jfavre](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/b5ac83/32.png) [@jfavre](https://discourse.paraview.org/u/jfavre)
#### Post date: [October 1, 2018, 11:47am UTC](https://discourse.paraview.org/t/using-find-data-aka-extract-selection-with-python-scripting/562/6 "2018-10-01T11:47:31Z")

</div>

the python recipe for your question would be:

reader = GetActiveSource() # make sure you define your active reader.

selection=SelectPoints()  
selection.QueryString=“propertyX \<= 0”  
selection.FieldType = ‘POINT’  
selection.UpdatePipelineInformation()

mySelection = ExtractSelection(Input=reader, Selection=selection)  
mySelection.UpdatePipeline()

---

_[View the full topic](https://discourse.paraview.org/t/using-find-data-aka-extract-selection-with-python-scripting/562)._
