Last active
August 17, 2020 10:14
-
-
Save CGLion/63d208498cfc75f45b09c2713f75c9c8 to your computer and use it in GitHub Desktop.
Python for 3ds max - return a list of scene objects (yes I'm also surprised there seems to be no built-in function for this please update me i you find one..)
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
def scene_objects(): | |
def list_children(node): | |
list = [] | |
for c in node.Children: | |
list.append(c) | |
list = list + list_children(c) | |
return list | |
return list_children(MaxPlus.Core.GetRootNode()) | |
for o in scene_objects(): | |
print o.Name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment