Thanks Frank. You’re always so helpful. This was a huge help in my baby steps to start customizing the workflow a little more.
It just takes some of us a while to get a “feel” for the syntax with tcl and Python. Michael > On May 1, 2016, at 7:16 PM, Frank Rueter|OHUfx <fr...@ohufx.com> wrote: > > Yes, that's how it can work (just make sure you use correct single quotes, > one of yours is a back tick which will cause a syntax error). > And of course in your example you are setting and env variable called "JOB", > but then reading one that is called "NUKE_JOB" which won't get you the > respective value. > > Also, getenv is a tcl command but it reads the same environment. If you want > to use the python equivalent just use os.environ['NUKE_JOB'] > > Cheers, > frank > > On 05/02/2016 07:11 AM, Michael Hodges wrote: >> I know it’s kind of a basic question ( I already asked on the forum and the >> silence was deafening) but I’m struggling with properly setting up >> >> a custom environment variable in Nuke. I’ve read the documentation but it >> seems to gloss over the fundamental set up a little. >> >> >> >> So I've got two questions: >> >> 1.Assuming my variable would be something like "NUKE_JOB" ( like Houdini) >> and my resolving path would be /path/to/job/ ... What would be the syntax to >> add to my init.py.? >> >> >> os.environ['JOB'] = '/path/to/job/‘ >> >> >> 2. Would I then simply call NUKE_JOB in the Nuke file dialog with: >> >> >> [getenv NUKE_JOB]/render/ >> >> >> Thanks, >> >> >> Michael >> >> >> _______________________________________________ >> Nuke-users mailing list >> Nuke-users@support.thefoundry.co.uk >> <mailto:Nuke-users@support.thefoundry.co.uk>, >> http://forums.thefoundry.co.uk/ <http://forums.thefoundry.co.uk/> >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users >> <http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users> > _______________________________________________ > Nuke-users mailing list > Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________ Nuke-users mailing list Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users