Languages Features Creators CSV Resources Challenges Add Language
GitHub icon

MAXScript

MAXScript - Programming language

< >

MAXScript is a programming language created in 1996.

#919on PLDB 27Years Old 201Users
3Books 0Papers 2kRepos

MAXScript is the built-in scripting language in Autodesk 3ds MAX. It can be used to automate repetitive tasks as well as develop new tools and user interfaces.


Example from hello-world:
print "Hello World" -- "Hello World" -- Note that MAXScript is expression-based, so simply writing "Hello World" is -- sufficient to echo it for the reader. Like Haskell, all MAXScript expressions -- *must* return values, even if they're unused.
Example 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) )

Language features

Feature Supported Token Example
Strings "
"Hello world"
Print() Debugging print
Comments
Semantic Indentation X

Books about MAXScript from ISBNdb

title authors year publisher
Maxscript and the Sdk for 3d Studio Max Bicalho, Alexander and Feltman, Simon 2000 Sybex Inc
3ds Max Maxscript Essentials Autodesk 2006 Taylor & Francis
3ds Max 8 MAXScript Essentials Autodesk 20130502 Taylor & Francis
xbl.html · maxscript.html · kona.html

View source

- Build the next great programming language · Search · Day 213 · About · Blog · Acknowledgements · Traffic · Traffic Today · GitHub · feedback@pldb.com