Is it possible to automatically execute a method on startup in a C++ plugin?

[QUOTE=uiron;31095]Either case, sounds like a pretty bad idea to show “UI at startup”. You cannot guarantee order, and you’re certain to annoy users. Maybe something like “show UI on first use” is a much better alternative.[/QUOTE]

I’m not showing it every startup, I am checking to see if they have input the path and the tool has serialized it (Checking first if the path is serialized then checking if that path exists), if either of those fail I with then show the dialog for them to input the path I need to save. I’m not too sure what you mean by order, since the dialog will pop up on Maya init.