Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
選択したボーンのセグメントスケールを一括でオンオフ
// 選択したボーンのセグメントスケールを一括でオンオフ
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
You can’t perform that action at this time.