Created
April 27, 2020 02:08
-
-
Save stevechap416/c464dceb8237c2db1d79eb8a163f33d0 to your computer and use it in GitHub Desktop.
Maxscript: Get the Names of the Top Level Layers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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