改变轴心的操作。
View Code
/*
Script: Cycle_CoordinateCenter
Summary:
Cycles through the various coordinate center options...Local Center (pivot point), Selection Center, and Transform Center.
Once assigned to a hot-key, it will advance each time you press the button.
Author: Chris Harvey
*/
(
---2011.7.15 盖天解释
---之前没有用脚本做过 轴心变换的问题
-- 向大师学习了
---获取坐标系
---改变坐标系
--想当于 我们不断地点击标题栏上的按钮
if getCoordCenter() == #local then toolmode.selectionCenter() -- setCoordCenter can also be used
else if getCoordCenter() == #selection then toolmode.transformCenter()
else toolmode.pivotCenter()
)