Actually this works better for me. It appears I need to create the dot - then
connect it. Then the append seems to work.
If anyone knows why this is I’d be intrigued to know.
for a in nuke.allNodes():
for i in sn[::-1]:
i['label'].setValue('[value first] - [value last]')
Visual Effects Supervisor
m: 07973 265624 | e: how...@axis-vfx.com | w: www.axis-vfx.com
> On 21 Sep 2016, at 17:19, Howard Jones <how...@axis-vfx.com> wrote:
> 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 <mailto:how...@axis-vfx.com> | w:
> www.axis-vfx.com <http://www.axis-vfx.com/>
>> On 21 Sep 2016, at 16:42, matheus marques <matheusmadog...@gmail.com
>> <mailto:matheusmadog...@gmail.com>> wrote:
>> nodes = nuke.selectedNodes()
>> input_number = 0
>> for n in nuke.allNodes():
>> for node in nodes:
>> 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)
*A X I S V F X*
The Bottle Yard Studios
Bristol BS14 0BH
Nuke-python mailing list