本章记录Max脚本的中的简单操作-物体选择和拷贝
- •对物体的简单操作
sphere()
box()
torus()
plane()
*******************创建物体,更多类型请根据max英文版命名书写*******************
select $box01() --选择box01
select $box* --选择所有box命名物体
select objects --选择所有物体
select geometory --选择几何体
deselete $box01() --取消对box01选择
deselete $box* --取消对box命名物体的选择
delete $box01() --删除box01
delete $box* --删除所有box命名物体
copy $box01 pos:[100,0,0]
--拷贝一个新的box01到位置座标
copy $box01 pos:[100,0,0] name:"new_name" wirecolor:orange
--重新命名及线框颜色
instance $box01 pos:[100,100,0] name:"instance _name" wirecolor:orange
--实例化创建拷贝,修改新物体参数,被实例化物体将会跟着变化。
reference $box01 pos:[100,-100,0] name:"reference _name" wirecolor:red
--引用创建,在卷展栏有特殊标识
*******************以上演示了选择、非选择、删除、拷贝(拷贝、实例化、引用)方法*******************
circle pos:[10,0,0] --创建圆环
omnilight pos:[20,0,0] --创建泛光灯
dummy pos:[30,0,0] --创建虚拟提
wind pos:[40,0,0] --创建空间扭曲:风
select objects --选择objects
deselect objects --释放选择
select shapes --选择形状类型物体
select lights --选择灯光类型物体
select helpers --选择帮助类型物体
select spacewarps --选择空间扭曲类型物体
*******************以上演示了创建和选择不同类型物体的方法,具体类型请参考手册*******************
hide $wind01 --隐藏wind01
unhide $wind01 --显示wind01
freeze shapes --冻结shapes类物体
unfreeze shapes --解冻shapes类物体
freeze $box01 --冻结具体模型
*******************以上演示了隐藏、显示、冻结等常见操作*******************