Operations on any selected subobject

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

Comment viewing options

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

The other way is to

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's picture

Thanks for the info. I'm

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

Comment viewing options

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