what exactly is the error? Are you sure you have a node called "Read1"
on root level (not in side a group)?
you can use any way to get to the node, try nuke.selectedNode() instead
(make sure the Read is selected in the DAG)
On 4/5/12 10:36 AM, Toki Wartooth wrote:
Thanks Frank.. I must have a case of the stupids today..
the script editor gives me an error..
expecting a Nuke node type
mypath = nuke.filename( nuke.toNode('Read1'), nuke.REPLACE )
print mypath
I do have a node called Read1, what does the replace do?
On Wed, Apr 4, 2012 at 5:29 PM, Frank Rueter <[email protected]
<mailto:[email protected]>> wrote:
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]>
<mailto:[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]
<mailto:[email protected]>,http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected]
<mailto:[email protected]>,http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
_______________________________________________
Nuke-python mailing list
[email protected]
<mailto:[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