GUI

To get the path:

for i in nuke.allNodes():    if "file" in i.knobs():        print
i.name(), i['file'].value()

To store the nodes in a python list


l = list() for i in nuke.allNodes():    if i.Class() in
["Read","Camera2","ReadGeo"]:        l.append(i)
Note: You can use this code in a non-gui session, just use the Nuke
      python interpreter with the import nuke statement




Non GUI script = "path/to/file.nk" open_file = open(script)

for line in open_file:    if line.startswith("file "):        print
line.replace("file ","")

Note: You could do something better with regular expressions, but this
      gives you the idea



On Thu, Feb 11, 2016, at 13:52, Gabor Hovanyi wrote:
> for reads, you could use nukescripts.get_script_data() or
> nukescripts.get_reads() -g
>
> On Thu, Feb 11, 2016 at 10:26 AM, Gary Jaeger
> <g...@corestudio.com> wrote:
>> Is there a way, preferably in non-gui mode, to quickly generate a
>> list of all read nodes, including geo, used in a script?
>>
>>
>> Gary Jaeger // Core Studio 249 Princeton Avenue Half Moon Bay,
>> CA 94019
>> 650.728.7957 (direct)
>> 650.728.7060 (main) http://corestudio.com[1]
>>
>>
>>
>> _______________________________________________
>>
Nuke-users mailing list
>> Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
>> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
> _________________________________________________
> Nuke-users mailing list Nuke-users@support.thefoundry.co.uk,
> http://forums.thefoundry.co.uk/
> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users



Links:

  1. http://corestudio.com/
_______________________________________________
Nuke-users mailing list
Nuke-users@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users

Reply via email to