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