# paraview.simple.SelectCells sellect multiple cell

**URL:** https://discourse.paraview.org/t/paraview-simple-selectcells-sellect-multiple-cell/4153
**Category:** ParaView Support
**Tags:** python
**Created:** [April 23, 2020, 1:42am UTC](https://discourse.paraview.org/t/paraview-simple-selectcells-sellect-multiple-cell/4153 "2020-04-23T01:42:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mcitrin](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/8edcca/32.png) [@mcitrin](https://discourse.paraview.org/u/mcitrin)
#### Post date: [April 23, 2020, 1:42am UTC](https://discourse.paraview.org/t/paraview-simple-selectcells-sellect-multiple-cell/4153/1 "2020-04-23T01:42:59Z")

</div>

Hi, i just started working with paraview python scripts, and i wanted to know if their was a way to query multiple cells based on their id

similar to this in the editor ![image](https://discourse.paraview.org/uploads/default/original/2X/1/1cc0294d32a1bdb6cd7a4573d21db34807bf4d0c.png)

i tried something like this but it didn’t work

paraview.simple.SelectCells(query=“id==1 | id==2 | id==3”)

---

<div class="post-metadata">

### Author: ![utkarsh.ayachit](https://discourse.paraview.org/user_avatar/discourse.paraview.org/utkarsh.ayachit/32/39_2.png) [@utkarsh.ayachit](https://discourse.paraview.org/u/utkarsh.ayachit)
#### Post date: [April 23, 2020, 1:47am UTC](https://discourse.paraview.org/t/paraview-simple-selectcells-sellect-multiple-cell/4153/2 "2020-04-23T01:47:41Z")

</div>

The following should work:

```python
# create a query selection
paraview.simple.QuerySelect(QueryString='((id == 1) | (id == 2) | (id == 3))', FieldType='CELL')

```

The easiest way to figure this out is to use the Python tracing capabilities: Tools \> Start Trace, check **Show Incremental Trace** in the **Trace Options** dialog, and then use the Find Data dialog to do the query.
