Hey guys, Dicts have methods like get() and has_key() so it's not necessary to try/catch errors just to get values from keys or check if a node has a particular knob or not, respectively. In this case I would simplify that func with something like:
def NodeHasKnobWithName(node, name): return node.knobs().has_key(name) Cheers On Mon, Jan 21, 2013 at 11:45 AM, atomcraft78 < nuke-python-re...@thefoundry.co.uk> wrote: > ** > Marc, you're a star, yes filtering out all the nodes that cause an error > is the way forward. > > Works a treat, thanks for your help! > Chris > > _______________________________________________ > 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