Break face in objects

Hello

I wanted to make a script to separate each face of a poly object in objects.
I'm in a hurry and a noob in script so I don't have time to search by myself..... :-((
Here is what I have :

facesel = polyOp.getFaceSelection $.baseobject
for i in facesel do
(
$.EditablePoly.detachToElement #Face keepOriginal:off
$Object(i).name = "xxx"+ (i as string )
)

But this script don't work... If somebody could help !!! :-))

Comments

Comment viewing options

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

ooops, seems to have a

ooops, seems to have a "explode" button (but in mesh edit)....
If somebody can tell what is wrong in my "script" :-))

Comment viewing options

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