// AxizUnLock XYZ Scale @name "AxizUnLock Scale" @version 2.6 @warnings @script generic generic { var CurItems = Scene().getSelect(); if(CurItems == nil || CurItems[1].isLight() || CurItems[1].isCamera()) return; var ItemNum = CurItems.size(); StretchTool(); // AxislockのUnlock状態は0、Lock状態は1 if(ItemNum == 1){ if(CurItems[1].axislocks[7]) EnableXH(); if(CurItems[1].axislocks[8]) EnableYP(); if(CurItems[1].axislocks[9]) EnableZB(); }else{ for(i = 1; i <= ItemNum; i++){ SelectItem(CurItems[i].id); if(CurItems[i].axislocks[7]) EnableXH(); if(CurItems[i].axislocks[8]) EnableYP(); if(CurItems[i].axislocks[9]) EnableZB(); } for(i = ItemNum - 1; i >= 1; i--) AddToSelection(CurItems[i].id); } return; }