print n['file'].evaluate() instead.

-Nathan



From: Torax Unga 
Sent: Tuesday, August 02, 2011 10:25 AM
To: Nuke Python discussion 
Subject: [Nuke-python] evaluating file knob expression

Hi,
I have a read node with an expression in the 'file' knob. How can I have access 
to the result of the expression.

NoOp {
name noop
addUserKnob {20 User}
addUserKnob {2 filein}
filein /path/to/image.%04d.dpx
}
Read {
inputs 0
file "\[value noop.filein]"
name readnode
}


This just outputs the expression string:

n = nuke.toNode('readnode')
print n['file'].value()

thanks in advance.

T




--------------------------------------------------------------------------------
_______________________________________________
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

Reply via email to