Created
November 20, 2018 13:51
-
-
Save deathponta/5477a0ddc095554bfb9e40208f4eb155 to your computer and use it in GitHub Desktop.
選択したボーンのセグメントスケールを一括でオンオフ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 選択したボーンのセグメントスケールを一括でオンオフ | |
proc SetJointSegmentScale( int $flag ){ | |
$sels = `ls -sl -tr`; | |
for( $i=0; $i<`size($sels)`; $i++ ){ | |
//print( $sels[$i] ); | |
setAttr ($sels[$i]+".segmentScaleCompensate") $flag; | |
} | |
} | |
window -title "ジョイントのセグメントスケール補正の一括セット"; | |
columnLayout -columnAttach "both" 5 ; | |
button -label "オフ" -command "SetJointSegmentScale(0)"; | |
button -label "オン" -command "SetJointSegmentScale(1)"; | |
showWindow; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment