Thanks for confirming my suspicion :)
Posts made by Boony2000
Register Plugin during runtime
Depending on some outside factors I want to register one (or more) additional commandData plugin(s).
When I run RegisterCommandPlugin() on a button press however, I get this error:
EnvironmentError: cannot find pyp file - plugin registration failed
Is it not possible to add plugins after startup/ during runtime? Or am I doing something else wrong?
RE: Get PluginID from within CommandData plugin
I am trying to register multiple plugins that are instances of the same class, but do slightly different stuff (in this case construct different menus). I am getting some external data that I would like to put in a dictionary with the plugin ID as keys. I could then get the correct data set for each plugin by comparing the pluginID from e.g. within execute with the pluginIDs in the dictionary. But for that I would need a way to retrieve the pluginID of the class instance whose execute function was called.
Edit: I figured out a way. I can pass the pluginID when initializing the plugin in the register function and save it as a class member in
Get PluginID from within CommandData plugin
Is it possible to get the pluginID of a CommandData plugin from within the registered plugin class/instance?
I saw that
BasePlugin.GetID()exists, but sadly it doesn't seem to work in a CommandData Plugin.
I am looking for something like
self.GetPluginID()to retrieve the ID from within the running plugin.
RE: PluginID / ModuleID
Could you explain how the reverse-domain assembled IDs are used? I could not find any ressources for that.
In a different post you mentioned that the traditional plugin IDs will eventually be replaced by reverse-domain assembled ID.
Is there even a point in registering plugin IDs anymore, or should one use the new style?
And how would one go about doing that?