How to create a class in MaxScript

I put together a small code snip-it that I figured someone here might like.

I've always had a hard time finding a simple example on how to load a "class" from an external max script so I made one of my own.

Hopefully someone else here will find it useful too:
http://neiltech.wordpress.com/2012/11/16/how-to-create-a-class-in-maxscr...

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Anubis's picture

NO classes in Mxs!

The Mxs Struct can only mimic them but that's all, and you just end with so called "candy code" that not ever closer to the real class.

As for what you say that you not find anything about with google search, hmm, I not agree, I typed "maxscript class" and the 1st that come refer to CGTalk, where you can find the answer of probably everything related to MaxScript. So next time go to Mxs-section, Cheers!

P.S.: As for mimic classes,
better take a look at scripted plugins ;)

my recent MAXScripts RSS (archive here)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.