I recently ask about automatically adding custom filters to a custom application based on the Clone1 example.
I was referred to this article
But I can’t find an example on how to do it in my case.
For example, in the Clone1 folder I have the file
ParaViewFilters.xml, how do I add my custom filters
markers-filter.py to that file?
You do not. These files refers only to filters already present in ParaView
Just build a Plugin and load it in your application, the same way you do it in ParaView or with the static framework I provided a link to.
I guess I have problems with this because I can’t find examples that fit my needs.
For example, in https://kitware.github.io/paraview-docs/latest/cxx/PluginHowto.html there is an example with
But I have filters in python, so I look at another example.
In the ParaView source code folder
Examples/Plugins there is
I created a folder and add the filter:
Then, I build the Clone1 (https://gitlab.kitware.com/paraview/paraview/tree/master/Examples/CustomApplications) application again from
But the filter is not loaded.
Do I need to create something else? Like an XML file? Where?
Do I have to rebuild ParaView after adding the filters to the plugins folder?
you need to Load dynamically the plugin, exactly the same way as in ParaView.
(or to use the Static link I already explained earlier)
All the info is in the link you provided earlier. Please read it thoroughly.
In the end I end up creating a
plugins folder in
/path/Clone1/build/bin/paraview_clone1.app/Contents/MacOS and pasting the filters