Max Script Tutor

Max Script Tutor

Anonymous
Not applicable
572 Views
7 Replies
Message 1 of 8

Max Script Tutor

Anonymous
Not applicable
hi friends,


i want to study max script.......that's all 🙂

plz help me...refer me a tutorial or a ebook or something to study from the basics to advanced level of max script...for me i have only know c++. is it will help me to understand max script?


HELP!!!!
0 Likes
573 Views
7 Replies
Replies (7)
Message 2 of 8

Anonymous
Not applicable
The documentation that comes with Max is extremely helpful and it starts with the basics.
0 Likes
Message 3 of 8

Anonymous
Not applicable
Looking at existing MAXScripts is also extremely helpful.

To me, one of the biggest differences in C/C++ syntax and MAXScript syntax is the way parenthesis are used. They serve the same purpose as curly-brackets {} in C++. Also, when calling functions, you do not put the arguments in parenthesis or separate then with commas. A number of people moving from C++ to MAXScript make this mistake.
0 Likes
Message 4 of 8

Anonymous
Not applicable
dear friends,


The help files supplied with max feels advanced and may me indented to max script ( or something like that) people,
i dont understand their style....i need a detail tutorial only for the basic...like how i can create objects...scale, rotate, move etc....

and also need add segments .....i need only such introduction...


in max help file i don't get the result...they said <Sphere()>
<Sphere:Sphere01()>
<sphere01.segements=32> ect...


and i doesn't work.....only said errors!!!


HELP!!!
0 Likes
Message 5 of 8

Anonymous
Not applicable
If that is the exact code you used, then notice that you have "segments" spelled incorrectly. Also, try the following in the listener window:

mysphere = sphere()
mysphere.segs = 32
0 Likes
Message 6 of 8

Anonymous
Not applicable
The second line (Sphere:Sphere01) is probably the response you receive in the listener. Sphere01 is not a variable; it is the object's name in the scene. You can access it by using a dollar-sign in front of the name, like $Sphere01. The better way to do it would be to assign it to a variable, since the default name will change depending on the names of the objects already in the scene.

Try this:

s = Sphere()
s.segments = 32


(Note the open/close parenthesis pair after Sphere; function calls don't use parenthesis around arguments, but you need to do this to call a function with no arguments.)
0 Likes
Message 7 of 8

Steve_Curley
Mentor
Mentor
Firstly, this is totally the wrong forum for this question - there is one specifically for MaxScript questions.

Perhaps a passing can move it?

Secondly, you need to read the reference carefully - all the information is there, but you do have to look for it.
As Stokes said,
 s = Shphere()
s.segments = 64

Or, if you want to use parameters instead,
 s = Sphere segments:64
For a more generic answer look up "Constructor" in the help.

Max 2016 (SP1/EXT1)
Win7Pro x64 (SP1). i5-3570K @ 4.4GHz, 8Gb Ram, DX11.
nVidia GTX760 (2GB) (Driver 430.86).

0 Likes
Message 8 of 8

Anonymous
Not applicable
In case you haven't seen this particular section of the MAXScript help, here is what I was referring to. See attached...

0 Likes