# Highlighting Surface Cells using ParaView Python

**URL:** https://discourse.paraview.org/t/highlighting-surface-cells-using-paraview-python/15690
**Category:** ParaView Support
**Created:** [November 6, 2024, 12:26am UTC](https://discourse.paraview.org/t/highlighting-surface-cells-using-paraview-python/15690 "2024-11-06T00:26:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sherin.sugathan](https://discourse.paraview.org/user_avatar/discourse.paraview.org/sherin.sugathan/32/15264_2.png) [@sherin.sugathan](https://discourse.paraview.org/u/sherin.sugathan)
#### Post date: [November 6, 2024, 12:26am UTC](https://discourse.paraview.org/t/highlighting-surface-cells-using-paraview-python/15690/1 "2024-11-06T00:26:34Z")

</div>

Is it possible to highlight a set of cell/point IDs using ParaView Python?

 ![image](https://discourse.paraview.org/uploads/default/original/2X/9/971f762c253a3ac8ae6641bc629e1bde188bd6b0.png)

Currently, when I am using the “ **Interactive Select Cells On** ” feature, I can pick a single cell interactively. As a result, the picked cell will be highlighted in pink color. In the trace, this will get recorded as follows:

```auto
# create a surface cells selection
SelectSurfaceCells(Rectangle=[593, 790, 593, 790], Modifier='ADD')

```

Few questions:

- Why does selecting a single cell appear as a rectangular selection in the trace?
- Is there a way to highlight/visualize (as pink color selections) a set of cell IDs using paraview python?

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 6, 2024, 8:36am UTC](https://discourse.paraview.org/t/highlighting-surface-cells-using-paraview-python/15690/2 "2024-11-06T08:36:41Z")

</div>

Hi @sherin.sugathan !

> [@sherin.sugathan](#):
>
> Why does selecting a single cell appear as a rectangular selection in the trace?

Because this is how the wrapping for SelectCellsOn was implemented, as it is likely that the ID is not known when tracing the selection.

> Is there a way to highlight/visualize (as pink color selections) a set of cell IDs using paraview python?

Use `SelectIds` instead
