代码:
运行过之后,在“自定义”--:>“自定义用户界面”-->“用户界面”中的“类别”选项中找到“How To” ,拖动到四元菜单中
setTransformLockFlags的方法说明,不太难,相信能看懂的
setTransformLockFlags <node> (#all | #none | <bitarray>) -- mapped
Set and set the transform lock flags for the specified node as an <bitarray>. If a bit is on, the corresponding transform lock is turned on. The order of the bits is: #{POS_X,POS_Y,POS_Z,ROT_X,ROT_Y,ROT_Z,SCALE_X,SCALE_Y,SCALE_Z}. If #all is specified instead, all locks will be checked. If #none is specified, all locks will be unchecked.
四种引用方法:
setTransformLockFlags selection #all
setTransformLockFlags selection #none
setTransformLockFlags selection #{1}
setTransformLockFlags selection #{1..4}