hello,
I have c++ plugin, compiled and working, this plugin has a reader and a filter.
Now I want to use the c++ plugin filter inside a programmable filter but I don’t know how to create the vtk instance of my filter.
I tried to inspect the paraview module and I can see that the filter is loaded but I don’t know how to use it (in the Script section of a ProgrammableFilter):
import paraview
PVPTinstance = paraview.modules.vtkRemotingCore.vtkPVPluginTracker().GetInstance()
a = PVPTinstance.GetNumberOfPlugins()
for i in range(a):
if PVPTinstance.GetPluginName(i) == "ZsetToolsNativePlugin":
print(PVPTinstance.GetPluginName(i))
#print(PVPTinstance.GetPlugin(i))
print(PVPTinstance.GetPluginLoaded(i))
The output (in the “Output Messages” is :
ZsetToolsNativePlugin
True
Any ideas.
Thanks
Felipe