Notifications
Clear all

[Closed] edit poly face deleting?

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()

3 Replies

[left]polyOp.deleteFaces <Poly poly> <facelist> delIsoVerts:<boolean=true>
[/left]
[left][left]Deletes the specified faces. If <delIsoVerts> is true, any vertices that are no longer used by faces are also deleted.[/left][/left]
[left][left] [/left][/left]
[left][left]eg: [/left][/left]
[left][left]mybox = $ – it is a poly object or add a poly modifier to the stack first . [/left][/left]
[left][left] [/left][/left]
[left][left]polyop.deletefaces mybox #{1…5} [/left][/left]

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()





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 .