THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 16/01/2007 at 13:03, xxxxxxxx wrote:
Cinema 4D Version: 8.5
Platform: Windows ;
Language(s) : C++ ;
I have made a commandplugin, and I would like to call a function (not neccesarily execute()) in my plugin from another plugin. I read in a thread in this forum that I could do this using pluginmessages, but I don't really understand how.
I have made my other plugin send a GePluginMessage that is recieved by the first plugin, but I don't understand where to go from there since I don't have access to an instance of my commandplugin from pluginmessage().
On 20/01/2007 at 01:42, xxxxxxxx wrote:
I have solved this using
BasePlugin* pl = FindPlugin(ID_OF_MYCOMMANDPLUGIN);
Does anybody know a more elegant way?
On 25/01/2007 at 07:13, xxxxxxxx wrote:
You could pass the this pointer of the plugin and cast it within the PluginMessage function.
from somewhere in your plugin
and within PluginMessage of your other plugin