Re: [Nuke-python] adding inputs to appendClip

2016-09-21 Thread matheus marques
Hey Howard, It is my pleasure to be able to help. Best, Matheus 2016-09-21 17:19 GMT+01:00 Howard Jones : > 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 th

Re: [Nuke-python] adding inputs to appendClip

2016-09-21 Thread Howard Jones
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. sn=nuke.selectedNodes() apnd=nuke.nodes.AppendClip() for a in nuke.allNodes(): a['selected'].setValue(False)

Re: [Nuke-python] adding inputs to appendClip

2016-09-21 Thread Howard Jones
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

Re: [Nuke-python] adding inputs to appendClip

2016-09-21 Thread matheus marques
Hey Howard, Try the following: 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') pri