[Paraview-developers] reader plugin clear file property

🐋 Jan Hegewald jan.hegewald at awi.de
Fri Jul 6 05:56:50 EDT 2018


Dear all,
I am working on a reader plugin. It has a property to select multiple files:
         <StringVectorProperty animateable="0"
            name="VariableFile"
            clean_command="RemoveAllVariableFiles"
            command="AddVariableFile"
            repeat_command="1"
            number_of_elements="1"
            <FileListDomain name="files" />
         </StringVectorProperty>

When I use the reader in Paraview, I can e.g. select 3 files: A.txt;B.txt;C.txt and hit the Apply button. Everything is as expected.
Now I want to select other files: X.txt;Y.txt. Hit Apply button. Now AddVariableFile is called 3 times instead of 2, for
X.txt
Y.txt
C.txt

I have tried to assign an information_property and provide the correct number of files, but no luck here.
Did I miss something in the properties?
Is there a way to just clear the whole property from the RemoveAllVariableFiles call?

Any help is greatly appreciated.
Many TIA,
Jan Hegewald


More information about the Paraview-developers mailing list