That's dirty, but how about you have a certain gizmo that will only exist in that script? A callback checks when that gizmo is created and runs your code. Since no other script would have that type of node, you know that your code would only run for that particular script. Not sure if that was already suggested or if that makes any sense. Haven't had coffee yet.
On Sat, May 10, 2014 at 3:25 AM, Howard Jones <mrhowardjo...@yahoo.com>wrote: > Hi > > I know the on script open functions, but is it possible to write into a > specific script, a function so when loaded it always runs it? > > That is I only want this script(s) to auto run it, not any script I open. > Hope that makes sense. > > > Howard_______________________________________________ > Nuke-python mailing list > Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > -- "Attention, attention. Here and now, boys," the mynah repeated. "Here and now, boys."
_______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python