hey Nuke dev! I have another strange one... i need to setup stuff on plugin load. What is the smartest way to run code ONCE when the plugin gets loaded?
i researched and so far i am using a static object and in its constructor i do my business. the problem that i am facing is that the order of static objects is not defined. So now in my static setup class i am calling code that itself has static variables and they are not valid at this point. I am looking for the equivalent of initializePlugin in maya for example. A space that is valid but only run ONCE as SOON as you load the plugin. Overall i need this and then a space on node create and delete ( i have found the attach and dettach methods to work fine here ) as well as a node renamed callback. This callback works fine now but really due to the unpredictable order of static variables i would need some help with the plugin initialize. Any code masters out there with new ideas? Rock on jo
_______________________________________________ Nuke-dev mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-dev
