/////////////////////////////////////////////////////////// global proc SelectSet() { global string $sel_Set_zoe; string $sel_Set[] = ` ls -sl -set ` ; if ( $sel_Set[0] == "" ) { button -e -l "Please select" -bgc 1.0 1.0 0.4 PPG_Set_Input; } else { $sel_Set_zoe = $sel_Set[0]; button -e -l $sel_Set_zoe -bgc 0.8 0.8 1.0 PPG_Set_Input; } select -cl ; } /////////////////////////////////////////////////////////// proc Pose_copy_zoe() { global string $sel_Set_zoe; select $sel_Set_zoe; string $sel_obj[] = ` ls -sl -tr ` ; int $sel_no = ` size ( $sel_obj ) ` ; int $i ; for ( $i = 0 ; $i < $sel_no ; $i++ ) { float $tra[] = ` xform -q -t $sel_obj[$i]`; float $rot[] = ` xform -q -ro $sel_obj[$i]`; string $tmp_null = "zoe_" + $sel_obj[$i] ; if( 0 == `objExists $tmp_null` ){ spaceLocator -n $tmp_null; parent $tmp_null tmp_ctrl_zoe; } xform -t $tra[0] $tra[1] $tra[2] $tmp_null ; xform -ro $rot[0] $rot[1] $rot[2] $tmp_null ; } select -cl ; } /////////////////////////////////////////////////////////// proc Pose_paste_zoe() { global string $sel_Set_zoe; select $sel_Set_zoe; string $sel_obj[] = ` ls -sl -tr ` ; int $sel_no = ` size ( $sel_obj ) ` ; int $i ; for ( $i = 0 ; $i < $sel_no ; $i++ ) { string $tmp_null = "zoe_" + $sel_obj[$i] ; float $tra[] = ` xform -q -t $tmp_null`; float $rot[] = ` xform -q -ro $tmp_null`; xform -t $tra[0] $tra[1] $tra[2] $sel_obj[$i] ; xform -ro $rot[0] $rot[1] $rot[2] $sel_obj[$i] ; } select -cl ; } /////////////////////////////////////////////////////////// proc Pose_paste_mirror_zoe() { global string $sel_Set_zoe; select $sel_Set_zoe; string $sel_obj[] = ` ls -sl -tr ` ; int $sel_no = ` size ( $sel_obj ) ` ; int $i ; for ( $i = 0 ; $i < $sel_no ; $i++ ) { string $tmp_null = "zoe_" + $sel_obj[$i] ; float $tra[] = ` xform -q -t $tmp_null`; float $rot[] = ` xform -q -ro $tmp_null`; // string $flp_name = $sel_obj[$i] ; //------------------------------------------------------------------ if( `gmatch $sel_obj[$i] "*_R_*"`){ $flp_name = `substitute "_R_" $sel_obj[$i] "_L_" `; } else if ( `gmatch $sel_obj[$i] "*_RI_*"`){ $flp_name = `substitute "_RI_" $sel_obj[$i] "_LI_" `; } else if ( `gmatch $sel_obj[$i] "*_L_*"`){ $flp_name = `substitute "_L_" $sel_obj[$i] "_R_" `; } else if ( `gmatch $sel_obj[$i] "*_LI_*"`){ $flp_name = `substitute "_LI_" $sel_obj[$i] "_RI_" `; } else { /*---------------------*/ } //------------------------------------------------------------------ xform -t (- $tra[0]) $tra[1] $tra[2] $flp_name ; xform -ro $rot[0] (- $rot[1]) (- $rot[2]) $flp_name ; } select -cl ; } /////////////////////////////////////////////////////////// proc Call_Plane_zoe() { global string $sel_Set_zoe; select $sel_Set_zoe; string $sel_obj[] = ` ls -sl -tr ` ; int $sel_no = ` size ( $sel_obj ) ` ; int $i ; string $Base_Item; for ( $i = 0 ; $i < $sel_no ; $i++ ) { if( `gmatch $sel_obj[$i] "*_CI_*"`){ $Base_Item = $sel_obj[$i]; } } if( 0 == `objExists S_Plane_zoe` ){ polyPlane -ch on -o on -ax 1 0 0 -w 12 -h 18 -sw 1 -sh 1 -cuv 2 -n "S_Plane_zoe"; setAttr "S_Plane_zoeShape.overrideEnabled" 1; setAttr S_Plane_zoeShape.overrideLevelOfDetail 1; setAttr "S_Plane_zoeShape.castsShadows" 0; setAttr "S_Plane_zoeShape.receiveShadows" 0; setAttr "S_Plane_zoeShape.motionBlur" 0; setAttr "S_Plane_zoeShape.primaryVisibility" 0; setAttr "S_Plane_zoeShape.smoothShading" 0; setAttr "S_Plane_zoeShape.visibleInReflections" 0; setAttr "S_Plane_zoeShape.visibleInRefractions" 0; setAttr "S_Plane_zoeShape.doubleSided" 0; select -r S_Plane_zoe.vtx[0:3] ; move -r 0 9.0 0 ; select -r S_Plane_zoe ; } copyAttr -v $Base_Item S_Plane_zoe; select -cl ; } /////////////////////////////////////////////////////////// proc LCL_Pose_copy_zoe() { global string $sel_Set_zoe; select $sel_Set_zoe; string $sel_obj[] = ` ls -sl -tr ` ; int $sel_no = ` size ( $sel_obj ) ` ; int $i ; for ( $i = 0 ; $i < $sel_no ; $i++ ) { float $tra[] = ` xform -q -t $sel_obj[$i]`; float $rot[] = ` xform -q -ro $sel_obj[$i]`; string $tmp_null = "zoe_" + $sel_obj[$i] ; if( 0 == `objExists $tmp_null` ){ spaceLocator -n $tmp_null; parent $tmp_null tmp_ctrl_zoe; } xform -t $tra[0] $tra[1] $tra[2] $tmp_null ; xform -ro $rot[0] $rot[1] $rot[2] $tmp_null ; } int $ii = 0 ; string $R_Item[]; global string $R_null_s[]; for ( $i = 0 ; $i < $sel_no ; $i++ ) { if( `gmatch $sel_obj[$i] "*_RI_*"`){ $R_Item[$ii] = $sel_obj[$i]; $R_null_s[$ii] = "null_s_" + $sel_obj[$i]; $ii = $ii + 1 ; } } int $R_Item_no = ` size ( $R_Item ) ` ; $ii = 0 ; string $L_Item[]; global string $L_null_s[]; for ( $i = 0 ; $i < $sel_no ; $i++ ) { if( `gmatch $sel_obj[$i] "*_LI_*"`){ $L_Item[$ii] = $sel_obj[$i]; $L_null_s[$ii] = "null_s_" + $sel_obj[$i]; $ii = $ii + 1 ; } } int $L_Item_no = ` size ( $L_Item ) ` ; string $C_Item; global string $C_null_s; for ( $i = 0 ; $i < $sel_no ; $i++ ) { if( `gmatch $sel_obj[$i] "*_CI_*"`){ $C_Item = $sel_obj[$i]; $C_null_s = "null_s_" + $sel_obj[$i]; } } /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { if( `objExists $R_null_s[$ii]` ){ delete $R_null_s[$ii] ; } } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { if( `objExists $L_null_s[$ii]` ){ delete $L_null_s[$ii] ; } } if( `objExists $C_null_s` ){ delete $C_null_s ; } /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { spaceLocator -n $R_null_s[$ii]; //setAttr ($R_null_s[$ii] + ".visibility") 0; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { spaceLocator -n $L_null_s[$ii]; //setAttr ($L_null_s[$ii] + ".visibility") 0; } spaceLocator -n $C_null_s; /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { copyAttr -v $R_Item[$ii] $R_null_s[$ii]; setAttr ($R_null_s[$ii] + ".visibility") 0; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { copyAttr -v $L_Item[$ii] $L_null_s[$ii]; setAttr ($L_null_s[$ii] + ".visibility") 0; } copyAttr -v $C_Item $C_null_s; setAttr ($C_null_s + ".visibility") 0; /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { parentConstraint -mo -weight 1 S_Plane_zoe $R_null_s[$ii]; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { parentConstraint -mo -weight 1 S_Plane_zoe $L_null_s[$ii]; } parentConstraint -mo -weight 1 S_Plane_zoe $C_null_s; /////////////////////////////////// select -cl ; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////// proc LCL_Pose_paste_zoe() { global string $sel_Set_zoe; select $sel_Set_zoe; string $sel_obj[] = ` ls -sl -tr ` ; int $sel_no = ` size ( $sel_obj ) ` ; int $i ; for ( $i = 0 ; $i < $sel_no ; $i++ ) { string $tmp_null = "zoe_" + $sel_obj[$i] ; float $tra[] = ` xform -q -t $tmp_null`; float $rot[] = ` xform -q -ro $tmp_null`; //------------------------------------------------------------------ if ( `gmatch $sel_obj[$i] "*_RI_*"` || `gmatch $sel_obj[$i] "*_LI_*"` || `gmatch $sel_obj[$i] "*_CI_*"`){ // } else { xform -t $tra[0] $tra[1] $tra[2] $sel_obj[$i] ; xform -ro $rot[0] $rot[1] $rot[2] $sel_obj[$i] ; } //------------------------------------------------------------------ } int $ii = 0 ; global string $L_null_s[]; global string $R_null_s[]; global string $C_null_s; string $R_Item[]; string $R_null_t[]; for ( $i = 0 ; $i < $sel_no ; $i++ ) { if( `gmatch $sel_obj[$i] "*_RI_*"`){ $R_Item[$ii] = $sel_obj[$i]; $R_null_t[$ii] = "null_t_" + $sel_obj[$i]; $ii = $ii + 1 ; } } int $R_Item_no = ` size ( $R_Item ) ` ; $ii = 0 ; string $L_Item[]; string $L_null_t[]; for ( $i = 0 ; $i < $sel_no ; $i++ ) { if( `gmatch $sel_obj[$i] "*_LI_*"`){ $L_Item[$ii] = $sel_obj[$i]; $L_null_t[$ii] = "null_t_" + $sel_obj[$i]; $ii = $ii + 1 ; } } int $L_Item_no = ` size ( $L_Item ) ` ; string $C_Item; string $C_null_t; for ( $i = 0 ; $i < $sel_no ; $i++ ) { if( `gmatch $sel_obj[$i] "*_CI_*"`){ $C_Item = $sel_obj[$i]; $C_null_t = "null_t_" + $sel_obj[$i]; } } /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { if( `objExists $R_null_t[$ii]` ){ delete $R_null_t[$ii] ; } } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { if( `objExists $L_null_t[$ii]` ){ delete $L_null_t[$ii] ; } } if( `objExists $C_null_t` ){ delete $C_null_t ; } /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { spaceLocator -n $R_null_t[$ii]; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { spaceLocator -n $L_null_t[$ii]; } spaceLocator -n $C_null_t; /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { copyAttr -v $R_Item[$ii] $R_null_t[$ii]; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { copyAttr -v $L_Item[$ii] $L_null_t[$ii]; } copyAttr -v $C_Item $C_null_t; /////////////////////////////////// float $plane_tra[] = ` xform -q -t "S_Plane_zoe" ` ; float $plane_rot[] = ` xform -q -ro "S_Plane_zoe" ` ; xform -t 0 0 0 "S_Plane_zoe" ; xform -ro 0 0 0 "S_Plane_zoe" ; /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { float $tra[] = ` xform -q -t $R_null_s[$ii] ` ; float $rot[] = ` xform -q -ro $R_null_s[$ii] ` ; xform -t $tra[0] $tra[1] $tra[2] $R_null_t[$ii] ; xform -ro $rot[0] $rot[1] $rot[2] $R_null_t[$ii] ; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { float $tra[] = ` xform -q -t $L_null_s[$ii] ` ; float $rot[] = ` xform -q -ro $L_null_s[$ii] ` ; xform -t $tra[0] $tra[1] $tra[2] $L_null_t[$ii] ; xform -ro $rot[0] $rot[1] $rot[2] $L_null_t[$ii] ; } float $tra[] = ` xform -q -t $C_null_s ` ; float $rot[] = ` xform -q -ro $C_null_s ` ; xform -t $tra[0] $tra[1] $tra[2] $C_null_t ; xform -ro $rot[0] $rot[1] $rot[2] $C_null_t ; /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { parentConstraint -mo -weight 1 S_Plane_zoe $R_null_t[$ii]; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { parentConstraint -mo -weight 1 S_Plane_zoe $L_null_t[$ii]; } parentConstraint -mo -weight 1 S_Plane_zoe $C_null_t; xform -t $plane_tra[0] $plane_tra[1] $plane_tra[2] "S_Plane_zoe" ; xform -ro $plane_rot[0] $plane_rot[1] $plane_rot[2] "S_Plane_zoe" ; /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { float $tra[] = ` xform -q -t $R_null_t[$ii] ` ; float $rot[] = ` xform -q -ro $R_null_t[$ii] ` ; xform -t $tra[0] $tra[1] $tra[2] $R_Item[$ii] ; xform -ro $rot[0] $rot[1] $rot[2] $R_Item[$ii] ; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { float $tra[] = ` xform -q -t $L_null_t[$ii] ` ; float $rot[] = ` xform -q -ro $L_null_t[$ii] ` ; xform -t $tra[0] $tra[1] $tra[2] $L_Item[$ii] ; xform -ro $rot[0] $rot[1] $rot[2] $L_Item[$ii] ; } float $tra[] = ` xform -q -t $C_null_t ` ; float $rot[] = ` xform -q -ro $C_null_t ` ; xform -t $tra[0] $tra[1] $tra[2] $C_Item ; xform -ro $rot[0] $rot[1] $rot[2] $C_Item ; /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { setAttr ($R_null_t[$ii] + ".visibility") 0; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { setAttr ($L_null_t[$ii] + ".visibility") 0; } setAttr ($C_null_t + ".visibility") 0; select -cl ; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////// proc LCL_Pose_paste_mirror_zoe() { global string $sel_Set_zoe; select $sel_Set_zoe; string $sel_obj[] = ` ls -sl -tr ` ; int $sel_no = ` size ( $sel_obj ) ` ; int $i ; for ( $i = 0 ; $i < $sel_no ; $i++ ) { string $tmp_null = "zoe_" + $sel_obj[$i] ; float $tra[] = ` xform -q -t $tmp_null`; float $rot[] = ` xform -q -ro $tmp_null`; // string $flp_name = $sel_obj[$i] ; //------------------------------------------------------------------ if( `gmatch $sel_obj[$i] "*_R_*"`){ $flp_name = `substitute "_R_" $sel_obj[$i] "_L_" `; xform -t (- $tra[0]) $tra[1] $tra[2] $flp_name ; xform -ro $rot[0] (- $rot[1]) (- $rot[2]) $flp_name ; } else if ( `gmatch $sel_obj[$i] "*_L_*"`){ $flp_name = `substitute "_L_" $sel_obj[$i] "_R_" `; xform -t (- $tra[0]) $tra[1] $tra[2] $flp_name ; xform -ro $rot[0] (- $rot[1]) (- $rot[2]) $flp_name ; } else if ( `gmatch $sel_obj[$i] "*_RI_*"` || `gmatch $sel_obj[$i] "*_LI_*"` || `gmatch $sel_obj[$i] "*_CI_*"`){ // } else { xform -t (- $tra[0]) $tra[1] $tra[2] $flp_name ; xform -ro $rot[0] (- $rot[1]) (- $rot[2]) $flp_name ; } //------------------------------------------------------------------ } int $ii = 0 ; global string $L_null_s[]; global string $R_null_s[]; global string $C_null_s; string $R_Item[]; string $R_null_t[]; for ( $i = 0 ; $i < $sel_no ; $i++ ) { if( `gmatch $sel_obj[$i] "*_RI_*"`){ $R_Item[$ii] = $sel_obj[$i]; $R_null_t[$ii] = "null_t_" + $sel_obj[$i]; $ii = $ii + 1 ; } } int $R_Item_no = ` size ( $R_Item ) ` ; $ii = 0 ; string $L_Item[]; string $L_null_t[]; for ( $i = 0 ; $i < $sel_no ; $i++ ) { if( `gmatch $sel_obj[$i] "*_LI_*"`){ $L_Item[$ii] = $sel_obj[$i]; $L_null_t[$ii] = "null_t_" + $sel_obj[$i]; $ii = $ii + 1 ; } } int $L_Item_no = ` size ( $L_Item ) ` ; string $C_Item; string $C_null_t; for ( $i = 0 ; $i < $sel_no ; $i++ ) { if( `gmatch $sel_obj[$i] "*_CI_*"`){ $C_Item = $sel_obj[$i]; $C_null_t = "null_t_" + $sel_obj[$i]; } } /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { if( `objExists $R_null_t[$ii]` ){ delete $R_null_t[$ii] ; } } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { if( `objExists $L_null_t[$ii]` ){ delete $L_null_t[$ii] ; } } if( `objExists $C_null_t` ){ delete $C_null_t ; } /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { spaceLocator -n $R_null_t[$ii]; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { spaceLocator -n $L_null_t[$ii]; } spaceLocator -n $C_null_t; /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { copyAttr -v $R_Item[$ii] $R_null_t[$ii]; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { copyAttr -v $L_Item[$ii] $L_null_t[$ii]; } copyAttr -v $C_Item $C_null_t; /////////////////////////////////// float $plane_tra[] = ` xform -q -t "S_Plane_zoe" ` ; float $plane_rot[] = ` xform -q -ro "S_Plane_zoe" ` ; xform -t 0 0 0 "S_Plane_zoe" ; xform -ro 0 0 0 "S_Plane_zoe" ; /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { float $tra[] = ` xform -q -t $R_null_s[$ii] ` ; float $rot[] = ` xform -q -ro $R_null_s[$ii] ` ; xform -t (- $tra[0]) $tra[1] $tra[2] $L_null_t[$ii] ; xform -ro $rot[0] (- $rot[1]) (- $rot[2]) $L_null_t[$ii] ; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { float $tra[] = ` xform -q -t $L_null_s[$ii] ` ; float $rot[] = ` xform -q -ro $L_null_s[$ii] ` ; xform -t (- $tra[0]) $tra[1] $tra[2] $R_null_t[$ii] ; xform -ro $rot[0] (- $rot[1]) (- $rot[2]) $R_null_t[$ii] ; } float $tra[] = ` xform -q -t $C_null_s ` ; float $rot[] = ` xform -q -ro $C_null_s ` ; xform -t (- $tra[0]) $tra[1] $tra[2] $C_null_t ; xform -ro $rot[0] (- $rot[1]) (- $rot[2]) $C_null_t ; /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { parentConstraint -mo -weight 1 S_Plane_zoe $R_null_t[$ii]; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { parentConstraint -mo -weight 1 S_Plane_zoe $L_null_t[$ii]; } parentConstraint -mo -weight 1 S_Plane_zoe $C_null_t; xform -t $plane_tra[0] $plane_tra[1] $plane_tra[2] "S_Plane_zoe" ; xform -ro $plane_rot[0] $plane_rot[1] $plane_rot[2] "S_Plane_zoe" ; /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { float $tra[] = ` xform -q -t $R_null_t[$ii] ` ; float $rot[] = ` xform -q -ro $R_null_t[$ii] ` ; xform -t $tra[0] $tra[1] $tra[2] $R_Item[$ii] ; xform -ro $rot[0] $rot[1] $rot[2] $R_Item[$ii] ; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { float $tra[] = ` xform -q -t $L_null_t[$ii] ` ; float $rot[] = ` xform -q -ro $L_null_t[$ii] ` ; xform -t $tra[0] $tra[1] $tra[2] $L_Item[$ii] ; xform -ro $rot[0] $rot[1] $rot[2] $L_Item[$ii] ; } float $tra[] = ` xform -q -t $C_null_t ` ; float $rot[] = ` xform -q -ro $C_null_t ` ; xform -t $tra[0] $tra[1] $tra[2] $C_Item ; xform -ro $rot[0] $rot[1] $rot[2] $C_Item ; /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { setAttr ($R_null_t[$ii] + ".visibility") 0; } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { setAttr ($L_null_t[$ii] + ".visibility") 0; } setAttr ($C_null_t + ".visibility") 0; select -cl ; } ///////////////////////////////////////////////////////////////////////////////////////////////////////////// proc Remove_Plane_zoe() { if( 1 == `objExists S_Plane_zoe` ){ delete S_Plane_zoe ; } Delete_LRCnull_zoe(); } /////////////////////////////////////////////////////////// proc Close_PPG_zoe() { global string $PoseXcp_zoeWin; deleteUI $PoseXcp_zoeWin; delete tmp_ctrl_zoe ; if( 1 == `objExists S_Plane_zoe` ){ delete S_Plane_zoe ; } Delete_LRCnull_zoe(); } /////////////////////////////////////////////////////////// proc Delete_LRCnull_zoe() { global string $sel_Set_zoe; select $sel_Set_zoe; string $sel_obj[] = ` ls -sl -tr ` ; int $sel_no = ` size ( $sel_obj ) ` ; int $i ; int $ii = 0 ; global string $L_null_s[]; global string $R_null_s[]; global string $C_null_s; string $R_Item[]; string $R_null_t[]; for ( $i = 0 ; $i < $sel_no ; $i++ ) { if( `gmatch $sel_obj[$i] "*_RI_*"`){ $R_Item[$ii] = $sel_obj[$i]; $R_null_t[$ii] = "null_t_" + $sel_obj[$i]; $ii = $ii + 1 ; } } int $R_Item_no = ` size ( $R_Item ) ` ; $ii = 0 ; string $L_Item[]; string $L_null_t[]; for ( $i = 0 ; $i < $sel_no ; $i++ ) { if( `gmatch $sel_obj[$i] "*_LI_*"`){ $L_Item[$ii] = $sel_obj[$i]; $L_null_t[$ii] = "null_t_" + $sel_obj[$i]; $ii = $ii + 1 ; } } int $L_Item_no = ` size ( $L_Item ) ` ; string $C_Item; string $C_null_t; for ( $i = 0 ; $i < $sel_no ; $i++ ) { if( `gmatch $sel_obj[$i] "*_CI_*"`){ $C_Item = $sel_obj[$i]; $C_null_t = "null_t_" + $sel_obj[$i]; } } /////////////////////////////////// for ( $ii = 0 ; $ii < $R_Item_no ; $ii++ ) { if( `objExists $R_null_s[$ii]` ){ delete $R_null_s[$ii] ; } if( `objExists $R_null_t[$ii]` ){ delete $R_null_t[$ii] ; } } for ( $ii = 0 ; $ii < $L_Item_no ; $ii++ ) { if( `objExists $L_null_s[$ii]` ){ delete $L_null_s[$ii] ; } if( `objExists $L_null_t[$ii]` ){ delete $L_null_t[$ii] ; } } if( `objExists $C_null_s` ){ delete $C_null_s ; } if( `objExists $C_null_t` ){ delete $C_null_t ; } select -cl ; } /////////////////////////////////////////////////////////// //================================================= // PoseXcp_zoe ‚f‚t‚h //================================================= global proc PoseXcp_zoe() { if( 0 == `objExists tmp_ctrl_zoe` ){ spaceLocator -n tmp_ctrl_zoe -p 0 0 0; } setAttr "tmp_ctrl_zoe.visibility" 0; select -cl ; // global string $PoseXcp_zoeWin = "sonnzai_site_masu"; if (`window -ex $PoseXcp_zoeWin`) { deleteUI $PoseXcp_zoeWin; } // window //-wh 170 300 -t "PoseXcp_zoe" -mnb on -s off -i off sonnzai_site_masu; columnLayout -adjustableColumn false; text -w 170 -l "PoseXcp_zoe"; text -w 170 -l "Ver. 0.1"; text -l " "; string $form = `formLayout`; //--------------------------------------------------------------------- string $selectButton = `button -w 170 -l "select set" -bgc 1.0 1.0 1.0 -c "SelectSet();" PPG_Set_Input`; formLayout -edit -attachForm $selectButton "top" 0 $form; //--------------------------------------------------------------------- //--------------------------------------------------------------------- string $closeButton = `button -w 170 -l "CLOSE" -bgc 0.8 0.8 0.8 -c "Close_PPG_zoe();"`; formLayout -edit -attachForm $closeButton "top" 190 $form; //--------------------------------------------------------------------- //--------------------------------------------------------------------- string $tabs = `tabLayout -w 170 -innerMarginWidth 10 -innerMarginHeight 10`; formLayout -edit -attachForm $tabs "top" 40 $form; string $tab1 = `columnLayout`; text -l " "; text -l " "; button -w 160 -l "Copy Pose" -bgc 0.95 0.95 0.85 -c "Pose_copy_zoe();"; rowColumnLayout -numberOfColumns 3 -columnWidth 1 50 -columnWidth 2 10 -columnWidth 3 100; button -l "Paste" -c "Pose_paste_zoe();"; text -l ""; button -l "Paste(mirror)" -bgc 0.9 0.9 0.9 -c "Pose_paste_mirror_zoe();"; setParent ..; text -l " "; setParent ..; ///////////////////////////////////////////////////////////////////////////////// string $tab2 = `columnLayout`; button -w 160 -bgc 1.0 1.0 0.8 -l "Call Plane" -c "Call_Plane_zoe();"; button -w 160 -l "Copy Pose" -bgc 0.95 0.95 0.85 -c "LCL_Pose_copy_zoe();"; rowColumnLayout -numberOfColumns 3 -columnWidth 1 50 -columnWidth 2 10 -columnWidth 3 100; button -l "Paste" -c "LCL_Pose_paste_zoe();"; text -l ""; button -l "Paste(mirror)" -bgc 0.9 0.9 0.9 -c "LCL_Pose_paste_mirror_zoe();"; setParent ..; button -w 160 -bgc 1.0 0.8 0.8 -l "Remove Plane" -c "Remove_Plane_zoe();"; setParent ..; // tabLayout -edit -tabLabel $tab1 "world" -tabLabel $tab2 "local" $tabs; //--------------------------------------------------------------------- showWindow; }; /////////////////////////////////////////////////////////// PoseXcp_zoe(); /////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////