Notifications
Clear all

[Closed] Facing up polygon selection script?

Hi everybody Im a newbie in 3dmax cause a project Im in about modeling some buildings. Well the thing is that i have to model a lot of buildings but have to errase all the polygons that are facing uppwards the ā€œZā€ axis on every floor avobe the first so i was making it by hand one by one, the thing is that there are so many that i may miss some, so then i was thinkikg about some script that can make this easier (to select only the facing up polygons of the selected ones or something like that) but cause im a newbie don know many of maxscrip or another way to do this so if someone can light me with their knolodge i will be vere gratefull thnx in advance!

1 Reply

(
	local deg = 45  /* defines the max angleDifferential to straight up for deletion */
	
	--------------------------------------------------------------------------
	--------------------------------------------------------------------------
	max create mode
	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) [0,0,1]) < deg then f else 1) as bitArray) delIsoVerts:true
		)
	)
	completeRedraw()
)--END local

non existing faces cant bounce back light