That sounds like a much better idea I'll do that ...
Thx
---
Andrew Mumford
On Feb 13, 2017, at 05:26 PM, Tzuen Wu <[email protected]> wrote:
How about just setting an environment variable in your init.py? Then you always
have it accessible?
I can send you code when I get off work, hard to do on an phone. If you need it.
Sent from my iPhone
On Feb 13, 2017, at 10:26 AM, Andrew Mumford <[email protected]> wrote:
Hi Tzuen how are you,
I’m trying to add some automation to some basic repetitive manual work that has
to be done on every shot.
Root starts out at the value I want - first_frame = 1001, but after setting the
project range correctly for the shot it’s something like 1025-handles or 1115
for example.
Certain footage brought in after that point needs to be shifted to start at
1001 again but and may not have been rendered as frames starting at 1001 so
wouldn’t automatically end up there.
I don’t want to force all reads to start at 1001 though, changing nuke default
behavior, would rather have some variable I can set per show.
It’s trivial I know but I just wondered if "nuke.knobDefault("Root.first_frame",
"1001”)" is something that exists within root after launch as some function I can call or do I
have to parse init.py again to retrieve it.
Thx again for any input.
On Feb 12, 2017, at 12:23, Tzuen Wu <[email protected]> wrote:
You can set your read node knob default to the range of whatever is in root...
but you mention selective, what's the logic for which ones are set and which
are not?
Sent from my iPhone
On Feb 12, 2017, at 12:10 PM, Andrew Mumford <[email protected]> wrote:
If I wanted to recall
nuke.knobDefault("Root.first_frame", "1001")
after launch in order to selectively set this value on specific read nodes -
does it still exist within nuke.Root or do I have to parse init.py to recall it
again.
Like I said "basic" nuke Python, sigh ...
Thx for any help appreciate your patience ...
---
Andrew Mumford
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users