ScriptSpot is a diverse online community of artists and developers who come together to find and share scripts that empower their creativity with 3ds Max. Our users come from all parts of the world and work in everything from visual effects to gaming, architecture, students or hobbyists.
(
local deg = 46/* defines the max angleDifferential to straight up for deletion */----------------------------------------------------------------------------------------------------------------------------------------------------
with undo on
(for Obj in selection as array where isValidNode Obj AND superclassOf Obj == geometryClass do(
convertToPoly Obj
polyop.deleteFaces Obj ((for f = 1 to Obj.numFaces collect if acos (dot (polyOp.getFaceNormal Obj f node:Obj)[-1,0,0])< deg then f else 1) as bitArray) delIsoVerts:true))
completeRedraw())--END local
don't have access to max atm but that should do it
It is not working on a box...as the script is based on angle of normals!! Is there any way to delete the faces purely based on the location of there normals (not angle)?? So that I can delete all faces whose normals are situated in -X axis (global)?
Thanks Graph.....This is exactly what i need...but I want to delete faces left/right half....not the top/botoom ones, I have tried some of them....it is deleting the faces in Z zxis....but then crashing max if I try something else!!
Comments
( local deg = 46 /* defines
don't have access to max atm but that should do it
Raphael Steves
check the Code page of my
check the Code page of my website got 2 snippets there that'll show you how to do it
Raphael Steves
It is not working on a
It is not working on a box...as the script is based on angle of normals!! Is there any way to delete the faces purely based on the location of there normals (not angle)?? So that I can delete all faces whose normals are situated in -X axis (global)?
Thanks Graph.....This is
Thanks Graph.....This is exactly what i need...but I want to delete faces left/right half....not the top/botoom ones, I have tried some of them....it is deleting the faces in Z zxis....but then crashing max if I try something else!!
Ok...got it.....Thanks a lot
Ok...got it.....Thanks a lot Graph....its working now!!!:)