You could also try something like:
[i.name() for i in nuke.thisNode().nodes() if i.Class() == 'Input'] -diogo On Fri, Sep 7, 2012 at 8:24 PM, Nathan Rusch <[email protected]>wrote: > Unless I’m missing something about what you’re after, that code works > on Gizmo nodes as well as Groups. > > -Nathan > > > *From:* Marc Gutowski <[email protected]> > *Sent:* Friday, September 07, 2012 12:29 PM > *To:* [email protected] > *Subject:* [Nuke-python] Re: List of names from a (gizmo)/node Input > > Hi Nathan, > > i thought of the same solution, but this only works on Groups. > > ##### > the Background is: > i've written a reference system for groups / gizmos. > so all exported groups will be saved as gizmos in a relative path. > once imported into a production scene, > all the gizmos get either automatically updated (via date stamp) onscene > load, > or just manually with all or selective once. > The script detects 'reference gizmos' via name ending of "_REF". > To keep the same name of the gizmos, > when they are duplicated and reused, we group them before, > that the detection script kicks in with the same gizmo name. > but, when a gizmo is updated and has e.g. now more inputs/outputs than > before, > i want to automatically create inputs within the group the gizmo is in and > name > them as they are named in the gizmo (of course). > > (as i am writing this, i just rethink the questionable strict "_REF" > ending name....) > simplifiing the name convention, wouldn't get you copy them to groups > again... > *solution found... > ##### > > but indeed, it would be nice, to get the names of the gizmo's inputs > either, if so possible. > i can read them, but can't access them [image: Sad] > *hardcore solution would be, opening the gizmo as text and regex their > names..... > but this shouldn't be the first choice. > > so far, > best regards. > > ps. some moments i would really like to know what you guys are scripting > out there [image: Smile] > > ------------------------------ > _______________________________________________ > 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
