------사용법--------
Selected Objects 와 Each Objects 는 아래의 모든 설정에적용됩니다.
Affect Pivot Only : Off 버튼을 누르면 뷰포트의 피봇설정모드가 활성화됩니다.(이는 확인이 필요한경우 활성화시킨후 사용하시면 됩니다.)
Reset All : 오브젝트 의 Transform,Scale,Pivot,XForm 을 Reset 합니다.
--Bounding box Pivot Setting --
-Selected Objects 를 선택했을경우
선택되어진 모든 오브젝트의 전체크기의 XYZ 의 min Center Max 값을 기준으로 설정합니다.
-Each Objects 를 선택했을경우
선택되어진 각각의 오브젝트 크기의 XYZ 의 min Center Max 값을 기준으로 설정합니다.
--Object Pivot Setting --
Pickobject : 하나의 다른 오브젝트를 선택 하여 다른 오브젝트의 피봇값으로 설정합니다.(XYZ 따로 설정 가능합니다)
SetVertex : 버텍스를 선택후 클릭하면 피봇의 위치를 버텍스의 위치에 설정합니다.
[0,0,0] : 선택한 오브젝트의 피봇위치를 0,0,0으로 설정합니다.
Center : 선택한 오브젝트의 피봇위치를 x center,y center,z center 으로 설정합니다.
------3DSMAX 8.0 - 3DSMAX 2010 사용가능 (테스트환경 2010)--------
fn std_fnSetPivot _axis _pivotpos = (
if std_SelectObjectChk.state == true then (
if $ != undefined then (
if _axis == #x then (
if _pivotpos == #min then $.pivot.x = $.min.x
if _pivotpos == #center then $.pivot.x = $.Center.x
if _pivotpos == #max then $.pivot.x = $.Max.x
)
if _axis == #y then (
if _pivotpos == #min then $.pivot.y = $.min.y
if _pivotpos == #center then $.pivot.y = $.Center.y
if _pivotpos == #max then $.pivot.y = $.Max.y
)
if _axis == #z then (
if _pivotpos == #min then $.pivot.z = $.min.z
if _pivotpos == #center then $.pivot.z = $.Center.z
if _pivotpos == #max then $.pivot.z = $.Max.z
)
) else std_fnMessagebox "Must select at least one object"
)
if std_EachObjectChk.state == true then (
std_aGetObject = for i in selection collect i
if std_aGetObject != undefined then(
for i=1 to std_aGetObject.count do (
if _axis == #x then (
if _pivotpos == #min then std_aGetObject[i].pivot.x = std_aGetObject[i].min.x
if _pivotpos == #center then std_aGetObject[i].pivot.x = std_aGetObject[i].center.x
if _pivotpos == #max then std_aGetObject[i].pivot.x = std_aGetObject[i].max.x
)
if _axis == #y then (
if _pivotpos == #min then std_aGetObject[i].pivot.y = std_aGetObject[i].min.y
if _pivotpos == #center then std_aGetObject[i].pivot.y = std_aGetObject[i].center.y
if _pivotpos == #max then std_aGetObject[i].pivot.y = std_aGetObject[i].max.y
)
if _axis == #z then (
if _pivotpos == #min then std_aGetObject[i].pivot.z = std_aGetObject[i].min.z
if _pivotpos == #center then std_aGetObject[i].pivot.z = std_aGetObject[i].center.z
if _pivotpos == #max then std_aGetObject[i].pivot.z = std_aGetObject[i].max.z
)
)
) else std_fnMessagebox "Must select at least one object"
)
)
피봇을 설정하는 fn 입니다. 설정할 축 방향과 위치를 넣으면 됩니다..-_-;
댓글을 달아 주세요
하악.. 너무 편해요!!! 없으면 이제 작업을 못해요?!ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ..
허허...감사합니다..!!!!!