<div dir="ltr"><div>Hello,</div><div>I would like to invoke a callback on a proxy in a pvpython session from a server-side method.</div><div><br></div><div>In my server-side class "vtkCustom" I have a method</div><div>void vtkCustom::SetData(int i){</div><div>  ...</div><div>  this->InvokeEvent(1999,NULL);</div><div>  ...</div><div>}</div><div><br></div><div><br></div><div>On the client side, I create a proxy to a vtkCustom object, register an observer and set the "Data" property, which should invoke eventid=1999:</div><div>...</div><div>custom=pxm.NewProxy("myextensions","Custom")</div><div>pxm.RegisterProxy("myextensions","Custom",custom)</div><div><br></div><div>def fun(obj,event):</div><div>  print "CALLBACK",obj,event</div><div><br></div><div>custom.AddObserver(1999,fun)</div><div>vtk.vtkSMPropertyHelper(custom.GetProperty("Data")).Set(42)</div><div>...</div><div><br></div><div>The observer function "fun" on the client is never invoked, although the server-side invokes that event. I'm misunderstanding some concept of Paraviews event mechanism for sure. Can you help me correct my steps?</div><div>Thanks</div><div>Kolja</div><div><br></div></div><div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br> <table style="border-top:1px solid #d3d4de">
        <tr>
      <td style="width:55px;padding-top:18px"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif" alt="" width="46" height="29" style="width: 46px; height: 29px;"></a></td>
                <td style="width:470px;padding-top:17px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">Virenfrei. <a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a>            </td>
        </tr>
</table>
<a href="#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div>