Skip to content

Instantly share code, notes, and snippets.

@stevechap416
Created April 27, 2020 02:08
Show Gist options
  • Save stevechap416/c464dceb8237c2db1d79eb8a163f33d0 to your computer and use it in GitHub Desktop.
Save stevechap416/c464dceb8237c2db1d79eb8a163f33d0 to your computer and use it in GitHub Desktop.
Maxscript: Get the Names of the Top Level Layers
topLevelLayers = #()
for i = 0 to LayerManager.count - 1 do (
findParent = layerManager.getlayer i
if findParent.getParent() == undefined then (
appendIfUnique topLevelLayers findParent.name
)
)
print(topLevelLayers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment