Select objects in layer and change object ID
I need a script that will loop through all of the scene layers, select all of the objects in the layer and change the g-Buffer Object ID. Go to the next layer and do the same, and so on, and so on.
This is what I got so far:
for i = 0 to layerManager.count-1 do
layer = ILayerManager.getLayerObject i
$.gbufferChannel = 1