MAXScript is an actively used programming language created in 1996.

23Years Old 505Users 2Jobs
  • MAXScript ranks in the top 10% of languages
  • the MAXScript website
  • MAXScript first appeared in 1996
  • file extensions for MAXScript include ms and mcr
  • I have 37 facts about MAXScript. what would you like to know? email me and let me know how I can help.

Example code from Linguist:

fn CalculateVolumeAndCentreOfMass obj =
(
	local Volume= 0.0
	local Centre= [0.0, 0.0, 0.0]
	local theMesh = snapshotasmesh obj
	local numFaces = theMesh.numfaces
	for i = 1 to numFaces do
	(
		local Face= getFace theMesh i
		local vert2 = getVert theMesh Face.z
		local vert1 = getVert theMesh Face.y
		local vert0 = getVert theMesh Face.x
		local dV = Dot (Cross (vert1 - vert0) (vert2 - vert0)) vert0
		Volume+= dV
		Centre+= (vert0 + vert1 + vert2) * dV
	)
	delete theMesh
	Volume /= 6
	Centre /= 24
	Centre /= Volume
	#(Volume,Centre)
)

Trending Repos

repo stars description

Last updated December 4th, 2019

Edit MAXScript