Get type of selection?

Hey

I'm looping over my selection and depending on type of object I'd like to do differnt stuff... how can I get type of selection?

Comments

Comment viewing options

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

.

When you select objects in 3dsMax the type of selection is "ObjectSet".
To see the class of the objects in the selection use the code below.

selObjsArr = selection as array
for o in selObjsArr do print (classOf o)

Comment viewing options

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