Which the best way to pass parameters in the example web-project-templates-master

Dear All,

If I have a parameter to pass to the functions in vtk_protocol.py (to init function) which the best way to pass it. The parameter is available before calling the Paraview Python which runs vtkw-server.py.
I tried to create a environment variable but when it runs init is already not available.


Luís Gonçalves

Use command line arguments in the same way every pvw app is doing.

Yes, I understand.

How I access the argument inside VtkCone()?

You pass it to the constructor like done here for example.