When I instantiate the filter, its RequestInformation triggers. The RequestInformation extracts a field array containing a string that tells what size the StringVectorProperty must be and what it must contain. The property is then instantly populated.
Now, if I save that state file, disconnect and load the state, when RequestInformation triggers, the field array that must be read is absent, not something I would expect.
The only workaround I’ve found is to store the NumberOfParameters inside an XML property set with panel_visibility=“never” and populate the property inside RequestData. Any hints?
Are you saying that in RequestInformation, you are accessing your input dataset and doing stuff with it? If that’s the case, that’s indeed incorrect. VTK filters cannot expect that their input datasets will be valid when RequestInformation is called. When you’re doing this one filter at a time in the ParaView UI, each new filter gets created and updated and hence you end up with an acceptable dataset in the input in RequestInformation. That won’t be the case generally.
I’ve recommend the VTK pipeline primer series of blogs for more details on the VTK pipeline.