Hello Nuke, I am trying to set an expression on a string knob - specifically, I'm trying to have it copy its values from the string knob of another node. I can do this with 'file' knobs in this way:
srcNode = node from which values come dstNode = node I'm trying to set values to dstNode['filename'].setExpression( '[value %s.exportFilename]' % srcNode.name() ) This works, and a green expression arrow appears in the user interface. However, if I'm trying to do exactly the same for a string, dstNode['modelLabel'].setExpression( '[value %s.exportModelLabel]' % srcNode.name() ) it evaluates the expression at that moment, and sets the string knob value to that value, but it has not created a 'link', nor will the dstNode's knob values change when the srcNode's do. Is there a way to do this? A google search produced a variety of suggestions, none of which seem to work. Chris -- I think this situation absolutely requires that a really futile and stupid gesture be done on somebody's part. And we're just the guys to do it.
_______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
