The expression needs to be in the normal Nuke expression syntax, not Python:
myGrade = nuke.selectedNode()
myNode['white'].setExpression("%s.white" % myGrade.fullName())
-Nathan
From: John Mangia
Sent: Wednesday, December 12, 2012 12:19 PM
To: [email protected]
Subject: [Nuke-python] expression link a created node to an existing node?
I'm sure this isn't the correct syntax, but what I'm trying to do is create an
expression in a newly created node linking it to a node that already exists.
Little help guys? Thanks.
myGrade = nuke.selectedNode()
myNode['white'].setExpression("myGrade['white'].value()")
--
John Mangia
908.616.1796
[email protected]
--------------------------------------------------------------------------------
_______________________________________________
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