If you use ParaView 5.7 or 5.8, you can directly use the scene export function of ParaView without the need of the macro to get the vtkjs file that the macro was producing.
If you use ParaView 5.7 or 5.8, you can directly use the scene export function of ParaView without the need of the macro to get the vtkjs file that the macro was producing.