运算与C类似。
字符串赋值:mystr="my string"
绘制一个Box对象。
myBox=Box length:20 width:20 height:20 //Box长宽高
myBox.wirecolor=[111,33,2] //Box颜色RGB
myBox.pos=[10,0,10] //Box位置
myBox.size=[1.5,1.5,1.5] //Box缩放
move myBox [10,0,10] //移动Box对象
scale myBox [1.5,1.5,1.5] //缩放
rot_box=eulerangles 0 30 0 //旋转角度 x,y,z
rotate myBox rot_box //旋转
addModifier myBox(twist angle:30) //增加一个修改器
showclass"box.*" 显示BOX对象属性
Box(长方体) : GeometryClass {10,0}
.height(高度) : float
.length(长度) : float
.lengthsegs : integer
.width(宽度) : float
.widthsegs : integer
.mapcoords : boolean
.heightsegs(高度分段) : integer
showclass方法用法
showClass"box*" -- all 3ds max classes starting "box" showClass"box.*" -- all the accessible properties of the box class showClass"*:mod*" -- all the modifier classes showClass"*.*rad*" -- all the classes with a property name containing "rad"