Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
The way that Krambriw said, is not the only one.
There is also another way to get or set the plugin variables.
You can see it in the following example:
Test_variable_access.png (18.59 KiB) Viewed 4602 times
Dear Pako,
This is of course a nicer and very visible way since it is shown in the tree structure. If you prefer to have it more "hidden", and using a more advanced script with additional logic inside, built in calls to actions the way I showed could be the choice. Both ways will of course work.
krambriw wrote:If you prefer to have it more "hidden", and using a more advanced script with additional logic inside, built in calls to actions the way I showed could be the choice.
Dear Walter !
I do not understand your post. Or you misunderstood my post.
I mainly wanted to point out that access to plugin variables is possible even without getter action.
This can be useful especially in case of an existing plugin, which is inappropriate to intervene.
krambriw wrote:You are absolutely correct, ..., your way is the best.
Dear Walter,
no, I do not think it. We can not say that variant using the eg.plugins.<PluginClassName>.plugin.<PluginVariable> is the best.
It is only one variant, suitable in certain cases. Likewise, a variant with a getter action is again most appropriate in other cases.
I'm thinking in particular cases when you can expect frequent use for less experienced users.