Ah cool, that works! Thanks! ----- Original Message ----- From: kee...@gmail.com To: nuke-python@support.thefoundry.co.uk Date: 26.10.2012 12:19:21 Subject: Re: [Nuke-python] nuke.getNodeClassName() in a loop
> try with: > nodes=nuke.selectedNodes() > for n in nodes: > print n.name() > print n.Class() > > El 26/10/2012, a las 12:04, mailingli...@patrickheinen.com escribió: > >> Hi everyone, >> >> I get a realy strange behaviour when I loop through a list of nodes and call >> nuke.getNodeClassName() >> >> nodes=nuke.selectedNodes() >> for n in nodes: >> print n.name() >> print nuke.getNodeClassName(n) >> >> gives me: >> >> # Result: >> Camera3 >> ScanlineRender >> ScanlineRender10 >> ScanlineRender >> >> Can anyone point me into the right direction? Maybe it's just to early in >> the morning... >> >> >> Best Regards >> Patrick >> _______________________________________________ >> Nuke-python mailing list >> Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ >> http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python > > _______________________________________________ > Nuke-python mailing list > Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ > http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python _______________________________________________ Nuke-python mailing list Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python