本章記錄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 --凍結具體模型
*******************以上演示了隱藏、顯示、凍結等常見操作*******************