Find Data - Large Cell ID Selection


I currently have a *.vtk file that is approximately 3 million cells.
I have specific Cell ID’s that I would like to highlight/view.

For this, I open ParaView, load my object (vtk file).
I go to Edit -> Find Data.
My goal is to find Cell(s) in the the *.vtk file.
I select ID is one of … (i.e. 1, 2, 3, 4, …, 100,000)

The problem is that I am not able to add ALL the Cell IDs I want to see. ParaView has a limit of numbers (followed by commas) that it can take.
Is there a way in which I can supply a large list of numbers that I have already identified?

Thank you!

Can’t you instead use one (or a set of) ranges? Like select alls cells if IDS <= 100 000?

That wouldn’t work for me as the Cell IDs I have are NOT continuous.
Would there be another approach?

Then what about using a Python script to perform the selection?

Yeah! Could you guide me into how this selection can be performed using Python?
I already wrote a python script that would gather all the Cell IDs I need so I can paste them into ParaView. However, I ran into that limitation I mentioned in this topic.

My end goal is to view this large random group of Cell IDs in ParaView.

You can proceed by creating an array made of pairs (process id, cell id) and then use the SelectIDs() function of ParaView to perform the selection.
Example to select cells 1, 20 and 34:

   my_ids = [ 0,1,  0,20,  0,34 ]
   SelectIDs(my_ids, 'CELL')

Two questions regarding your answer:

  1. What do you mean by process ID? In your example, what would the zeros represent?
  2. How can I implement the function in ParaView?
  1. If you don’t know what processor ID is, I think you are not using ParaView in client/server mode connected to a distributed server, so put 0 everywhere.
  2. Use the Python Shell (menu View/Python Shell) to type your cell selection script.