[Closed] about mesh detach and face selection
some question about mesh and poly ,wish max script will add some new function for them :
that is :
if i want select some faces at same time from different objects , and then detach them into objects , give the new objects witch detached out a new name . the question is :
i want the detach command of editable_mesh has a parameter “name:” as the detach command of poly has . or i have to convert all objects to editable_poly to give a name to the new created objects that just detached out as a node .
hi,
I think you can use
meshop.detachFaces
and use asMesh:true
then the meshop.detachFaces returns the mesh
so
MyDetach=meshop.detachFaces MyMesh MyFaces delete:true asMesh:true
and then you can specify
MyDetach.name=“MyName”
Not in front of max right now so can’t test it
in max 5 :
aa = box()
convertto aa editable_mesh
max modify mode
subobjectlevel = 3 – or 4 .
ss = meshop.detachfaces aa #{5,6} delete:on asmesh:on
classof ss – show :trimesh
update ss – or update ss geometry:on topology:on normals:on
ss.name – show :unknow property ” name ” .
max quick render
/*
then the #{5,6} faces has deleted , the ss is exist , but i cant see it in the render vfb.
but this work is very simple if i use the functions of editable_poly:
polyop.detachfaces <poly> <face list> delete:on asnode:on name:“lanhaibo” node:<node>
*/