Notifications
Clear all

[Closed] Using deletemesh modifier

Having a little trouble getting the deletemesh modifier to work on my selection.

My current code bellow is working if i comment out the deletemodifier it selects my mDeleteList fine but when i add the delete modifier it deletes all faces in the mesh.

Any ideas to get around this?


	-- add a meshselect modifier and select faces to be deleted
	max modify mode
	mModifier = mesh_select()
	addModifier mOptimiseMesh mModifier	
	select mOptimiseMesh 
	setFaceSelection mOptimiseMesh mModifier mDeleteList
	subobjectlevel = 3

	-- then add a editable mesh modifier and delete faces
	mDelModifier = deletemesh()
	addModifier mOptimiseMesh mDelModifier

2 Replies

presumably, you’ll want to use this:

Cheers! that worked