$GUI will return the GUI'ness in expressions(/Tcl), and nuke.env['gui'] will return this for Python.
Any nuke.ALLCAPS attributes are constants, used for things such as nuke.plugins(nuke.ALL | nuke.NODIR, "Blur") Brandon Harris wrote: > Actually, it seems that I can call the 'gui' environment variable to > find out instead of the interactive. > > Brandon L. Harris > > > On 04/15/2011 12:25 PM, Brandon Harris wrote: >> I'm needing a way to find out whether a job of mine is running on our >> render farm or on a persons local machine. I'm thinking the best way >> to do this is to determine what type of license the current nuke is >> pulling. >> >> is nuke.INTERACTIVE going to hold this information, thus far, even if >> I launch in terminal mode (which I thought drew a non interactive >> license) it still returns True. >> >> Brandon L. Harris >> _______________________________________________ >> Nuke-python mailing list >> [email protected] >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > _______________________________________________ > Nuke-python mailing list > [email protected] > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python -- ben dickson 2D TD | [email protected] rising sun pictures | www.rsp.com.au _______________________________________________ Nuke-python mailing list [email protected] http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
