Forgot the capital S at selected.

for i in nuke.allNodes('Merge2'):
    i.setSelected(True)
    nuke.createNode('Crop')

On Saturday, April 18, 2015, Bruno-Pierre Jobin <bpjo...@gmail.com> wrote:

> 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
> <javascript:_e(%7B%7D,'cvml','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
>
>

-- 
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

Reply via email to