and it's all working now. thanks!
On Thu, Sep 6, 2012 at 12:29 PM, Dan Rosen <[email protected]> wrote: > In our UI we do use onScriptLoad (which is loaded dynamically in our > menu.py), so I am trying that now for command-line rendering too. I > was thinking that I would keep in simple at the command-line and only > set environment variables via the init.py rather than use the > onScriptLoad which was pointing to other UI-only calls. > > On Thu, Sep 6, 2012 at 12:07 PM, Nathan Rusch <[email protected]> > wrote: >> Out of curiosity, at what point are you doing your parsing in the UI? And is >> there a reason an onScriptLoad callback isn't an option? >> >> -Nathan >> >> -----Original Message----- From: Dan Rosen >> Sent: Thursday, September 06, 2012 11:55 AM >> To: Foundry ; Foundry >> Subject: [Nuke-python] get script name at render time >> >> >> Hello, >> >> I'm trying to parse the script path and name at render time via >> init.py. It seems that init.py executes before the script is actually >> loaded. Any other suggestions? I'd like to do this and the same way >> that we successfully do it in the UI. >> >> We parse our script path and name on load and save in the UI via some >> python in order to set our SHOW, SEQ, SHOT, ROLE environment variables >> based on the script path. This works great in the UI, but not at >> render time. I have called the same python function in our init.py, >> but that doesn't seem to work (returning the script name as "Root"). >> >> thx >> Dan >> _______________________________________________ >> 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
