Hey Howard, It is my pleasure to be able to help.
Best, Matheus 2016-09-21 17:19 GMT+01:00 Howard Jones <how...@axis-vfx.com>: > Thanks Matheus > > That does work , I had a similar test work by reiterating through sn. > Though I can’t see what was wrong with the previous code, as each dot was > unique along with the input number on each loop. > I guess I would need to build a list for each dot so I don’t trawl the > entire scripts or dots, so I can use yours in principle. > > Thanks again > *Howard **Jones* > Visual Effects Supervisor > m: 07973 265624 | e: how...@axis-vfx.com | w: www.axis-vfx.com > > On 21 Sep 2016, at 16:42, matheus marques <matheusmadog...@gmail.com> > wrote: > > nodes = nuke.selectedNodes() > > input_number = 0 > > for n in nuke.allNodes(): > > n['selected'].setValue(False) > > for node in nodes: > > node['selected'].setValue(True) > > dot = nuke.createNode('Dot') > > apnd = nuke.createNode('AppendClip') > > dots = nuke.allNodes('Dot') > print dots > > for dot in dots: > > print input_number > > apnd.setInput(input_number, dot) > > input_number+=1 > > > > > *A X I S V F X* > > The Bottle Yard Studios > > Whitchurch Lane > > Bristol BS14 0BH > > > > axis-vfx.com > > _______________________________________________ > 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