VTKPythonAlgorithm writers cannot use same extension as any other ParaView writers
When creating a VTKPythonAlgorithmBase
subclass writer algorithm, you cannot use an extension that a ParaView (or another VTKPythonAlgorithmBase
) writer already uses. For example, I cannot use the txt
extension because the DataSetCSVWriter
already has that extension.
@smproxy.writer(extensions="txt", file_description="Some custom writer", support_reload=False)
@smproperty.input(name="Input", port_index=0)
@smdomain.datatype(dataTypes=["vtkDataSet"], composite_data_supported=True)
class PVWriterPlugin(VTKPythonAlgorithmBase):
...
If I try to use a writer with that extension it defaults to the DataSetCSVWriter
:
I choose my custom writer plugin via the pop-up dialog after File->Save Data...:
After clicking Okay, I am prompted with the configuration options for the DataSetCSVWriter
: