Try   HackMD

Share On RDP (gen)

MetaHuman

点我手动跳转一下~

maxscript 法线

macroScript MungeNormals category:"MicroForte"
(
	a = pickObject message: "select an object as the center for normal calculations"
	if a != undefined then
	(
		center = a.transform.row4
		mySelection = #()
		for i in selection do
		(
			mySelection += i
		)
		for i in mySelection do
		(
			select i
			if i.modifiers[#edit_normals] != undefined then
			( 
				inv = inverse( i.transform )
				localcenter = center * inv
				tm = snapshotasmesh i
				a = i.Edit_Normals
				for j = 1 to a.getnumnormals() do
				(
					a.setnormalexplicit j explicit:true
				)
				nVerts = tm.numverts
				for j = 1 to nVerts do
				(
					position = getvert tm j
					normal = normalize( (position * inv ) - localcenter )
					trans = random (eulerangles -10 -10 -10) (eulerangles 10 10 10) as matrix3
					normal = normal * trans
					verts=#{j}
					normals=#{}
					a.convertVertexSelection &verts &normals
					for k = 1 to normals.count do
					(
						if normals[k] == true do
						(
							a.SetNormal k &normal node:i
						)
					)
				)
			)
			else
			(
				print "No edit normals modifier"
			)
		)
		select mySelection
	)
)
macros.run "MicroForte" "mungenormals"`

学习

MaxScript Note
好东西:MAXScript vs MEL 我只看到了变量部分