print nuke.root()['name'].value()
or
print nuke.root().knob('name').value()

there are some docs in your nuke folder and a lot of info on the foundry site, like:
http://docs.thefoundry.co.uk/nuke/63/pythondevguide/index.html

http://docs.thefoundry.co.uk/nuke/63/pythonreference/

http://www.thefoundry.co.uk/products/nuke/training/tutorials/python-for-artists/

hope that helps
++ chris




On 5/14/12 at 10:16 PM, [email protected] (Noggy) wrote:

I'm VERY new to python, with previous knowledge of coding
like Java.  I'm trying to find what the command is to
return the filepath of the currently opened Nuke file.  I
can't find it.
Also, is there an useful reference list out there? I have been using help() profusely but there's alot to filter through.



_______________________________________________
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