Skip to content

Instantly share code, notes, and snippets.

@deathponta
Created November 20, 2018 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deathponta/5477a0ddc095554bfb9e40208f4eb155 to your computer and use it in GitHub Desktop.
Save deathponta/5477a0ddc095554bfb9e40208f4eb155 to your computer and use it in GitHub Desktop.
選択したボーンのセグメントスケールを一括でオンオフ
// 選択したボーンのセグメントスケールを一括でオンオフ
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