Notify CommandData Plugin from a PreferenceData Plugin
-
Hello,
I have a
CommandData Pluginwhich can have preferences. These preferences are implented in aPreferenceData Plugin. How would I notify theCommandData Pluginthat the preferences have changed? I can't get theCommandData Instancefrom inside thePreferenceData, so I assume that I need to use the message system but when usingGePluginMessage()from inside thePreferenceData PluginI do not receive anything inPluginMessage()inside of theCommandData Plugin.Is there something I am missing or do I need to use another message system? Thank you in advance.
-
I ma not familiar with
PreferenceData, but maybe the following might help you:
https://developers.maxon.net/forum/topic/13379/send-message-to-commanddataIn short: you let the PreferenceData call your CommandData's ExecuteSubID via a specific unique ID (similarly obtained from plugincafe as a pluginID).
The CommandData knows if that specific subID is called that it should react to a change of preferences.Not the most elegant solution, and maybe there are ways to do this directly from PreferenceData, but as said I am not familiar with it.
-
Thank you very much, I do not know why I didn't find this post but this works perfectly
I find this to be a quite elegant solution compared to the different things I tried with the message system which didn't even work out in the end. -
hi,
well, if it works.
Cheers,
Manuel