Create Render Element for each layer

Hi all,

I would like to create a script which add automaticaly a C_Masking render Element for each layer composed of this objects.
I already succed to create a render element for on layer but i don't know how create a loop which scan all layers in a scene.

Can you help me ? :)

Thank you in advance

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

.

(
	for i = 0 to layerManager.count - 1 do
	(
		layer = layerManager.getlayer i
		format "layer name: % \n" layer.name
		-- add the code that creates Render Element here:
 
	)
)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.