This macro as been replaced by an integrated export to vtkjs inside the UI of ParaView proper 5.6+
Otherwise, this can be solved by importing vtkFiltersGeometry instead of vtkFiltersGeometryPython. Although, there might be more import to fix with later ParaView 5.7 and 5.8.
Thanks for the quick reply! I can export a vtkjs file with the UI but when I load that file into SceneExplorer, there are problems with the coloring. I’ve tried to attach a screen shot below:
The reason is that the SceneExplorer does not know how to decode the lookup table as with the export we keep the actual fields rather than converting the rgba color like it is done in the macro.