ParaView Python Shell - command on plugin is NOT called

Hello!

I use

print(j.GetProperty("my_property_from_XML"))

Which in XML is an information_only property which has to call some command on my plugin.

However, it is not actually called, which is seen from the debugger. In python returns some old value, and the target command seems to have been called only once.

What is the correct way to force real execution of my server-side (plugin) command and getting its result?

Thanks

Use UpdatePropertyInformatin on the proxy

https://www.paraview.org/paraview-docs/nightly/cxx/classvtkSMProxy.html#ad929084cd23f1f465399a116ca833f65

As always, Mathieu saves the day, thank you a lot

Could I trigger this command from the server side?

Like, I call some coommand from python

print(j.mycommand())

And it calls the target command from the plugin XML specified with “command”
And server somehow forces the update of all properties. Is that possible?

That doesnt make much sense, the client control what the server does. If you are running code server side, you can just access your server side filter directly.

“If you are running code server side”

What do you mean? You mean, when it is a single binary, run on single device, right?

How can one then use such an opportunity from Python?

No, server side code is, for example, VTK Filter code, while client side code, is, for example, Qt code or pvpython code.