I'll give it a shot - 
thanks for the fast reply!

JRAB


On Aug 2, 2011, at 6:54 PM, Nathan Rusch wrote:

> One thing that works is to have a proxy function that calls 
> nuke.executeInMainThread(nuke.scriptExit), and then spawn that proxy in a new 
> thread from within your callback function (thread.start_new_thread is 
> probably the simplest way to do this).
> 
> Keep in mind that scriptExit will prompt to save the current script if it's 
> modified, so you may want to make sure you either save from your script 
> callback or call nuke.modified(False) before your scriptExit callback fires.
> 
> -Nathan
> 
> 
> -----Original Message----- From: John RA Benson
> Sent: Tuesday, August 02, 2011 9:37 AM
> To: Nuke Python discussion
> Subject: [Nuke-python] running nuke.scriptExit() from a panel
> 
> Hey there -
> 
> I'm trying to exit a script, but the nuke.scriptExit() is being called
> from within a callback in a panel. The problem is that nuke won't quit,
> because it's executing something else - I think the knobChanged callback
> that has the nuke.scriptExit() code in it. Is there any workaround to
> force close and exit, pythonically?
> 
> thanks
> JRAB
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python 
> _______________________________________________
> Nuke-python mailing list
> [email protected], http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to