Monday, December 20, 2010

Iterate through all objects in a maxscript scene

allObjects = $*
for OBJ in allObjects do(
print OBJ as string
)


--Or you could try this if you just want geometry objects:

for OBJ in Geometry do(
print OBJ as string
)

I am sure there are other keywords corresponding to cameras and such...
But information on this was surprisingly hard to find.
If it were python this would have been 2 minutes of research.

No comments:

Post a Comment

Followers