THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 14/03/2011 at 09:54, xxxxxxxx wrote:
This is one of those things that needs to be better documented.
There's several ways to create a plugin's structure. And they will all work. But there seems to be a certain preferred method to the madness.
What I've gathered from poking around is this:
-Init() function should only be used to set initial values
-Message() function should only be used to issue updates when something changes
-Command() function should only be used to hold GUI state code
-Execute() function is not just for opening dialogs. But also for where your main code should be placed
But then I sometimes see people put their main code inside of the main() section for dialog related scripts and plugins. Where most people just place the dialog window code.
I'd love to see an official "Maxon's preffered method for plugin structures" in the future.
right now it seems like the wild, wild, west. With everyone adding their own little twist on the plugin structures the create. And that's all very confusing to understand when you're newbie like me.