nuke.filename() is often more useful, as it optionally resolves any expressions and sequence notation:

nuke.filename( nuke.toNode('Read1'), nuke.REPLACE )





On 4/5/12 10:07 AM, Hugo Leveille wrote:
f = read['file'].value()
print f

Sent from my iPhone

On 2012-04-04, at 6:05 PM, "Toki Wartooth"<[email protected]>  wrote:

Hi Everyone,

I have a simple python script that I'd like to set the value of a Read node to 
something like fileinput and then use said variable.  In tcl I could just use 
[value Read1.file] .. what would the equivalent way, or a way to grab the path. 
 so if Read22 = //myserver/shows/projectx/000/001/projectxfiles.0001.dpx how 
could I derive that in python..

Cheers,

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

_______________________________________________
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