<div dir="ltr">Thanks Sebastian,<div><br></div><div>Sorry for the silly question, but I am not sure how I can run a script on the server once it has been initiated with </div><div><br></div><div>server.start_webserver(options=args, protocol=_VisualizerServer)<br></div><div><br></div><div>I am not very familiar with VTK programming.</div><div><br></div><div>Thanks</div><div>Ruggiero</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 30 December 2015 at 19:18, Sebastien Jourdain <span dir="ltr"><<a href="mailto:sebastien.jourdain@kitware.com" target="_blank">sebastien.jourdain@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Ruggiero,<div><br></div><div>It is definitely possible with ParaViewWeb. Either you embedded your initialization code within the Python Script that define the ParaViewWeb server or you can extend the pv_web_visualizer.py one to add a new argument which could be the path to the script you want to run at initialization time and then you make sure you process that arg and run that script before starting the Web server.</div><div><br></div><div>If you think that feature should be part of the Visualizer application, then you can submit a pull request on our gitlab and assign me as reviewer.</div><div><br></div><div>Happy new year!</div><div><br></div><div>Seb</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Dec 30, 2015 at 9:35 AM, Ruggiero Guida <span dir="ltr"><<a href="mailto:ruggiero.guida@gmail.com" target="_blank">ruggiero.guida@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi,<div><br></div><div>I use a Python script to run Paraview with predefined settings and automatically load files that are generated by an external application. At the moment I use the '--script' option so that the script is loaded when Paraview is launched.</div><div><br></div><div>I would like to do something similar with ParaviewWeb. Is this possible? Do I need to modify one of the predefined examples directly to include this feature?</div><div><br></div><div>Thanks and Happy New Year!</div><span><font color="#888888"><div>Ruggiero</div><div><br></div></font></span></div>
<br></div></div>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/paraview" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>