<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>That is really cool to see. Thanks for sharing the video. <br><br>Sent from my iPhone</div><div><br>On Dec 7, 2012, at 1:18 PM, Felipe Bordeu <<a href="mailto:felipe.bordeu@ec-nantes.fr">felipe.bordeu@ec-nantes.fr</a>> wrote:<br><br></div><blockquote type="cite"><div>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type">
<div class="moz-cite-prefix">Thanks pat,<br>
<br>
<br>
This is the result. <a class="moz-txt-link-freetext" href="https://www.youtube.com/watch?v=6vqPQAWEqBk">https://www.youtube.com/watch?v=6vqPQAWEqBk</a><br>
<br>
<br>
Felipe<br>
<br>
<br>
Le 06/12/2012 13:57, Pat Marion a écrit :<br>
</div>
<blockquote cite="mid:CAMetC=RyrnFzqNpxt4CfUREA0-pn8kigw0EyCWv71V=3aNvqWQ@mail.gmail.com" type="cite">Yes, you can send information back through the
socket. If you're using the socket to invoke python code, then
any string returned by your python code will be written to the
socket. But, by default the python handler method doesn't return
anything. If you edit pqPythonSocketHandler.cxx, you can change
the python handler function that is used. Just put some code like
this at the top of onSocketReadReady():<br>
<br>
PyObject* mainModule = PyImport_AddModule("__main__");<br>
PyObject* mainDict = PyModule_GetDict(mainModule);<br>
this->Internal->Callback = PyDict_GetItemString(mainDict,
"myFunction");<br>
<br>
That will make the socket forward the string to a python function
you've implemented called "myFunction()", and any string returned
by that will be written to the socket.<br>
<br>
Pat<br>
<br>
<div class="gmail_quote">
On Thu, Dec 6, 2012 at 12:42 AM, Felipe Bordeu <span dir="ltr"><<a moz-do-not-send="true" href="mailto:felipe.bordeu@ec-nantes.fr" target="_blank">felipe.bordeu@ec-nantes.fr</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
hi everybody,<br>
<br>
I'm using the great plugin ;) ParaViewSocketPlugin, to control
ParaView. But now I will like to have some information sent
back to the client. I look at the sources but I couldn't
figure out the way to do it.<br>
<br>
Is this possible, using the plugin (or some minor
modifications) ???<br>
<br>
Felipe<br>
<br>
-- <br>
Felipe Bordeu Weldt<br>
Ingénieur de Recherche<br>
-------------------------------------<br>
Tél. : <a moz-do-not-send="true" href="tel:33%20%280%292%2040%2037%2016" value="+13302403716" target="_blank">33 (0)2 40 37 16</a> 57<br>
Fax. : <a moz-do-not-send="true" href="tel:33%20%280%292%2040%2074%2074" value="+13302407474" target="_blank">33 (0)2 40 74 74</a> 06<br>
<a moz-do-not-send="true" href="mailto:Felipe.Bordeu@ec-nantes.fr" target="_blank">Felipe.Bordeu@ec-nantes.fr</a><br>
Institut GeM - UMR CNRS 6183<br>
École Centrale Nantes<br>
1 Rue de La Noë, 44321 Nantes, FRANCE<br>
-------------------------------------<br>
<br>
_______________________________________________<br>
Powered by <a moz-do-not-send="true" href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a moz-do-not-send="true" href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at:
<a moz-do-not-send="true" href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a moz-do-not-send="true" href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote>
</div>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
<a class="moz-txt-link-abbreviated" href="mailto:Felipe.Bordeu@ec-nantes.fr">Felipe.Bordeu@ec-nantes.fr</a>
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------</pre>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Powered by <a href="http://www.kitware.com">www.kitware.com</a></span><br><span></span><br><span>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br><span></span><br><span>Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a></span><br><span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br><span><a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a></span><br></div></blockquote></body></html>