Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@CGLion
Last active August 17, 2020 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CGLion/63d208498cfc75f45b09c2713f75c9c8 to your computer and use it in GitHub Desktop.
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..)
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