ScriptSpot

Forum topic · General Scripting

Get type of selection?

By Dariusz · 2017-02-03

Description

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 (1)

.

miauu · 2017-02-04

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)