I would do something like this :
For i in nuke.allNodes('Merge2'): i.setselected(True) nuke.createNode('Crop') On Saturday, April 18, 2015, Tejas Kantharia <kanthariate...@gmail.com> wrote: > hi, > i want to create a crop node for the selected merge nodes but the problem > i'm having is all crop nodes are created when the first merge node is > found. is there any way to solve it ? to create a crop node after every > merge node . > Thanks, > Tejas > -- Bruno-Pierre Jobin
_______________________________________________ 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