# Enable all cell/point arrays in Catalyst V2 script

**URL:** https://discourse.paraview.org/t/enable-all-cell-point-arrays-in-catalyst-v2-script/11316
**Category:** In Situ Support
**Created:** [February 1, 2023, 6:04pm UTC](https://discourse.paraview.org/t/enable-all-cell-point-arrays-in-catalyst-v2-script/11316 "2023-02-01T18:04:22Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![mirenradia](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/m/6bbea6/32.png) [@mirenradia](https://discourse.paraview.org/u/mirenradia)
#### Post date: [February 1, 2023, 6:04pm UTC](https://discourse.paraview.org/t/enable-all-cell-point-arrays-in-catalyst-v2-script/11316/1 "2023-02-01T18:04:22Z")

</div>

Suppose I have a data structure with some cell arrays (the same question could be applied to point arrays), A, B and C. I load this into ParaView, selecting all of these cell arrays and create some kind of pipeline with extractor that doesn’t depend on the specific fields (e.g. I might just save the data structure to some kind of VTK XML data format). When I export a Catalyst script, it will contain something like the line (my source is called `input`)

```python
input.CellArrayStatus = ['A', 'B', 'C']

```

Say I want to use this script (either directly in ParaView or using Catalyst in-situ) for a similar data structure with cell arrays D, E and F. I could modify the line above to

```python
input.CellArrayStatus = ['D', 'E', 'F']

```

but I would prefer not to need to check first what cell arrays are present in the second data structure.

Is it possible to modify the Catalyst script such that all Cell Arrays are automatically read into the pipeline? Perhaps there is a method to query what Cell Arrays are present in a particular source first?

Please forgive my ignorance if this is a stupid question. I’m not all that familiar with ParaView Python.

---

<div class="post-metadata">

### Author: ![Abbas](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/22d042/32.png) [@Abbas](https://discourse.paraview.org/u/Abbas)
#### Post date: [April 17, 2023, 9:34am UTC](https://discourse.paraview.org/t/enable-all-cell-point-arrays-in-catalyst-v2-script/11316/2 "2023-04-17T09:34:24Z")

</div>

Hi there,  
I am currently in the search for something like this as well. Let me know if you found a resolution.

Cheers

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [April 17, 2023, 2:48pm UTC](https://discourse.paraview.org/t/enable-all-cell-point-arrays-in-catalyst-v2-script/11316/3 "2023-04-17T14:48:35Z")

</div>

You can use the [Data Informations](https://docs.paraview.org/en/latest/UsersGuide/understandingData.html#getting-data-information-in-pvpython) to get the list of available arrays, and the set up the property accordingly.

Something like `input.CellData.keys()` should return the list of cell data array names.

---

<div class="post-metadata">

### Author: ![Abbas](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/a/22d042/32.png) [@Abbas](https://discourse.paraview.org/u/Abbas)
#### Post date: [April 18, 2023, 2:19am UTC](https://discourse.paraview.org/t/enable-all-cell-point-arrays-in-catalyst-v2-script/11316/4 "2023-04-18T02:19:59Z")

</div>

This works after I have the particular arrays loaded. However, is there something possible to iterate over the possible arrays of Point and Cell data even before the array status is finalized or loaded?

---

<div class="post-metadata">

### Author: ![nicolas.vuaille](https://discourse.paraview.org/user_avatar/discourse.paraview.org/nicolas.vuaille/32/5873_2.png) [@nicolas.vuaille](https://discourse.paraview.org/u/nicolas.vuaille)
#### Post date: [April 18, 2023, 7:21am UTC](https://discourse.paraview.org/t/enable-all-cell-point-arrays-in-catalyst-v2-script/11316/5 "2023-04-18T07:21:28Z")

</div>

Depending on the reader, the `Data Information` object may/should contain the array list before the first run of the pipeline, just after you instanciate it.

Other option: may be the filter initialize this property with all available arrays, so leaving this empty in your script will do the trick (the first time only: if arrays are added afterward, the prop will not be updated). So this is not the more reliable.
