How to go through each node in the scene?

Trying to go through each node in the scene, regardless of: type, whether they are visible or not, or whether they are selected or not. I then want to look for custom attributes on each node. Seems like a simple thing, but all I can find for examples is going through the currently selected objects or Geometry of a particular type. Anyone help would be awesome. Thanks.

Brad

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

for i in objects do ... for

for i in objects do ...
for i in $* do ... -- same as above
-- example loop in objects with user defined key "wanted":
for i in $* where getUserProp i "wanted" do print i.name

my recent MAXScripts RSS (archive here)

Marco Brunetta's picture

Check ObjectSet Values in

Check ObjectSet Values in the reference for more info.

alapsawy's picture

for i in objects collect i 

for i in objects collect i 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.