MAXScript插件编写:初步创建BOX对象

本文介绍了一个具体的3D对象——Box的操作实例,包括创建、移动、缩放、旋转及属性展示等步骤,并展示了如何使用showClass方法查看Box类的所有可访问属性。

运算与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"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值