Get proxy by click in paraview web

Hi @jourdain,
I found a tricky way to achieve what I want, which is based on a fact:
The Selection property of ExtractSelection filter over a source has value (Class AppendSelection) only if the source has selections on it.

Here’s the pseudo code.

for source in GetSources():
  es = ExtractSelection(source)
  if es.Selection is not None: # exist selection on the source
    ClearSelection(source)
    Delete(es)
    return source

I wonder if there’s a property on each source that stores selection information or there’s a global proxy to store all selection information including their corresponding sources. If this approach reminds you anything, I am happy to hear it! Thank you!

1 Like