ScriptSpot

Forum topic · General Scripting

Operations on any selected subobject

By Alen · 2012-01-28

Description

Is it possible?

I wanted to have my script execute move on any selected subobject (if any) without ever knowing the class or type of subobject, but from what I gather, I'd have to identify class (Editable Poly, mesh, spline or patch) and write separate code for each class and considering subobject type.

Is this really the only way?

Thanks...

Comments (2)

miauu · 2012-01-28

The other way is to use

tempMesh = snapshotAsMesh selection[1]

and to write code only for editable_mesh, but you have to consider the sub-object level

Alen · 2012-01-29

Thanks for the info. I'm looking into this right now. Hope it works! :)