Hi,
I just wrote small script that change the order of inputs in the layout node for eaiser further glsl use.
Adding option to change order of rows\ columns to Layout node. can save this script.
[code]def onReplicate(comp, allOps, newOps, template, master):
numRows = int(math.sqrt(len(newOps)))
for row in range(numRows):
row = (numRows-1) - row
for col in range (numRows):
current = row * numRows + col
print (newOps[ current ])
newOps[ current ].allowCooking = True
newOps[ current ].bypass = False
#connect to color layout
op('colorLayout').inputConnectors[-1].connect(newOps[ current ].outputConnectors[0])
#connect to depth layout
op('depthLayout').inputConnectors[-1].connect(newOps[ current ].outputConnectors[1])
for c in newOps :
#connect to matrices data
op('transformMatrices').inputConnectors[-1].connect(c.outputConnectors[2])
#c.render = True
#c.par.display = 1
#c.par.clone = comp.par.master
#index +=1
pass
return[/code]