PDA

View Full Version : edit poly face deleting?


JokerMartini
04-13-2012, 10:03 PM
What's the best way to go about deleting the faces of an edit poly mod? Does the user have to go into the mod panel for it to work?


fn fnCreateFXPuck = (
fxPuck = Cylinder smooth:on heightsegs:1 capsegs:2 sides:8 height:0.0 radius:12 mapcoords:on pos:[0,0,0] isSelected:on
ep = Edit_Poly()
fxPuck = addModifier fxPuck ep
max modify mode --switch to Modify tab of Command panel
modPanel.setCurrentObject ep --set the Edit_Poly as the current level
subObjectLevel = 4 --switch to Face level
ep.Select #Face #{}
ep.Select #Face #{1..24}
ep.SetOperation #DeleteFace
ep.Commit()
)
fnCreateFXPuck()

hblan
04-17-2012, 02:38 AM
polyOp.deleteFaces <Poly poly> <facelist> delIsoVerts:<boolean=true>

Deletes the specified faces. If <delIsoVerts> is true, any vertices that are no longer used by faces are also deleted.

eg:
mybox = $ -- it is a poly object or add a poly modifier to the stack first .

polyop.deletefaces mybox #{1..5}

JokerMartini
04-17-2012, 02:59 PM
Your method does not seem to work. Check it out.


fn fnCreateFXPuck = (
puck = Cylinder smooth:on heightsegs:1 capsegs:2 sides:8 height:0.0 radius:12 mapcoords:on pos:[0,0,0] isSelected:on wirecolor:orange
ep = Edit_Poly()
puck = addModifier puck ep


polyop.deletefaces puck #{1..5}
)

fnCreateFXPuck()

hblan
04-18-2012, 05:21 AM
sorry , I checked it :
coz the ' deleteface ' is affect on the object`s baseobject . that means the baseobject must be a poly object .

u can convert the object to editable_poly . then it will works .

CGTalk Moderation
04-18-2012, 05:21 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.