I wrote this to duplicate selected faces in SubObject
Could someone pelase help me fix the selection part inside Editable_Poly?
What are the equivalent to select and to detach faces for Editable Poly and Editable Mesh modifiers?
Couldn’t find those.
if selection.count == 1 then
(
if classof $.baseobject == Editable_Poly then
(
elo = polyop.getFaceSelection $
$.EditablePoly.SetSelection #Face #{} --deselect
polyOp.detachFaces $ elo delete:false asNode:false
– here I need to select the newly created faces
)
else (
if classof $.baseobject == Editable_mesh then
(
elo = $.selectedFaces
meshop.detachFaces $ elo delete:false asMesh:false
)
else ()
)
)
else
(
messagebox “Nothing to clone. Please select a face or element.” title:“Selection needed”
)