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 <[email protected]>
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
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python