Active frustrum selection is not picked using ExtractSelection in Python
The Active Frustrum Selection does not seems to be picked correctly when creating an ExtractSelection filter with python, while it is working with the ParaView UI. A work around is to set manually the Selection. In any case, the generated python trace does not work.
Steps to reproduce :
- open a data (I used cow.vtp)
- tools > start trace
- make a frustrum selection
- use ExtractSelection filter
- stop trace
The generated trace python use the ExtractSelection filter with these inputs : cowvtp = GetActiveSource() extractSelection1 = ExtractSelection(Input=cowvtp, Selection=None)
But it doesn't work, the resulting extractSelection is empty. The work around consist to manually set the Selection : cowvtp = GetActiveSource() selection = cowvtp.GetSelectionOutput(0) extractSelection1 = ExtractSelection(Input=cowvtp, Selection=selection.Selection)