Hello everyone! i have been searching how to get all nodes into the same Layer and its child Layer nodes (only i want nodes) by maxscript , but i can't get any way to resolve this. Could you help me with this mini-problem? Thank you guys!
fn getLayers layer layers:#() =
( append layers layer for child = 1 to layer.getNumChildren() do getLayers (layer.getChild child) layers:layers return layers
) if selection.count == 1 do
( local layers = getLayers $.layer local layerNodes, allNodes = #() for layer in layers do (layer.nodes &layerNodes; join allNodes…