Typically when you're dealing with two knobs on the same node, you don't need to address them using their rooted name... you should just be able to call [value maya_dir] from any other knob on the root node. However, root.maya_dir should still work. Also, keep in mind that if you're trying to get the actual value of a knob that's using expressions linked to other knobs, you need to use its .evaluate() method, not just .value().

Just tested here and it all works fine (6.2v1).

-Nathan


-----Original Message----- From: Jordan Olson
Sent: Thursday, February 24, 2011 9:44 PM
To: Nuke Python discussion
Subject: [Nuke-python] using [value] on this node?

Hi fellow nuke TDs!

I have an issue which some of you may be familiar with- I'm attempting
to chain up some knobs on the root node, by having a root knob called
"maya_dir" and then another root knob called "render_dir".
I have maya_dir set to something like "F:/Projects/ProjectA" and would
like render_dir to only have the subfolders from there inwards, like
"[value maya_dir]/Renders/shotA/".

However, I find I can only get [value root.maya_dir] (TCL) or [python
{nuke.root()['maya_dir']}] to work if it's calling a knob on a
different node. If I put two knobs/attributes on the same node and try
to chain them together, the command does not evaluate?

Would appreciate some advice.
Cheers,
Jordan
_______________________________________________
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

Reply via email to