Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

iterate through everything in scene

iterate through everything in scene

Anonymous
Not applicable
3,021 Views
1 Reply
Message 1 of 2

iterate through everything in scene

Anonymous
Not applicable
Looking through the docs, I only see how to pick an object with the mouse. I am interested in iterating through all objects in a scene and exporting them, not just one I click on.

How do you go about that? Is there a tree, where is an explanation of how max contains objects and how a script can get access to them?
0 Likes
3,022 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
You can iterate through every object in the scene with
for obj in objects do ( ... )
.
ObjectSet Values in Maxscript help has more detailed explanation regarding different collection sets like geometry, lights etc.
0 Likes