How to get the layers in a layer?
I just can't figure out how to see if a layer have layers in it OR if a layer is a sublayer to another layer.
This lists each layer and its node content but no layers appears as nodes, only objects!?
for i=0 to LayerManager.count-1 do
(
layer = LayerManager.getLayer i
print("Layer: " + layer.name)
layer.nodes &layerNodes
for j=1 to layerNodes.count do
(
print("Object: " + layerNodes[j])
)
)
Comments
.
Tools and Scripts for Autodesk 3dsMax