diff --git a/__init__.py b/__init__.py index fd0cf6e..a5d8a2f 100644 --- a/__init__.py +++ b/__init__.py @@ -22,7 +22,7 @@ # Initial script programming: Bart Crouch # Current maintainer and developer: Juan Pablo Bouza, Sav Martin # -# Synoptic Panel/Rig Picker based on work by: Salvador Artero +# Synoptic Panel/Rig Picker based on work by: Salvador Artero # # Special thanks on python advice to: Campbell Barton, Bassam Kurdali, Daniel Salazar, CodeManX, Patrick Crawford, Gabriel Caraballo, Ines Almeida # Special thanks for feedback and ideas to: Jorge Rausch, Gabriel Sabsay, Pablo Vázquez, Hjalti Hjálmarsson, Beorn Leonard, Sarah Laufer @@ -83,14 +83,14 @@ def optimize_body(self, context): from bpy.app.handlers import persistent @persistent -def load_reprop_handler(context): - bone_auto_hide(context) +def load_reprop_handler(context): + bone_auto_hide(context) reproportion_toggle(context) - rig_toggles(context) - + rig_toggles(context) + @persistent -def load_handler(context): - bone_auto_hide(context) +def load_handler(context): + bone_auto_hide(context) bpy.app.handlers.load_post.append(load_reprop_handler) bpy.app.handlers.frame_change_post.append(load_handler) @@ -105,7 +105,7 @@ bpy.types.PoseBone.ik_head = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -128,7 +128,7 @@ bpy.types.PoseBone.inv_torso = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Invert Torso Hierarchy", update=prop_update, @@ -139,7 +139,7 @@ bpy.types.PoseBone.ik_arm_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -150,7 +150,7 @@ bpy.types.PoseBone.ik_arm_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -161,7 +161,7 @@ bpy.types.PoseBone.ik_leg_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -172,7 +172,7 @@ bpy.types.PoseBone.ik_toes_all_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -183,7 +183,7 @@ bpy.types.PoseBone.ik_leg_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -194,7 +194,7 @@ bpy.types.PoseBone.ik_toes_all_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -205,7 +205,7 @@ bpy.types.PoseBone.ik_fing_ind_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -216,7 +216,7 @@ bpy.types.PoseBone.ik_fing_mid_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -227,7 +227,7 @@ bpy.types.PoseBone.ik_fing_ring_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -238,7 +238,7 @@ bpy.types.PoseBone.ik_fing_lit_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -249,7 +249,7 @@ bpy.types.PoseBone.ik_fing_thumb_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -260,7 +260,7 @@ bpy.types.PoseBone.ik_fing_ind_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -271,7 +271,7 @@ bpy.types.PoseBone.ik_fing_mid_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -282,7 +282,7 @@ bpy.types.PoseBone.ik_fing_ring_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -293,7 +293,7 @@ bpy.types.PoseBone.ik_fing_lit_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -304,7 +304,7 @@ bpy.types.PoseBone.ik_fing_thumb_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -315,7 +315,7 @@ bpy.types.PoseBone.ik_fing_all_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -326,7 +326,7 @@ bpy.types.PoseBone.ik_fing_all_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -340,7 +340,7 @@ bpy.types.PoseBone.hinge_head = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -351,7 +351,7 @@ bpy.types.PoseBone.hinge_neck = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -362,7 +362,7 @@ bpy.types.PoseBone.hinge_arm_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -373,7 +373,7 @@ bpy.types.PoseBone.hinge_arm_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -384,7 +384,7 @@ bpy.types.PoseBone.hinge_hand_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -395,7 +395,7 @@ bpy.types.PoseBone.hinge_hand_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -406,7 +406,7 @@ bpy.types.PoseBone.hinge_fing_ind_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -417,7 +417,7 @@ bpy.types.PoseBone.hinge_fing_mid_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -428,7 +428,7 @@ bpy.types.PoseBone.hinge_fing_ring_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -439,7 +439,7 @@ bpy.types.PoseBone.hinge_fing_lit_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -450,7 +450,7 @@ bpy.types.PoseBone.hinge_fing_thumb_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -461,7 +461,7 @@ bpy.types.PoseBone.hinge_fing_ind_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -472,7 +472,7 @@ bpy.types.PoseBone.hinge_fing_mid_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -483,7 +483,7 @@ bpy.types.PoseBone.hinge_fing_ring_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -494,7 +494,7 @@ bpy.types.PoseBone.hinge_fing_lit_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -505,7 +505,7 @@ bpy.types.PoseBone.hinge_fing_thumb_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -516,7 +516,7 @@ bpy.types.PoseBone.hinge_fing_all_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -527,7 +527,7 @@ bpy.types.PoseBone.hinge_fing_all_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -538,7 +538,7 @@ bpy.types.PoseBone.hinge_leg_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -549,7 +549,7 @@ bpy.types.PoseBone.hinge_toes_all_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -560,18 +560,18 @@ bpy.types.PoseBone.hinge_leg_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, name="hinge_leg_R" -) +) bpy.types.PoseBone.hinge_toes_all_R = FloatProperty( default=0.000, min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -585,72 +585,72 @@ bpy.types.PoseBone.toon_head = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Stretchy IK Toggle", update=prop_update, name="toon_head" -) +) bpy.types.PoseBone.toon_torso = FloatProperty( default=0.000, min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Stretchy IK Toggle", update=prop_update, name="toon_torso" -) +) bpy.types.PoseBone.toon_arm_L = FloatProperty( default=0.000, min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Stretchy IK Toggle", update=prop_update, name="toon_arm_L" -) +) bpy.types.PoseBone.toon_arm_R = FloatProperty( default=0.000, min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Stretchy IK Toggle", update=prop_update, name="toon_arm_R" -) +) bpy.types.PoseBone.toon_leg_L = FloatProperty( default=0.000, min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Stretchy IK Toggle", update=prop_update, name="toon_leg_L" -) +) bpy.types.PoseBone.toon_leg_R = FloatProperty( default=0.000, min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Stretchy IK Toggle", update=prop_update, name="toon_leg_R" -) +) # LOOK SWITCH bpy.types.PoseBone.look_switch = FloatProperty( @@ -658,12 +658,12 @@ bpy.types.PoseBone.look_switch = FloatProperty( min=0.000, max=3.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Target of Eyes", update=prop_update, name="look_switch" -) +) # REPROPORTION bpy.types.Armature.reproportion = BoolProperty( @@ -671,57 +671,57 @@ bpy.types.Armature.reproportion = BoolProperty( description="Toggle Reproportion Mode", update=reprop_update, name="reproportion" -) +) # TOGGLE_FACE_DRIVERS bpy.types.Armature.toggle_face_drivers = BoolProperty( default=1, description="Toggle Face Riggin Drivers", update=optimize_face, name="toggle_face_drivers" -) +) # TOGGLE_FLEX_DRIVERS bpy.types.Armature.toggle_flex_drivers = BoolProperty( default=1, description="Toggle Flex Scaling", update=optimize_flex, name="toggle_flex_drivers" -) +) # TOGGLE_BODY_DRIVERS bpy.types.Armature.toggle_body_drivers = BoolProperty( default=1, description="Toggle Body Rigging Drivers", update=optimize_body, name="toggle_body_drivers" -) +) # TOGGLES bpy.types.PoseBone.toggle_fingers_L = BoolProperty( default=0, description="Toggle fingers in rig", update=rig_toggles_update, name="toggle_fingers_L" -) +) bpy.types.PoseBone.toggle_toes_L = BoolProperty( default=0, description="Toggle toes in rig", update=rig_toggles_update, name="toggle_toes_L" -) +) bpy.types.PoseBone.toggle_fingers_R = BoolProperty( default=0, description="Toggle fingers in rig", update=rig_toggles_update, name="toggle_fingers_R" -) +) bpy.types.PoseBone.toggle_toes_R = BoolProperty( default=0, description="Toggle toes in rig", update=rig_toggles_update, name="toggle_toes_R" -) - +) + ####### Load BlenRig 5 Controls Panel from .ui_panel_controls import BLENRIG_PT_BlenRig_5_Interface @@ -739,7 +739,7 @@ from .ops_baking import ( ARMATURE_OT_reset_deformers, ARMATURE_OT_armature_baker, ARMATURE_OT_reset_constraints - ) + ) ####### Load BlenRig 5 Alignment Operators from .ops_alignment import ( @@ -749,12 +749,12 @@ from .ops_alignment import ( Operator_BlenRig_Store_Roll_Angles, Operator_BlenRig_Restore_Roll_Angles, Operator_BlenRig_Reset_Dynamic - ) + ) ####### Load BlenRig 5 Snapping Operators from .ops_snapping import ( - Operator_Torso_Snap_FK_IK, - Operator_Torso_Snap_IK_FK, + Operator_Torso_Snap_FK_IK, + Operator_Torso_Snap_IK_FK, Operator_Head_Snap_FK_IK, Operator_Head_Snap_IK_FK, Operator_Torso_Snap_UP_INV, @@ -768,264 +768,264 @@ from .ops_snapping import ( Operator_Leg_R_Snap_FK_IK, Operator_Leg_R_Snap_IK_FK ) - + ####### Load BlenRig 5 Body Picker Operators # Biped from .ops_picker_body import ( Operator_Head_Stretch, - Operator_Head_Toon, - Operator_Head_Top_Ctrl, - Operator_Head_Mid_Ctrl, - Operator_Head_Mid_Curve, - Operator_Mouth_Str_Ctrl, - Operator_Head_FK, - Operator_Head_IK, - Operator_Neck_4_Toon, - Operator_Face_Toon_Up, - Operator_Face_Toon_Mid, - Operator_Face_Toon_Low, - Operator_Neck_3, + Operator_Head_Toon, + Operator_Head_Top_Ctrl, + Operator_Head_Mid_Ctrl, + Operator_Head_Mid_Curve, + Operator_Mouth_Str_Ctrl, + Operator_Head_FK, + Operator_Head_IK, + Operator_Neck_4_Toon, + Operator_Face_Toon_Up, + Operator_Face_Toon_Mid, + Operator_Face_Toon_Low, + Operator_Neck_3, Operator_Neck_2, - Operator_Neck_1, - Operator_Neck_3_Toon, - Operator_Neck_2_Toon, - Operator_Neck_Ctrl, - Operator_Shoulder_L, - Operator_Shoulder_R, - Operator_Shoulder_Rot_L, - Operator_Shoulder_Rot_R, - Operator_Clavi_Toon_L, - Operator_Clavi_Toon_R, - Operator_Head_Scale, - Operator_Arm_Toon_L, - Operator_Elbow_Pole_L, - Operator_Forearm_Toon_L, - Operator_Arm_Scale_L, - Operator_Arm_FK_L, - Operator_Arm_IK_L, - Operator_Elbow_Toon_L, - Operator_Forearm_FK_L, - Operator_Forearm_IK_L, - Operator_Hand_Toon_L, - Operator_Arm_Toon_R, - Operator_Elbow_Pole_R, - Operator_Forearm_Toon_R, - Operator_Arm_Scale_R, - Operator_Arm_FK_R, - Operator_Arm_IK_R, - Operator_Elbow_Toon_R, - Operator_Forearm_FK_R, - Operator_Forearm_IK_R, - Operator_Hand_Toon_R, - Operator_Torso_Ctrl, - Operator_Spine_3, - Operator_Spine_2, - Operator_Spine_1, - Operator_Master_Torso_Pivot_Point, - Operator_Master_Torso, - Operator_Pelvis_Ctrl, - Operator_Spine_4_Toon, - Operator_Spine_3_Toon, - Operator_Spine_2_Toon, - Operator_Spine_1_Toon, - Operator_Pelvis_Toon, - Operator_Spine_3_Inv_Ctrl, - Operator_Hand_Roll_L, - Operator_Fing_Spread_L, - Operator_Hand_IK_Pivot_Point_L, - Operator_Hand_IK_Ctrl_L, - Operator_Hand_FK_L, - Operator_Fing_Lit_Ctrl_L, - Operator_Fing_Lit_2_L, - Operator_Fing_Lit_3_L, - Operator_Fing_Lit_4_L, - Operator_Fing_Ring_Ctrl_L, - Operator_Fing_Ring_2_L, - Operator_Fing_Ring_3_L, - Operator_Fing_Ring_4_L, - Operator_Fing_Mid_Ctrl_L, - Operator_Fing_Mid_2_L, - Operator_Fing_Mid_3_L, - Operator_Fing_Mid_4_L, - Operator_Fing_Ind_Ctrl_L, - Operator_Fing_Ind_2_L, - Operator_Fing_Ind_3_L, - Operator_Fing_Ind_4_L, - Operator_Fing_Thumb_Ctrl_L, - Operator_Fing_Thumb_2_L, - Operator_Fing_Thumb_3_L, - Operator_Fing_Thumb_1_L, - Operator_Fing_Lit_IK_L, - Operator_Fing_Ring_IK_L, - Operator_Fing_Mid_IK_L, - Operator_Fing_Ind_IK_L, - Operator_Fing_Thumb_IK_L, - Operator_Hand_Close_L, - Operator_Hand_Roll_R, - Operator_Fing_Spread_R, - Operator_Hand_IK_Pivot_Point_R, - Operator_Hand_IK_Ctrl_R, - Operator_Hand_FK_R, - Operator_Fing_Lit_Ctrl_R, - Operator_Fing_Lit_2_R, - Operator_Fing_Lit_3_R, - Operator_Fing_Lit_4_R, - Operator_Fing_Ring_Ctrl_R, - Operator_Fing_Ring_2_R, - Operator_Fing_Ring_3_R, - Operator_Fing_Ring_4_R, - Operator_Fing_Mid_Ctrl_R, - Operator_Fing_Mid_2_R, - Operator_Fing_Mid_3_R, - Operator_Fing_Mid_4_R, - Operator_Fing_Ind_Ctrl_R, - Operator_Fing_Ind_2_R, - Operator_Fing_Ind_3_R, - Operator_Fing_Ind_4_R, - Operator_Fing_Thumb_Ctrl_R, - Operator_Fing_Thumb_2_R, - Operator_Fing_Thumb_3_R, - Operator_Fing_Thumb_1_R, - Operator_Fing_Lit_IK_R, - Operator_Fing_Ring_IK_R, - Operator_Fing_Mid_IK_R, - Operator_Fing_Ind_IK_R, - Operator_Fing_Thumb_IK_R, - Operator_Hand_Close_R, - Operator_Thigh_Toon_L, - Operator_Knee_Pole_L, - Operator_Shin_Toon_L, - Operator_Pelvis_Toon_L, - Operator_Leg_Scale_L, - Operator_Thigh_FK_L, - Operator_Thigh_IK_L, - Operator_Knee_Toon_L, - Operator_Shin_FK_L, - Operator_Shin_IK_L, - Operator_Foot_Toon_L, - Operator_Thigh_Toon_R, - Operator_Knee_Pole_R, - Operator_Shin_Toon_R, - Operator_Pelvis_Toon_R, - Operator_Leg_Scale_R, - Operator_Thigh_FK_R, - Operator_Thigh_IK_R, - Operator_Knee_Toon_R, - Operator_Shin_FK_R, - Operator_Shin_IK_R, - Operator_Foot_Toon_R, - Operator_Toe_2_FK_L, - Operator_Toe_Roll_1_L, - Operator_Toe_1_FK_L, - Operator_Toe_Roll_2_L, - Operator_Foot_L, - Operator_Foot_Roll_Ctrl_L, - Operator_Toe_Big_Ctrl_L, - Operator_Toe_Big_2_L, - Operator_Toe_Big_3_L, - Operator_Toe_Big_IK_L, - Operator_Toe_Ind_Ctrl_L, - Operator_Toe_Ind_2_L, - Operator_Toe_Ind_3_L, - Operator_Toe_Ind_4_L, - Operator_Toe_Ind_IK_L, - Operator_Toe_Mid_Ctrl_L, - Operator_Toe_Mid_2_L, - Operator_Toe_Mid_3_L, - Operator_Toe_Mid_4_L, - Operator_Toe_Mid_IK_L, - Operator_Toe_Fourth_Ctrl_L, - Operator_Toe_Fourth_2_L, - Operator_Toe_Fourth_3_L, - Operator_Toe_Fourth_4_L, - Operator_Toe_Fourth_IK_L, - Operator_Toe_Lit_Ctrl_L, - Operator_Toe_Lit_2_L, - Operator_Toe_Lit_3_L, - Operator_Toe_Lit_IK_L, - Operator_Toes_Spread_L, - Operator_Toes_IK_Ctrl_Mid_L, - Operator_Toes_IK_Ctrl_L, - Operator_Sole_Ctrl_L, - Operator_Sole_Pivot_Point_L, - Operator_Toe_2_FK_R, - Operator_Toe_Roll_1_R, - Operator_Toe_1_FK_R, - Operator_Toe_Roll_2_R, - Operator_Foot_R, - Operator_Foot_Roll_Ctrl_R, - Operator_Toe_Big_Ctrl_R, - Operator_Toe_Big_2_R, - Operator_Toe_Big_3_R, - Operator_Toe_Big_IK_R, - Operator_Toe_Ind_Ctrl_R, - Operator_Toe_Ind_2_R, - Operator_Toe_Ind_3_R, - Operator_Toe_Ind_4_R, - Operator_Toe_Ind_IK_R, - Operator_Toe_Mid_Ctrl_R, - Operator_Toe_Mid_2_R, - Operator_Toe_Mid_3_R, - Operator_Toe_Mid_4_R, - Operator_Toe_Mid_IK_R, - Operator_Toe_Fourth_Ctrl_R, - Operator_Toe_Fourth_2_R, - Operator_Toe_Fourth_3_R, - Operator_Toe_Fourth_4_R, - Operator_Toe_Fourth_IK_R, - Operator_Toe_Lit_Ctrl_R, - Operator_Toe_Lit_2_R, - Operator_Toe_Lit_3_R, - Operator_Toe_Lit_IK_R, - Operator_Toes_Spread_R, - Operator_Toes_IK_Ctrl_Mid_R, - Operator_Toes_IK_Ctrl_R, - Operator_Sole_Ctrl_R, - Operator_Sole_Pivot_Point_R, - Operator_Master, - Operator_Master_Pivot_Point, - Operator_Look, - Operator_Look_L, - Operator_Look_R, + Operator_Neck_1, + Operator_Neck_3_Toon, + Operator_Neck_2_Toon, + Operator_Neck_Ctrl, + Operator_Shoulder_L, + Operator_Shoulder_R, + Operator_Shoulder_Rot_L, + Operator_Shoulder_Rot_R, + Operator_Clavi_Toon_L, + Operator_Clavi_Toon_R, + Operator_Head_Scale, + Operator_Arm_Toon_L, + Operator_Elbow_Pole_L, + Operator_Forearm_Toon_L, + Operator_Arm_Scale_L, + Operator_Arm_FK_L, + Operator_Arm_IK_L, + Operator_Elbow_Toon_L, + Operator_Forearm_FK_L, + Operator_Forearm_IK_L, + Operator_Hand_Toon_L, + Operator_Arm_Toon_R, + Operator_Elbow_Pole_R, + Operator_Forearm_Toon_R, + Operator_Arm_Scale_R, + Operator_Arm_FK_R, + Operator_Arm_IK_R, + Operator_Elbow_Toon_R, + Operator_Forearm_FK_R, + Operator_Forearm_IK_R, + Operator_Hand_Toon_R, + Operator_Torso_Ctrl, + Operator_Spine_3, + Operator_Spine_2, + Operator_Spine_1, + Operator_Master_Torso_Pivot_Point, + Operator_Master_Torso, + Operator_Pelvis_Ctrl, + Operator_Spine_4_Toon, + Operator_Spine_3_Toon, + Operator_Spine_2_Toon, + Operator_Spine_1_Toon, + Operator_Pelvis_Toon, + Operator_Spine_3_Inv_Ctrl, + Operator_Hand_Roll_L, + Operator_Fing_Spread_L, + Operator_Hand_IK_Pivot_Point_L, + Operator_Hand_IK_Ctrl_L, + Operator_Hand_FK_L, + Operator_Fing_Lit_Ctrl_L, + Operator_Fing_Lit_2_L, + Operator_Fing_Lit_3_L, + Operator_Fing_Lit_4_L, + Operator_Fing_Ring_Ctrl_L, + Operator_Fing_Ring_2_L, + Operator_Fing_Ring_3_L, + Operator_Fing_Ring_4_L, + Operator_Fing_Mid_Ctrl_L, + Operator_Fing_Mid_2_L, + Operator_Fing_Mid_3_L, + Operator_Fing_Mid_4_L, + Operator_Fing_Ind_Ctrl_L, + Operator_Fing_Ind_2_L, + Operator_Fing_Ind_3_L, + Operator_Fing_Ind_4_L, + Operator_Fing_Thumb_Ctrl_L, + Operator_Fing_Thumb_2_L, + Operator_Fing_Thumb_3_L, + Operator_Fing_Thumb_1_L, + Operator_Fing_Lit_IK_L, + Operator_Fing_Ring_IK_L, + Operator_Fing_Mid_IK_L, + Operator_Fing_Ind_IK_L, + Operator_Fing_Thumb_IK_L, + Operator_Hand_Close_L, + Operator_Hand_Roll_R, + Operator_Fing_Spread_R, + Operator_Hand_IK_Pivot_Point_R, + Operator_Hand_IK_Ctrl_R, + Operator_Hand_FK_R, + Operator_Fing_Lit_Ctrl_R, + Operator_Fing_Lit_2_R, + Operator_Fing_Lit_3_R, + Operator_Fing_Lit_4_R, + Operator_Fing_Ring_Ctrl_R, + Operator_Fing_Ring_2_R, + Operator_Fing_Ring_3_R, + Operator_Fing_Ring_4_R, + Operator_Fing_Mid_Ctrl_R, + Operator_Fing_Mid_2_R, + Operator_Fing_Mid_3_R, + Operator_Fing_Mid_4_R, + Operator_Fing_Ind_Ctrl_R, + Operator_Fing_Ind_2_R, + Operator_Fing_Ind_3_R, + Operator_Fing_Ind_4_R, + Operator_Fing_Thumb_Ctrl_R, + Operator_Fing_Thumb_2_R, + Operator_Fing_Thumb_3_R, + Operator_Fing_Thumb_1_R, + Operator_Fing_Lit_IK_R, + Operator_Fing_Ring_IK_R, + Operator_Fing_Mid_IK_R, + Operator_Fing_Ind_IK_R, + Operator_Fing_Thumb_IK_R, + Operator_Hand_Close_R, + Operator_Thigh_Toon_L, + Operator_Knee_Pole_L, + Operator_Shin_Toon_L, + Operator_Pelvis_Toon_L, + Operator_Leg_Scale_L, + Operator_Thigh_FK_L, + Operator_Thigh_IK_L, + Operator_Knee_Toon_L, + Operator_Shin_FK_L, + Operator_Shin_IK_L, + Operator_Foot_Toon_L, + Operator_Thigh_Toon_R, + Operator_Knee_Pole_R, + Operator_Shin_Toon_R, + Operator_Pelvis_Toon_R, + Operator_Leg_Scale_R, + Operator_Thigh_FK_R, + Operator_Thigh_IK_R, + Operator_Knee_Toon_R, + Operator_Shin_FK_R, + Operator_Shin_IK_R, + Operator_Foot_Toon_R, + Operator_Toe_2_FK_L, + Operator_Toe_Roll_1_L, + Operator_Toe_1_FK_L, + Operator_Toe_Roll_2_L, + Operator_Foot_L, + Operator_Foot_Roll_Ctrl_L, + Operator_Toe_Big_Ctrl_L, + Operator_Toe_Big_2_L, + Operator_Toe_Big_3_L, + Operator_Toe_Big_IK_L, + Operator_Toe_Ind_Ctrl_L, + Operator_Toe_Ind_2_L, + Operator_Toe_Ind_3_L, + Operator_Toe_Ind_4_L, + Operator_Toe_Ind_IK_L, + Operator_Toe_Mid_Ctrl_L, + Operator_Toe_Mid_2_L, + Operator_Toe_Mid_3_L, + Operator_Toe_Mid_4_L, + Operator_Toe_Mid_IK_L, + Operator_Toe_Fourth_Ctrl_L, + Operator_Toe_Fourth_2_L, + Operator_Toe_Fourth_3_L, + Operator_Toe_Fourth_4_L, + Operator_Toe_Fourth_IK_L, + Operator_Toe_Lit_Ctrl_L, + Operator_Toe_Lit_2_L, + Operator_Toe_Lit_3_L, + Operator_Toe_Lit_IK_L, + Operator_Toes_Spread_L, + Operator_Toes_IK_Ctrl_Mid_L, + Operator_Toes_IK_Ctrl_L, + Operator_Sole_Ctrl_L, + Operator_Sole_Pivot_Point_L, + Operator_Toe_2_FK_R, + Operator_Toe_Roll_1_R, + Operator_Toe_1_FK_R, + Operator_Toe_Roll_2_R, + Operator_Foot_R, + Operator_Foot_Roll_Ctrl_R, + Operator_Toe_Big_Ctrl_R, + Operator_Toe_Big_2_R, + Operator_Toe_Big_3_R, + Operator_Toe_Big_IK_R, + Operator_Toe_Ind_Ctrl_R, + Operator_Toe_Ind_2_R, + Operator_Toe_Ind_3_R, + Operator_Toe_Ind_4_R, + Operator_Toe_Ind_IK_R, + Operator_Toe_Mid_Ctrl_R, + Operator_Toe_Mid_2_R, + Operator_Toe_Mid_3_R, + Operator_Toe_Mid_4_R, + Operator_Toe_Mid_IK_R, + Operator_Toe_Fourth_Ctrl_R, + Operator_Toe_Fourth_2_R, + Operator_Toe_Fourth_3_R, + Operator_Toe_Fourth_4_R, + Operator_Toe_Fourth_IK_R, + Operator_Toe_Lit_Ctrl_R, + Operator_Toe_Lit_2_R, + Operator_Toe_Lit_3_R, + Operator_Toe_Lit_IK_R, + Operator_Toes_Spread_R, + Operator_Toes_IK_Ctrl_Mid_R, + Operator_Toes_IK_Ctrl_R, + Operator_Sole_Ctrl_R, + Operator_Sole_Pivot_Point_R, + Operator_Master, + Operator_Master_Pivot_Point, + Operator_Look, + Operator_Look_L, + Operator_Look_R, Operator_Zoom_Selected ) - + #Quadruped from .ops_picker_body import ( - Operator_Ankle_Toon_L, - Operator_Carpal_FK_L, - Operator_Carpal_IK_L, - Operator_Carpal_Toon_L, - Operator_Ankle_Toon_R, - Operator_Carpal_FK_R, - Operator_Carpal_IK_R, - Operator_Carpal_Toon_R, - Operator_Hock_Toon_L, - Operator_Tarsal_FK_L, - Operator_Tarsal_IK_L, - Operator_Tarsal_Toon_L, - Operator_Hock_Toon_R, - Operator_Tarsal_FK_R, + Operator_Ankle_Toon_L, + Operator_Carpal_FK_L, + Operator_Carpal_IK_L, + Operator_Carpal_Toon_L, + Operator_Ankle_Toon_R, + Operator_Carpal_FK_R, + Operator_Carpal_IK_R, + Operator_Carpal_Toon_R, + Operator_Hock_Toon_L, + Operator_Tarsal_FK_L, + Operator_Tarsal_IK_L, + Operator_Tarsal_Toon_L, + Operator_Hock_Toon_R, + Operator_Tarsal_FK_R, Operator_Tarsal_IK_R, - Operator_Tarsal_Toon_R, - Operator_Fing_2_FK_L, - Operator_Fing_1_FK_L, - Operator_Fing_Roll_2_L, - Operator_Fing_Roll_1_L, - Operator_Hand_L, - Operator_Hand_Roll_Ctrl_L, - Operator_Hand_Sole_Ctrl_L, - Operator_Hand_Sole_Pivot_Point_L, - Operator_Fing_2_FK_R, - Operator_Fing_1_FK_R, - Operator_Fing_Roll_2_R, - Operator_Fing_Roll_1_R, - Operator_Hand_R, - Operator_Hand_Roll_Ctrl_R, - Operator_Hand_Sole_Ctrl_R, + Operator_Tarsal_Toon_R, + Operator_Fing_2_FK_L, + Operator_Fing_1_FK_L, + Operator_Fing_Roll_2_L, + Operator_Fing_Roll_1_L, + Operator_Hand_L, + Operator_Hand_Roll_Ctrl_L, + Operator_Hand_Sole_Ctrl_L, + Operator_Hand_Sole_Pivot_Point_L, + Operator_Fing_2_FK_R, + Operator_Fing_1_FK_R, + Operator_Fing_Roll_2_R, + Operator_Fing_Roll_1_R, + Operator_Hand_R, + Operator_Hand_Roll_Ctrl_R, + Operator_Hand_Sole_Ctrl_R, Operator_Hand_Sole_Pivot_Point_R - ) - + ) + ####### Load BlenRig 5 Face Picker Operators from .ops_picker_face import ( Operator_Ear_Up_R, @@ -1217,7 +1217,7 @@ from .blenrig_biped.ops_biped_layers_scheme import ( from .ops_rig_updater import ( Operator_Biped_Updater ) - + ####### Load BlenRig 5 Rig Presets Operators from .blenrig_biped.ops_blenrig_biped_add import ( Operator_BlenRig5_Add_Biped @@ -1239,7 +1239,7 @@ class INFO_MT_blenrig5_add_rig(bpy.types.Menu): def blenrig5_add_menu_func(self, context): self.layout.operator("blenrig5.add_biped_rig", text="BlenRig 5 Biped Rig", icon='POSE_HLT') -######### GUI OPERATORS ########################################### +######### GUI OPERATORS ########################################### # Display or hide tabs (sets the appropriate id-property) class ARMATURE_OT_blenrig_5_gui(bpy.types.Operator): @@ -1247,8 +1247,8 @@ class ARMATURE_OT_blenrig_5_gui(bpy.types.Operator): bl_label = "" bl_idname = "gui.blenrig_5_tabs" - tab : bpy.props.StringProperty(name="Tab", description="Tab of the gui to expand") - + tab = bpy.props.StringProperty(name="Tab", description="Tab of the gui to expand") + def invoke(self, context, event): arm = bpy.context.active_object.data if self.properties.tab in arm: @@ -1481,7 +1481,7 @@ body_picker_biped_classes = [ Operator_Toe_Big_2_L, Operator_Toe_Big_3_L, Operator_Toe_Big_IK_L, - Operator_Toe_Ind_Ctrl_L, + Operator_Toe_Ind_Ctrl_L, Operator_Toe_Ind_2_L, Operator_Toe_Ind_3_L, Operator_Toe_Ind_4_L, @@ -1784,9 +1784,9 @@ def register(): for c in alignment_classes: bpy.utils.register_class(c) for c in schemes_classes: - bpy.utils.register_class(c) + bpy.utils.register_class(c) for c in rig_updater_classes: - bpy.utils.register_class(c) + bpy.utils.register_class(c) for c in snapping_classes: bpy.utils.register_class(c) for c in body_picker_biped_classes: @@ -1817,9 +1817,9 @@ def unregister(): for c in alignment_classes: bpy.utils.unregister_class(c) for c in schemes_classes: - bpy.utils.unregister_class(c) + bpy.utils.unregister_class(c) for c in rig_updater_classes: - bpy.utils.unregister_class(c) + bpy.utils.unregister_class(c) for c in snapping_classes: bpy.utils.unregister_class(c) for c in body_picker_biped_classes: diff --git a/blenrig_biped/ops_biped_layers_scheme.py b/blenrig_biped/ops_biped_layers_scheme.py index d07b287..88407f1 100644 --- a/blenrig_biped/ops_biped_layers_scheme.py +++ b/blenrig_biped/ops_biped_layers_scheme.py @@ -3,12 +3,12 @@ import bpy ##################### Layers Schemes Operators ############################ ######## Compact Scheme ######## -class Operator_BlenRig_Layers_Scheme_Compact(bpy.types.Operator): - - bl_idname = "blenrig5.layers_scheme_compact" - bl_label = "BlenRig Compact Layers Scheme" - bl_description = "Organize layers in a compact scheme relying on bone auto-hiding " - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} +class Operator_BlenRig_Layers_Scheme_Compact(bpy.types.Operator): + + bl_idname = "blenrig5.layers_scheme_compact" + bl_label = "BlenRig Compact Layers Scheme" + bl_description = "Organize layers in a compact scheme relying on bone auto-hiding " + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} @classmethod def poll(cls, context): @@ -17,8 +17,8 @@ class Operator_BlenRig_Layers_Scheme_Compact(bpy.types.Operator): else: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') for prop in bpy.context.object.data.items(): - if prop[0] == 'rig_type' and prop[1] == 'Biped': - return True + if prop[0] == 'rig_type' and prop[1] == 'Biped': + return True def set_layers(self, context, N, L): @@ -26,7 +26,7 @@ class Operator_BlenRig_Layers_Scheme_Compact(bpy.types.Operator): for b in pbones: layers = L - if b.name == N: + if b.name == N: b.bone.layers = [(x in layers) for x in range(32)] def compact_layers(self, context): @@ -2251,14 +2251,14 @@ class Operator_BlenRig_Layers_Scheme_Compact(bpy.types.Operator): self.set_layers(context, 'eyeglasses_mstr', [17, 25]) self.set_layers(context, 'accessory_mstr', [26]) self.set_layers(context, 'accessory', [17, 25]) - + def set_data_props(self, context): scene = bpy.context.view_layer bpy.context.active_object.data['bone_auto_hide'] = 1.0 bpy.context.active_object.data['custom_layers'] = 0.0 bpy.context.active_object.data['layers_count'] = 10 bpy.context.active_object.data['layer_list'] = 'BODY, BODY 2, FINGERS - TOES, FACIAL 1, FACIAL 2, FACIAL 3, TOON 1, TOON 2, SCALE, EXTRAS, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, OPTIONALS, PROTECTED, MECH, DEFORMATION, ACTIONS, BONE-ROLLS, SNAPPING, REPROPORTION' - scene.update() + scene.update() def update_scene(self, context): current = bpy.context.scene.frame_current @@ -2266,19 +2266,19 @@ class Operator_BlenRig_Layers_Scheme_Compact(bpy.types.Operator): bpy.context.scene.frame_set(current, subframe=0) def execute(self, context): - self.compact_layers(context) - self.set_data_props(context) - self.update_scene(context) - + self.compact_layers(context) + self.set_data_props(context) + self.update_scene(context) + return {'FINISHED'} -######## Expanded Scheme ######## -class Operator_BlenRig_Layers_Scheme_Expanded(bpy.types.Operator): - - bl_idname = "blenrig5.layers_scheme_expanded" - bl_label = "BlenRig Expanded Layers Scheme" - bl_description = "Organize layers by body parts and FK / IK " - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} +######## Expanded Scheme ######## +class Operator_BlenRig_Layers_Scheme_Expanded(bpy.types.Operator): + + bl_idname = "blenrig5.layers_scheme_expanded" + bl_label = "BlenRig Expanded Layers Scheme" + bl_description = "Organize layers by body parts and FK / IK " + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} @classmethod def poll(cls, context): @@ -2287,8 +2287,8 @@ class Operator_BlenRig_Layers_Scheme_Expanded(bpy.types.Operator): else: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') for prop in bpy.context.object.data.items(): - if prop[0] == 'rig_type' and prop[1] == 'Biped': - return True + if prop[0] == 'rig_type' and prop[1] == 'Biped': + return True def set_layers(self, context, N, L): @@ -2296,7 +2296,7 @@ class Operator_BlenRig_Layers_Scheme_Expanded(bpy.types.Operator): for b in pbones: layers = L - if b.name == N: + if b.name == N: b.bone.layers = [(x in layers) for x in range(32)] def expanded_layers(self, context): @@ -4521,14 +4521,18 @@ class Operator_BlenRig_Layers_Scheme_Expanded(bpy.types.Operator): self.set_layers(context, 'eyeglasses_mstr', [11, 25]) self.set_layers(context, 'accessory_mstr', [26]) self.set_layers(context, 'accessory', [11, 25]) - + def set_data_props(self, context): +<<<<<<< HEAD scene = bpy.context.view_layer +======= + scene = bpy.context.scene +>>>>>>> Remove trailing whitespace bpy.context.active_object.data['bone_auto_hide'] = 0.0 bpy.context.active_object.data['custom_layers'] = 1.0 bpy.context.active_object.data['layers_count'] = 24 bpy.context.active_object.data['layer_list'] = 'FACIAL 1, FACIAL 2, FACIAL 3, ARM_R FK, NECK FK, ARM_L FK, ARM_R IK, NECK IK, ARM_L IK, FINGERS, TORSO FK, FINGERS IK, LEG_R FK, TORSO IK, LEG_L FK, LEG_R IK, TORSO INV, LEG_L IK, TOES, EXTRAS, TOES FK, TOON 1, TOON 2, SCALE, OPTIONALS, PROTECTED, MECH, DEFORMATION, ACTIONS, BONE-ROLLS, SNAPPING, REPROPORTION' - scene.update() + scene.update() def update_scene(self, context): current = bpy.context.scene.frame_current @@ -4541,9 +4545,9 @@ class Operator_BlenRig_Layers_Scheme_Expanded(bpy.types.Operator): b.bone.hide = False def execute(self, context): - self.expanded_layers(context) - self.set_data_props(context) - self.update_scene(context) + self.expanded_layers(context) + self.set_data_props(context) + self.update_scene(context) self.unhide_bones(context) - - return {'FINISHED'} \ No newline at end of file + + return {'FINISHED'} \ No newline at end of file diff --git a/blenrig_biped/updates/update_1001.py b/blenrig_biped/updates/update_1001.py index 7647765..e2b7a74 100755 --- a/blenrig_biped/updates/update_1001.py +++ b/blenrig_biped/updates/update_1001.py @@ -14,115 +14,115 @@ def biped_update_1001(self, context): for C in b.constraints: if C.name == 'Transformation_torso_ik_ctrl': b.constraints.remove(C) - + if b.name == 'spine_2_ik': for C in b.constraints: - b.constraints.remove(C) + b.constraints.remove(C) cnst = pbones['spine_2_ik'].constraints.new('COPY_ROTATION') - cnst.name = 'Copy Rotation' - cnst.influence = 1.0 + cnst.name = 'Copy Rotation' + cnst.influence = 1.0 cnst.mute = False - cnst.invert_x = False - cnst.invert_y = False - cnst.invert_z = False - cnst.owner_space = 'WORLD' - cnst.subtarget = 'spine_2_ik_ctrl' - cnst.target = bpy.context.active_object - cnst.target_space = 'WORLD' - cnst.use_offset = False - cnst.use_x = True - cnst.use_y = True + cnst.invert_x = False + cnst.invert_y = False + cnst.invert_z = False + cnst.owner_space = 'WORLD' + cnst.subtarget = 'spine_2_ik_ctrl' + cnst.target = bpy.context.active_object + cnst.target_space = 'WORLD' + cnst.use_offset = False + cnst.use_x = True + cnst.use_y = True cnst.use_z = True cnst = pbones['spine_2_ik'].constraints.new('TRANSFORM') - cnst.name = 'Transformation_torso_ik_ctrl' - cnst.influence = 1.0 + cnst.name = 'Transformation_torso_ik_ctrl' + cnst.influence = 1.0 cnst.mute = False - cnst.from_max_x = 0.0 - cnst.from_max_x_rot = 0.0 - cnst.from_max_x_scale = 0.0 - cnst.from_max_y = 0.0 - cnst.from_max_y_rot = 0.01745329238474369 - cnst.from_max_y_scale = 0.0 - cnst.from_max_z = 0.0 - cnst.from_max_z_rot = 0.0 - cnst.from_max_z_scale = 0.0 - cnst.from_min_x = 0.0 - cnst.from_min_x_rot = 0.0 - cnst.from_min_x_scale = 0.0 - cnst.from_min_y = 0.0 - cnst.from_min_y_rot = 0.0 - cnst.from_min_y_scale = 0.0 - cnst.from_min_z = 0.0 - cnst.from_min_z_rot = 0.0 - cnst.from_min_z_scale = 0.0 - cnst.map_to = 'ROTATION' - cnst.map_to_x_from = 'X' - cnst.name = 'Transformation_torso_ik_ctrl' - cnst.map_to_y_from = 'Y' - cnst.map_to_z_from = 'Z' - cnst.map_from = 'ROTATION' - cnst.owner_space = 'LOCAL' - cnst.subtarget = 'torso_ik_ctrl' - cnst.target = bpy.context.active_object - cnst.target_space = 'LOCAL' - cnst.to_max_x = 0.0 - cnst.to_max_x_rot = 0.0 - cnst.to_max_x_scale = 0.0 - cnst.to_max_y = 0.0 - cnst.to_max_y_rot = 0.008726646192371845 - cnst.to_max_y_scale = 0.0 - cnst.to_max_z = 0.0 - cnst.to_max_z_rot = 0.0 - cnst.to_max_z_scale = 0.0 - cnst.to_min_x = 0.0 - cnst.to_min_x_rot = 0.0 - cnst.to_min_x_scale = 0.0 - cnst.to_min_y = 0.0 - cnst.to_min_y_rot = 0.0 - cnst.to_min_y_scale = 0.0 - cnst.to_min_z = 0.0 - cnst.to_min_z_rot = 0.0 - cnst.to_min_z_scale = 0.0 + cnst.from_max_x = 0.0 + cnst.from_max_x_rot = 0.0 + cnst.from_max_x_scale = 0.0 + cnst.from_max_y = 0.0 + cnst.from_max_y_rot = 0.01745329238474369 + cnst.from_max_y_scale = 0.0 + cnst.from_max_z = 0.0 + cnst.from_max_z_rot = 0.0 + cnst.from_max_z_scale = 0.0 + cnst.from_min_x = 0.0 + cnst.from_min_x_rot = 0.0 + cnst.from_min_x_scale = 0.0 + cnst.from_min_y = 0.0 + cnst.from_min_y_rot = 0.0 + cnst.from_min_y_scale = 0.0 + cnst.from_min_z = 0.0 + cnst.from_min_z_rot = 0.0 + cnst.from_min_z_scale = 0.0 + cnst.map_to = 'ROTATION' + cnst.map_to_x_from = 'X' + cnst.name = 'Transformation_torso_ik_ctrl' + cnst.map_to_y_from = 'Y' + cnst.map_to_z_from = 'Z' + cnst.map_from = 'ROTATION' + cnst.owner_space = 'LOCAL' + cnst.subtarget = 'torso_ik_ctrl' + cnst.target = bpy.context.active_object + cnst.target_space = 'LOCAL' + cnst.to_max_x = 0.0 + cnst.to_max_x_rot = 0.0 + cnst.to_max_x_scale = 0.0 + cnst.to_max_y = 0.0 + cnst.to_max_y_rot = 0.008726646192371845 + cnst.to_max_y_scale = 0.0 + cnst.to_max_z = 0.0 + cnst.to_max_z_rot = 0.0 + cnst.to_max_z_scale = 0.0 + cnst.to_min_x = 0.0 + cnst.to_min_x_rot = 0.0 + cnst.to_min_x_scale = 0.0 + cnst.to_min_y = 0.0 + cnst.to_min_y_rot = 0.0 + cnst.to_min_y_scale = 0.0 + cnst.to_min_z = 0.0 + cnst.to_min_z_rot = 0.0 + cnst.to_min_z_scale = 0.0 cnst.use_motion_extrapolate = True cnst = pbones['spine_2_ik'].constraints.new('COPY_SCALE') - cnst.name = 'Copy Scale' - cnst.influence = 1.0 + cnst.name = 'Copy Scale' + cnst.influence = 1.0 cnst.mute = False - cnst.owner_space = 'POSE' - cnst.subtarget = 'master_torso_pivot' - cnst.target = bpy.context.active_object - cnst.target_space = 'POSE' - cnst.use_offset = True - cnst.use_x = True - cnst.use_y = True + cnst.owner_space = 'POSE' + cnst.subtarget = 'master_torso_pivot' + cnst.target = bpy.context.active_object + cnst.target_space = 'POSE' + cnst.use_offset = True + cnst.use_x = True + cnst.use_y = True cnst.use_z = True cnst = pbones['spine_2_ik'].constraints.new('DAMPED_TRACK') - cnst.name = 'Damped Track' - cnst.influence = 1.0 + cnst.name = 'Damped Track' + cnst.influence = 1.0 cnst.mute = False - cnst.owner_space = 'WORLD' - cnst.subtarget = 'spine_3_inv_ik' - cnst.target = bpy.context.active_object - cnst.target_space = 'WORLD' - cnst.head_tail = 1.0 + cnst.owner_space = 'WORLD' + cnst.subtarget = 'spine_3_inv_ik' + cnst.target = bpy.context.active_object + cnst.target_space = 'WORLD' + cnst.head_tail = 1.0 cnst.track_axis = 'TRACK_Y' cnst = pbones['spine_2_ik'].constraints.new('STRETCH_TO') - cnst.name = 'Stretch To_REPROP' - cnst.influence = 1.0 + cnst.name = 'Stretch To_REPROP' + cnst.influence = 1.0 cnst.mute = True - cnst.owner_space = 'WORLD' - cnst.subtarget = 'spine_3_ik_ctrl' - cnst.target = bpy.context.active_object - cnst.target_space = 'WORLD' - cnst.head_tail = 0.0 - cnst.keep_axis = 'PLANE_X' - cnst.rest_length = 0.1161453053355217 - cnst.volume = 'NO_VOLUME' - cnst.bulge = 1.0 - cnst.bulge_max = 1.0 - cnst.bulge_min = 1.0 - cnst.bulge_smooth = 0.0 - cnst.use_bulge_max = False + cnst.owner_space = 'WORLD' + cnst.subtarget = 'spine_3_ik_ctrl' + cnst.target = bpy.context.active_object + cnst.target_space = 'WORLD' + cnst.head_tail = 0.0 + cnst.keep_axis = 'PLANE_X' + cnst.rest_length = 0.1161453053355217 + cnst.volume = 'NO_VOLUME' + cnst.bulge = 1.0 + cnst.bulge_max = 1.0 + cnst.bulge_min = 1.0 + cnst.bulge_smooth = 0.0 + cnst.use_bulge_max = False cnst.use_bulge_min = False - arm_data['rig_version'] = 1.001 - self.report({'INFO'}, 'BlenRig Armature updated to 1.001') \ No newline at end of file + arm_data['rig_version'] = 1.001 + self.report({'INFO'}, 'BlenRig Armature updated to 1.001') \ No newline at end of file diff --git a/blenrig_biped/updates/update_1005.py b/blenrig_biped/updates/update_1005.py index 00c9d9b..111ab61 100755 --- a/blenrig_biped/updates/update_1005.py +++ b/blenrig_biped/updates/update_1005.py @@ -4,7 +4,7 @@ import bpy #### Drivers update #### -def biped_update_1005_drivers(self, context): +def biped_update_1005_drivers(self, context): arm = bpy.context.active_object arm_data = arm.data @@ -15,10 +15,10 @@ def biped_update_1005_drivers(self, context): def add_drivers(d_data_path, d_array_index, array_check, d_extrapolation, d_hide, d_lock, d_mute, d_expression, d_show_debug_info, d_type): driver_data_path[:] = [] driver_array_index[:] = [] - if array_check == 'no_array': - fcurve = arm.driver_add(d_data_path) - if array_check == 'array': - fcurve = arm.driver_add(d_data_path, d_array_index) + if array_check == 'no_array': + fcurve = arm.driver_add(d_data_path) + if array_check == 'array': + fcurve = arm.driver_add(d_data_path, d_array_index) fcurve.extrapolation = d_extrapolation fcurve.hide = d_hide fcurve.lock = d_lock @@ -31,30 +31,30 @@ def biped_update_1005_drivers(self, context): driver_data_path.append(fcurve.data_path) driver_array_index.append(fcurve.array_index) - # Generic Variable add function + # Generic Variable add function def add_vars(v_name, v_type, t_id_type, t_id, t_bone_target, t_data_path, t_transform_space, t_transform_type): - for d in arm.animation_data.drivers: + for d in arm.animation_data.drivers: if d.data_path == driver_data_path[0]: if d.array_index == driver_array_index[0]: var = d.driver.variables.new() var.name = v_name var.type = v_type target = var.targets[0] - target.id_type = t_id_type + target.id_type = t_id_type if 'Armature' in t_id: target.id = arm_data if 'Object' in t_id: - target.id = arm + target.id = arm target.bone_target = t_bone_target target.data_path = t_data_path target.transform_space = t_transform_space - target.transform_type = t_transform_type + target.transform_type = t_transform_type - # Generic Modifier add function + # Generic Modifier add function def add_generator(m_type, m_blend_in, m_blend_out, m_frame_start, m_frame_end, m_mode, m_mute, m_poly_order, m_use_additive, m_use_influence, m_use_restricted_range, m_co_0, m_co_1): - for d in arm.animation_data.drivers: + for d in arm.animation_data.drivers: if d.data_path == driver_data_path[0]: - if d.array_index == driver_array_index[0]: + if d.array_index == driver_array_index[0]: mod = d.modifiers.new(m_type) mod.blend_in = m_blend_in mod.blend_out = m_blend_out @@ -67,14 +67,14 @@ def biped_update_1005_drivers(self, context): mod.use_influence = m_use_influence mod.use_restricted_range = m_use_restricted_range mod.coefficients[0] = m_co_0 - mod.coefficients[1] = m_co_1 + mod.coefficients[1] = m_co_1 # Check for existing drivers on targets - for d in arm.animation_data.drivers: + for d in arm.animation_data.drivers: if d.data_path == 'pose.bones["hand_ik_shoulder_L"].constraints["Copy Location"].influence': arm.driver_remove(d.data_path) if d.data_path == 'pose.bones["hand_ik_shoulder_R"].constraints["Copy Location"].influence': - arm.driver_remove(d.data_path) + arm.driver_remove(d.data_path) # Add drivers add_drivers('pose.bones["hand_ik_shoulder_L"].constraints["Copy Location"].influence', 0, 'no_array', 'CONSTANT', False, False, False, '', False, 'MAX') add_vars('var_1', 'SINGLE_PROP', 'OBJECT', '', 'torso ik', 'pose.bones["properties_arm_L"].["ik_arm_L"]', 'WORLD_SPACE', 'LOC_X') @@ -83,19 +83,19 @@ def biped_update_1005_drivers(self, context): add_vars('var_1', 'SINGLE_PROP', 'OBJECT', '', 'torso ik', 'pose.bones["properties_arm_R"].["ik_arm_R"]', 'WORLD_SPACE', 'LOC_X') add_generator('GENERATOR', 0.0, 0.0, 0.0, 0.0, 'POLYNOMIAL', False, 1, False, False, False, 1.0, -1.0) -#### Remove nnecessary locks #### +#### Remove nnecessary locks #### def biped_update_1005_locks(self, context): arm = bpy.context.active_object - arm_data = arm.data + arm_data = arm.data for b in arm.pose.bones: bone_list = ['forearm_fk_L', 'forearm_fk_R', 'shin_fk_L', 'shin_fk_R', 'lattice_eye_L', 'lattice_eye_R'] if b.name in bone_list: - b.lock_rotation[:] = (False, False, False) - b.lock_location[:] = (False, False, False) - b.lock_scale[:] = (False, False, False) + b.lock_rotation[:] = (False, False, False) + b.lock_location[:] = (False, False, False) + b.lock_scale[:] = (False, False, False) -#### Move bones to layers #### +#### Move bones to layers #### def biped_update_1005_bone_layers(self, context): # Generic layer assigner @@ -103,25 +103,25 @@ def biped_update_1005_bone_layers(self, context): pbones = bpy.context.active_object.pose.bones for b in pbones: layers = L - if b.name == N: + if b.name == N: b.bone.layers = [(x in layers) for x in range(32)] - - # Changes - set_layers('lattice_eye_R', [7, 25, 26]) - set_layers('lattice_eye_L', [7, 25, 26]) - set_layers('mouth_mstr_low', [5, 25, 28]) - set_layers('mouth_mstr_up', [5, 25, 28]) -#### Bone Groups #### - + # Changes + set_layers('lattice_eye_R', [7, 25, 26]) + set_layers('lattice_eye_L', [7, 25, 26]) + set_layers('mouth_mstr_low', [5, 25, 28]) + set_layers('mouth_mstr_up', [5, 25, 28]) + +#### Bone Groups #### + def biped_update_1005_bone_groups(self, context): # New Groups - bgroups = bpy.context.object.pose.bone_groups + bgroups = bpy.context.object.pose.bone_groups new_group = bgroups.new('B-BONE_MECH') new_group.color_set = 'THEME09' - # Bone Asignment + # Bone Asignment arm = bpy.context.active_object pbones = arm.pose.bones @@ -138,14 +138,14 @@ def biped_update_1005_bone_groups(self, context): if g.name == 'TOON_R': TOON_R_index.append(i) if g.name == 'B-BONE_MECH': - BBONE_MECH_index.append(i) + BBONE_MECH_index.append(i) #print (TOON_L_index, TOON_R_index, BBONE_MECH_index) # Assign Groups for b in pbones: TOON_L_bones = ['lattice_eye_L'] - TOON_R_bones = ['lattice_eye_R'] + TOON_R_bones = ['lattice_eye_R'] BBONE_MECH_bones = ['spine_1_def_bbone', 'brow_low_1_bezier_out_L', 'brow_low_1_bbone_out_L', 'brow_up_1_bezier_out_L', 'brow_up_1_bbone_out_L', 'brow_low_1_bezier_out_R', 'brow_low_1_bbone_out_R', 'brow_up_1_bezier_out_R', 'brow_up_1_bbone_out_R', 'brow_low_3_bezier_out_L', 'brow_low_3_bbone_out_L', 'brow_up_3_bezier_out_L', 'brow_up_3_bbone_out_L', 'brow_1_bezier_in_mstr_L', 'brow_1_bezier_in_L', 'brow_1_bbone_in_L', 'brow_3_bezier_out_mstr_L', 'brow_3_bezier_out_L', 'brow_2_bezier_out_mstr_L', 'brow_2_bezier_out_L', 'brow_low_2_bezier_out_L', 'brow_low_2_bbone_out_L', 'brow_up_2_bezier_out_L', 'brow_up_2_bbone_out_L', 'brow_2_bezier_in_mstr_L', 'brow_2_bezier_in_L', 'brow_2_bbone_in_L', 'brow_2_bbone_out_L', 'brow_low_4_bezier_out_L', 'brow_low_4_bbone_out_L', 'brow_up_4_bezier_out_L', 'brow_up_4_bbone_out_L', 'brow_3_bezier_in_L', 'brow_3_bbone_in_L', 'brow_3_bbone_out_L', 'lip_low_1_bezier_in_mstr_R', 'lip_low_1_bezier_in_R', 'lip_low_1_bbone_in_R', 'lip_low_2_bezier_in_mstr_L', 'lip_low_2_bezier_in_L', 'lip_low_2_bbone_in_L', 'lip_low_1_bezier_out_mstr_L', 'lip_low_1_bezier_out_L', 'lip_low_3_bezier_in_mstr_L', 'lip_low_3_bezier_in_L', 'lip_low_3_bbone_in_L', 'lip_low_2_bezier_out_mstr_L', 'lip_low_2_bezier_out_L', 'lip_low_4_bezier_in_mstr_L', 'lip_low_4_bezier_in_L', 'lip_low_4_bbone_in_L', 'lip_low_2_bbone_out_L', 'lip_up_1_bezier_in_mstr_R', 'lip_up_1_bezier_in_R', 'lip_up_1_bbone_in_R', 'lip_up_2_bezier_in_mstr_L', 'lip_up_2_bezier_in_L', 'lip_up_2_bbone_in_L', 'lip_up_1_bezier_out_mstr_L', 'lip_up_3_bezier_in_mstr_L', 'lip_up_3_bezier_in_L', 'lip_up_3_bbone_in_L', 'lip_up_1_bezier_out_L', 'lip_up_4_bezier_in_mstr_L', 'lip_up_4_bezier_in_L', 'lip_up_4_bbone_in_L', 'lip_up_2_bezier_out_mstr_L', 'lip_up_2_bezier_out_L', 'lip_low_3_bezier_out_mstr_L', 'lip_low_3_bezier_out_L', 'lip_low_3_bbone_out_L', 'lip_low_4_bbone_out_L', 'lip_up_3_bezier_out_mstr_L', 'lip_up_3_bezier_out_L', 'brow_low_3_bezier_out_R', 'brow_low_3_bbone_out_R', 'brow_up_3_bezier_out_R', 'brow_up_3_bbone_out_R', 'brow_1_bezier_in_mstr_R', 'brow_1_bezier_in_R', 'brow_1_bbone_in_R', 'brow_3_bezier_out_mstr_R', 'brow_3_bezier_out_R', 'brow_2_bezier_out_mstr_R', 'brow_2_bezier_out_R', 'brow_low_2_bezier_out_R', 'brow_low_2_bbone_out_R', 'brow_up_2_bezier_out_R', 'brow_up_2_bbone_out_R', 'brow_2_bezier_in_mstr_R', 'brow_2_bezier_in_R', 'brow_2_bbone_in_R', 'brow_2_bbone_out_R', 'brow_low_4_bezier_out_R', 'brow_low_4_bbone_out_R', 'brow_up_4_bezier_out_R', 'brow_up_4_bbone_out_R', 'brow_3_bezier_in_R', 'brow_3_bbone_in_R', 'brow_3_bbone_out_R', 'lip_low_1_bezier_in_mstr_L', 'lip_low_2_bezier_in_mstr_R', 'lip_low_2_bezier_in_R', 'lip_low_2_bbone_in_R', 'lip_low_1_bezier_out_mstr_R', 'lip_low_1_bezier_out_R', 'lip_low_3_bezier_in_mstr_R', 'lip_low_3_bezier_in_R', 'lip_low_3_bbone_in_R', 'lip_low_1_bezier_in_L', 'lip_low_1_bbone_in_L', 'lip_low_1_bbone_out_L', 'lip_low_1_bbone_out_R', 'lip_low_2_bezier_out_mstr_R', 'lip_low_2_bezier_out_R', 'lip_low_4_bezier_in_mstr_R', 'lip_low_4_bezier_in_R', 'lip_low_4_bbone_in_R', 'lip_low_2_bbone_out_R', 'lip_up_1_bezier_out_mstr_R', 'lip_up_1_bezier_out_R', 'lip_up_3_bezier_in_mstr_R', 'lip_up_3_bezier_in_R', 'lip_up_3_bbone_in_R', 'lip_up_2_bezier_in_mstr_R', 'lip_up_2_bezier_in_R', 'lip_up_2_bbone_in_R', 'lip_up_1_bezier_in_mstr_L', 'lip_up_1_bezier_in_L', 'lip_up_1_bbone_in_L', 'lip_up_2_bezier_out_mstr_R', 'lip_up_2_bezier_out_R', 'lip_up_4_bezier_in_mstr_R', 'lip_up_4_bezier_in_R', 'lip_up_4_bbone_in_R', 'lip_low_3_bezier_out_mstr_R', 'lip_low_3_bezier_out_R', 'lip_low_3_bbone_out_R', 'lip_low_4_bbone_out_R', 'lip_up_3_bezier_out_mstr_R', 'lip_up_3_bezier_out_R', 'lip_up_1_bbone_out_L', 'lip_up_2_bbone_out_L', 'lip_up_3_bbone_out_L', 'lip_up_4_bbone_out_L', 'lip_up_1_bbone_out_R', 'lip_up_2_bbone_out_R', 'lip_up_3_bbone_out_R', 'lip_up_4_bbone_out_R', 'pelvis_def_bbone', 'forearm_twist_bezier_out_mstr_R', 'forearm_twist_bezier_out_R', 'arm_def_bezier_in_R', 'arm_def_bbone_in_R', 'forearm_def_bezier_out_mstr_R', 'forearm_def_bezier_out_R', 'forearm_def_bezier_out_rot_R', 'forearm_twist_bezier_in_mstr_R', 'forearm_twist_bezier_in_R', 'forearm_twist_bbone_in_R', 'forearm_twist_bbone_out_R', 'forearm_no_twist_bezier_in_mstr_R', 'forearm_no_twist_bezier_in_R', 'forearm_no_twist_bbone_in_R', 'arm_def_bezier_out_mstr_R', 'arm_def_bezier_out_R', 'arm_twist_bezier_in_mstr_R', 'arm_twist_bezier_in_R', 'arm_def_bbone_out_R', 'arm_twist_bbone_in_R', 'arm_twist_curved_R', 'arm_twist_bezier_out_mstr_R', 'arm_twist_bezier_out_R', 'arm_twist_bbone_out_rot_R', 'arm_twist_bbone_out_R', 'forearm_def_curved_R', 'forearm_def_bezier_in_mstr_R', 'forearm_def_bezier_in_R', 'forearm_def_bbone_in_R', 'forearm_def_bbone_out_R', 'forearm_def_no_twist_bbone_in_R', 'forearm_def_bbone_out_no_twist_R', 'forearm_twist_bezier_out_mstr_L', 'forearm_twist_bezier_out_L', 'arm_twist_bezier_in_mstr_L', 'arm_twist_bezier_in_L', 'arm_def_bezier_out_mstr_L', 'arm_def_bezier_out_L', 'forearm_def_curved_L', 'forearm_def_bezier_in_mstr_L', 'forearm_def_bezier_in_L', 'forearm_def_bbone_in_L', 'forearm_def_no_twist_bbone_in_L', 'forearm_def_bezier_out_mstr_L', 'forearm_def_bezier_out_L', 'forearm_def_bezier_out_rot_L', 'forearm_twist_bezier_in_mstr_L', 'forearm_twist_bezier_in_L', 'forearm_twist_bbone_in_L', 'forearm_twist_bbone_out_L', 'forearm_no_twist_bezier_in_mstr_L', 'forearm_no_twist_bezier_in_L', 'forearm_no_twist_bbone_in_L', 'forearm_def_bbone_out_L', 'forearm_def_bbone_out_no_twist_L', 'arm_twist_bbone_in_L', 'arm_twist_curved_L', 'arm_twist_bezier_out_mstr_L', 'arm_twist_bezier_out_L', 'arm_twist_bbone_out_rot_L', 'arm_twist_bbone_out_L', 'arm_def_bezier_in_L', 'arm_def_bbone_in_L', 'arm_def_bbone_out_L', 'shin_twist_bezier_out_mstr_R', 'thigh_def_bezier_in_R', 'thigh_def_bbone_in_R', 'thigh_def_bezier_out_mstr_R', 'thigh_def_bezier_out_R', 'thigh_twist_bezier_in_mstr_R', 'thigh_twist_bezier_in_R', 'thigh_twist_bbone_in_R', 'thigh_def_bbone_out_R', 'shin_twist_bezier_out_R', 'shin_def_curved_R', 'shin_def_bezier_in_mstr_R', 'shin_def_bezier_in_R', 'shin_def_bbone_in_R', 'shin_def_no_twist_bbone_in_R', 'shin_def_bezier_out_mstr_R', 'shin_def_bezier_out_R', 'shin_def_bezier_out_rot_R', 'shin_twist_bezier_in_mstr_R', 'shin_twist_bezier_in_R', 'shin_twist_bbone_in_R', 'shin_twist_bbone_out_R', 'shin_no_twist_bezier_in_mstr_R', 'shin_no_twist_bezier_in_R', 'shin_no_twist_bbone_in_R', 'shin_def_bbone_out_R', 'shin_def_no_twist_bbone_out_R', 'thigh_twist_curved_R', 'thigh_twist_bezier_out_mstr_R', 'thigh_twist_bezier_out_R', 'thigh_twist_bbone_out_rot_R', 'thigh_twist_bbone_out_R', 'shin_twist_bezier_out_mstr_L', 'thigh_def_bezier_in_L', 'thigh_def_bbone_in_L', 'thigh_def_bezier_out_mstr_L', 'thigh_def_bezier_out_L', 'thigh_twist_bezier_in_mstr_L', 'thigh_twist_bezier_in_L', 'thigh_twist_bbone_in_L', 'thigh_def_bbone_out_L', 'shin_twist_bezier_out_L', 'shin_def_curved_L', 'shin_def_bezier_in_mstr_L', 'shin_def_bezier_in_L', 'shin_def_bbone_in_L', 'shin_def_no_twist_bbone_in_L', 'shin_def_bezier_out_mstr_L', 'shin_def_bezier_out_L', 'shin_def_bezier_out_rot_L', 'shin_twist_bezier_in_mstr_L', 'shin_twist_bezier_in_L', 'shin_twist_bbone_in_L', 'shin_twist_bbone_out_L', 'shin_no_twist_bezier_in_mstr_L', 'shin_no_twist_bezier_in_L', 'shin_no_twist_bbone_in_L', 'shin_def_bbone_out_L', 'shin_def_no_twist_bbone_out_L', 'thigh_twist_curved_L', 'thigh_twist_bezier_out_mstr_L', 'thigh_twist_bezier_out_L', 'thigh_twist_bbone_out_rot_L', 'thigh_twist_bbone_out_L', 'eyelid_up_vert_def_2_bbone_out_L', 'eyelid_up_3_bezier_in_mstr_L', 'eyelid_up_3_bezier_in_L', 'eyelid_up_3_bbone_in_L', 'eyelid_up_1_bezier_out_mstr_L', 'eyelid_up_1_bezier_out_L', 'eyelid_up_vert_def_1_bbone_out_L', 'eyelid_up_2_bezier_out_mstr_L', 'eyelid_up_2_bezier_out_L', 'eyelid_up_4_bezier_in_mstr_L', 'eyelid_up_4_bezier_in_L', 'eyelid_up_4_bbone_in_L', 'eyelid_up_vert_def_3_bbone_out_L', 'eyelid_out_vert_def_bbone_out_L', 'eyelid_up_3_bezier_out_mstr_L', 'eyelid_up_3_bezier_out_L', 'eyelid_up_3_bbone_out_L', 'eyelid_low_vert_def_2_bbone_out_L', 'eyelid_low_1_bezier_out_mstr_L', 'eyelid_low_1_bezier_out_L', 'eyelid_low_3_bezier_in_mstr_L', 'eyelid_low_3_bezier_in_L', 'eyelid_low_3_bbone_in_L', 'eyelid_low_vert_def_1_bbone_out_L', 'eyelid_low_4_bezier_in_mstr_L', 'eyelid_low_4_bezier_in_L', 'eyelid_low_4_bbone_in_L', 'eyelid_low_2_bezier_out_mstr_L', 'eyelid_low_2_bezier_out_L', 'eyelid_low_vert_def_3_bbone_out_L', 'eyelid_low_3_bezier_out_mstr_L', 'eyelid_low_3_bezier_out_L', 'eyelid_low_3_bbone_out_L', 'eyelid_in_vert_def_bbone_out_L', 'eyelid_low_2_bezier_in_mstr_L', 'eyelid_low_2_bezier_in_L', 'eyelid_low_2_bbone_in_L', 'eyelid_low_2_bbone_out_L', 'eyelid_low_1_L_bezier_in_L', 'eyelid_low_1_L_bbone_in_L', 'eyelid_low_1_bbone_out_L', 'eyelid_up_2_bezier_in_mstr_L', 'eyelid_up_2_bezier_in_L', 'eyelid_up_2_bbone_in_L', 'eyelid_up_2_bbone_out_L', 'eyelid_up_1_L_bezier_in_L', 'eyelid_up_1_L_bbone_in_L', 'eyelid_up_1_bbone_out_L', 'eyelid_low_vert_def_2_bbone_out_R', 'eyelid_up_vert_def_2_bbone_out_R', 'eyelid_low_1_bezier_out_mstr_R', 'eyelid_low_1_bezier_out_R', 'eyelid_low_3_bezier_in_mstr_R', 'eyelid_low_3_bezier_in_R', 'eyelid_low_3_bbone_in_R', 'eyelid_low_vert_def_1_bbone_out_R', 'eyelid_up_3_bezier_in_mstr_R', 'eyelid_up_3_bezier_in_R', 'eyelid_up_3_bbone_in_R', 'eyelid_up_1_bezier_out_mstr_R', 'eyelid_up_1_bezier_out_R', 'eyelid_up_vert_def_1_bbone_out_R', 'eyelid_low_4_bezier_in_mstr_R', 'eyelid_low_4_bezier_in_R', 'eyelid_low_4_bbone_in_R', 'eyelid_low_2_bezier_out_mstr_R', 'eyelid_low_2_bezier_out_R', 'eyelid_low_vert_def_3_bbone_out_R', 'eyelid_up_2_bezier_out_mstr_R', 'eyelid_up_2_bezier_out_R', 'eyelid_up_4_bezier_in_mstr_R', 'eyelid_up_4_bezier_in_R', 'eyelid_up_4_bbone_in_R', 'eyelid_up_vert_def_3_bbone_out_R', 'eyelid_in_vert_def_bbone_out_R', 'eyelid_low_2_bezier_in_mstr_R', 'eyelid_low_2_bezier_in_R', 'eyelid_low_2_bbone_in_R', 'eyelid_low_2_bbone_out_R', 'eyelid_low_1_L_bezier_in_R', 'eyelid_low_1_L_bbone_in_R', 'eyelid_low_1_bbone_out_R', 'eyelid_up_2_bezier_in_mstr_R', 'eyelid_up_2_bezier_in_R', 'eyelid_up_2_bbone_in_R', 'eyelid_up_2_bbone_out_R', 'eyelid_up_1_L_bezier_in_R', 'eyelid_up_1_L_bbone_in_R', 'eyelid_up_1_bbone_out_R', 'eyelid_out_vert_def_bbone_out_R', 'eyelid_low_3_bezier_out_mstr_R', 'eyelid_low_3_bezier_out_R', 'eyelid_low_3_bbone_out_R', 'eyelid_up_3_bezier_out_mstr_R', 'eyelid_up_3_bezier_out_R', 'eyelid_up_3_bbone_out_R'] if b.name in TOON_L_bones: b.bone_group_index = TOON_L_index[0] @@ -154,8 +154,8 @@ def biped_update_1005_bone_groups(self, context): if b.name in BBONE_MECH_bones: b.bone_group_index = BBONE_MECH_index[0] -#### Bone Shapes #### - +#### Bone Shapes #### + def biped_update_1005_bone_shapes(self, context): arm = bpy.context.active_object @@ -166,56 +166,56 @@ def biped_update_1005_bone_shapes(self, context): b.custom_shape = bpy.data.objects['cs_toon_eye_low_L'] b.custom_shape_scale = 5 if b.name == 'lattice_eye_R': - b.custom_shape = bpy.data.objects['cs_toon_eye_low_R'] + b.custom_shape = bpy.data.objects['cs_toon_eye_low_R'] b.custom_shape_scale = 5 if b.name == 'head_toon': b.custom_shape_scale = b.custom_shape_scale + 0.1 -#### New Bones for Lattice_eye #### - +#### New Bones for Lattice_eye #### + def biped_update_1005_new_bones(self, context): arm = bpy.context.active_object arm_data = arm.data # Generic bone creation function def add_bones (b_name, b_head, b_tail, b_bbone_in, b_bbone_out, b_bbone_segments, b_bbone_x, b_bbone_z, b_envelope_distance, b_envelope_weight, b_head_radius, b_parent, b_roll, b_tail_radius, b_use_connect, b_use_cyclic_offset, b_use_deform, b_use_envelope_multiply, b_use_inherit_rotation, b_use_inherit_scale, b_use_local_location, b_use_relative_parent, b_layers, b_align_prop, b_head_prop, b_tail_prop, b_roll_prop, b_roll_angle_prop): - bone = arm_data.edit_bones.new(b_name) - bone.head = b_head + bone = arm_data.edit_bones.new(b_name) + bone.head = b_head bone.tail = b_tail - bone.bbone_in = b_bbone_in + bone.bbone_in = b_bbone_in bone.bbone_out = b_bbone_out - bone.bbone_segments = b_bbone_segments + bone.bbone_segments = b_bbone_segments bone.bbone_x = b_bbone_x bone.bbone_z = b_bbone_z bone.envelope_distance = b_envelope_distance - bone.envelope_weight = b_envelope_weight - bone.head_radius = b_head_radius + bone.envelope_weight = b_envelope_weight + bone.head_radius = b_head_radius bone.parent = b_parent - bone.roll = b_roll + bone.roll = b_roll bone.tail_radius = b_tail_radius bone.use_connect = b_use_connect bone.use_cyclic_offset = b_use_cyclic_offset bone.use_deform = b_use_deform bone.use_envelope_multiply = b_use_envelope_multiply bone.use_inherit_rotation = b_use_inherit_rotation - bone.use_inherit_scale = b_use_inherit_scale - bone.use_local_location = b_use_local_location - bone.use_relative_parent = b_use_relative_parent + bone.use_inherit_scale = b_use_inherit_scale + bone.use_local_location = b_use_local_location + bone.use_relative_parent = b_use_relative_parent bone.layers[:] = b_layers bone['b_align'] = b_align_prop bone['b_head'] = b_head_prop bone['b_tail'] = b_tail_prop bone['b_roll'] = b_roll_prop - bone['b_roll_angle'] = b_roll_angle_prop + bone['b_roll_angle'] = b_roll_angle_prop # Add new bones - bpy.ops.object.mode_set(mode='EDIT') - + bpy.ops.object.mode_set(mode='EDIT') + for b in arm_data.edit_bones: if b.name == 'eye_mstr_str_L': bone_head = b.head bone_tail = b.tail bone_roll = b.roll - add_bones ('lattice_eye_mstr_L', bone_head, bone_tail, 1.0, 1.0, 1, 0.0001083384922822006, 0.0001083384922822006, 0.008668862283229828, 1.0, 0.008668862283229828, arm_data.edit_bones["eye_mstr_str_L"], bone_roll, 0.003488908987492323, False, True, True, False, True, True, True, True, (False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False), [''], ['eye_mstr_str_L', 'head'], ['eye_mstr_str_L', 'tail'], ['GLOBAL_POS_Z', ''], ['0.0']) + add_bones ('lattice_eye_mstr_L', bone_head, bone_tail, 1.0, 1.0, 1, 0.0001083384922822006, 0.0001083384922822006, 0.008668862283229828, 1.0, 0.008668862283229828, arm_data.edit_bones["eye_mstr_str_L"], bone_roll, 0.003488908987492323, False, True, True, False, True, True, True, True, (False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False), [''], ['eye_mstr_str_L', 'head'], ['eye_mstr_str_L', 'tail'], ['GLOBAL_POS_Z', ''], ['0.0']) for b in arm_data.edit_bones: if b.name == 'eye_mstr_str_R': @@ -224,7 +224,7 @@ def biped_update_1005_new_bones(self, context): bone_roll = b.roll add_bones ('lattice_eye_mstr_R', bone_head, bone_tail, 1.0, 1.0, 1, 0.0001083384922822006, 0.0001083384922822006, 0.008668862283229828, 1.0, 0.008668862283229828, arm_data.edit_bones["eye_mstr_str_R"], bone_roll, 0.003488908987492323, False, True, True, False, True, True, True, True, (False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, True, False, False, False, False, False), [''], ['eye_mstr_str_R', 'head'], ['eye_mstr_str_R', 'tail'], ['GLOBAL_POS_Z', ''], ['-0.0']) - bpy.ops.object.mode_set(mode='POSE') + bpy.ops.object.mode_set(mode='POSE') # Add Copy Scale Constraint @@ -266,28 +266,28 @@ def biped_update_1005_new_bones(self, context): add_consts('lattice_eye_mstr_R', 'COPY_SCALE', 'Copy Scale', 1.0, False) copy_scale('LOCAL', 'look_R', 'LOCAL', False, True, True, True) -#### Add Hooks to Lattice_eye_L and R #### - +#### Add Hooks to Lattice_eye_L and R #### + def biped_update_1005_lattices(self, context): arm = bpy.context.active_object - + blenrig_name = [] lattice_name = [] vgroup_name = [] - # Save state of layers + # Save state of layers active_layers = [] - def all_layers(): + def all_layers(): for i in range(len(bpy.context.scene.layers)): layers_status = bpy.context.scene.layers[i] if layers_status.real == 1: - active_layers.append(i) + active_layers.append(i) #Turn on all layers - bpy.context.scene.layers = [(x in [x]) for x in range(20)] + bpy.context.scene.layers = [(x in [x]) for x in range(20)] - def reset_layers(): - bpy.context.scene.layers = [(x in active_layers) for x in range(20)] + def reset_layers(): + bpy.context.scene.layers = [(x in active_layers) for x in range(20)] # Generic function for adding a Vgroup to a lattice def add_vgroups(l_name, l_vg_name): @@ -300,23 +300,23 @@ def biped_update_1005_lattices(self, context): vgroup_name.append(vg.name) lattice_name.append(ob.name) - # Generic function for assigning vertex weights to the lattice + # Generic function for assigning vertex weights to the lattice def add_vg_weights(l_vg_point, l_vg_weight): for ob in bpy.data.objects: if ob.name == lattice_name[0]: for vg in ob.vertex_groups: if vg.name == vgroup_name[0]: vg.add([l_vg_point],l_vg_weight, 'REPLACE') - - # Generic for adding a hook modifier to the lattice + + # Generic for adding a hook modifier to the lattice def add_mod(m_name, m_type, m_strength, m_subtarget, m_vgroup): for ob in bpy.data.objects: if ob.name == lattice_name[0]: mod = ob.modifiers.new(m_name, m_type) - mod.object = bpy.data.objects[blenrig_name[0]] - mod.strength = m_strength + mod.object = bpy.data.objects[blenrig_name[0]] + mod.strength = m_strength mod.subtarget = m_subtarget - mod.vertex_group = m_vgroup + mod.vertex_group = m_vgroup bpy.context.scene.objects.active = ob bpy.ops.object.mode_set(mode='EDIT') @@ -324,13 +324,13 @@ def biped_update_1005_lattices(self, context): for mod in ob.modifiers: if mod.type == 'HOOK': bpy.ops.object.hook_reset(modifier=mod.name) - bpy.ops.object.mode_set(mode='OBJECT') + bpy.ops.object.mode_set(mode='OBJECT') # Make BlenRig armature the active object again def select_blenrig(): for ob in bpy.data.objects: if ob.name == blenrig_name[0]: - bpy.context.scene.objects.active = ob + bpy.context.scene.objects.active = ob # Apply changes all_layers() @@ -379,18 +379,18 @@ def biped_update_1005_lattices(self, context): select_blenrig() reset_layers() -#### Protected layers change #### - +#### Protected layers change #### + def biped_update_1005_protected_layers(self, context): arm = bpy.context.active_object arm_data = arm.data - arm_data.layers_protected =[(x not in [25]) for x in range(32)] + arm_data.layers_protected =[(x not in [25]) for x in range(32)] + +#### Update Rig Functions local script #### -#### Update Rig Functions local script #### - def biped_update_1005_functions_script(self, context): - + # Updated script update_1005 = """import bpy @@ -403,544 +403,544 @@ def biped_update_1005_functions_script(self, context): from bpy.props import FloatProperty, IntProperty, BoolProperty -def bone_auto_hide(context): +def bone_auto_hide(context): if not bpy.context.screen: return False if bpy.context.screen.is_animation_playing == True: - return False + return False if not bpy.context.active_object: return False - if (bpy.context.active_object.type in ["ARMATURE"]) and (bpy.context.active_object.mode == 'POSE'): + if (bpy.context.active_object.type in ["ARMATURE"]) and (bpy.context.active_object.mode == 'POSE'): for b_prop in bpy.context.active_object.data.items(): if b_prop[0] == 'bone_auto_hide' and b_prop[1] == 0: - return False + return False for prop in bpy.context.active_object.data.items(): - if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': - - arm = bpy.context.active_object.data + if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': + + arm = bpy.context.active_object.data p_bones = bpy.context.active_object.pose.bones - + for b in p_bones: if ('properties' in b.name): if ('torso' in b.name): - # Torso FK/IK + # Torso FK/IK prop = int(b.ik_torso) - prop_inv = int(b.inv_torso) - - for bone in arm.bones: + prop_inv = int(b.inv_torso) + + for bone in arm.bones: if (bone.name in b['bones_ik']): if prop == 1 or prop_inv == 1: - bone.hide = 1 + bone.hide = 1 else: - bone.hide = 0 + bone.hide = 0 if (bone.name in b['bones_fk']): if prop != 1 or prop_inv == 1: - bone.hide = 1 + bone.hide = 1 else: - bone.hide = 0 - - # Torso INV - for bone in arm.bones: + bone.hide = 0 + + # Torso INV + for bone in arm.bones: if (bone.name in b['bones_inv']): if prop_inv == 1: bone.hide = 0 else: - bone.hide = 1 + bone.hide = 1 if ('head' in b.name): - # Neck FK/IK + # Neck FK/IK prop = int(b.ik_head) for bone in arm.bones: if (bone.name in b['bones_fk']): if prop == 1: bone.hide = 0 else: - bone.hide = 1 + bone.hide = 1 if (bone.name in b['bones_ik']): if prop == 0: bone.hide = 0 else: - bone.hide = 1 + bone.hide = 1 - # Head Hinge + # Head Hinge prop_hinge = int(b.hinge_head) - for bone in arm.bones: + for bone in arm.bones: if (bone.name in b['bones_fk_hinge']): if prop == 1 or prop_hinge == 0: bone.hide = 0 else: - bone.hide = 1 + bone.hide = 1 if (bone.name in b['bones_ik_hinge']): if prop == 0 or prop_hinge == 1: bone.hide = 0 else: - bone.hide = 1 - #Left Properties - if ('_L' in b.name): + bone.hide = 1 + #Left Properties + if ('_L' in b.name): if ('arm' in b.name): - - # Arm_L FK/IK + + # Arm_L FK/IK prop = int(b.ik_arm_L) prop_hinge = int(b.hinge_hand_L) - for bone in arm.bones: + for bone in arm.bones: if (bone.name in b['bones_fk_L']): if prop == 1: bone.hide = 0 else: - bone.hide = 1 + bone.hide = 1 if (bone.name in b['bones_ik_L']): if prop == 0: bone.hide = 0 else: - bone.hide = 1 + bone.hide = 1 # HAND_L - if arm['rig_type'] == "Biped": - if (bone.name in b['bones_ik_hand_L']): + if arm['rig_type'] == "Biped": + if (bone.name in b['bones_ik_hand_L']): if prop == 1 and prop_hinge == 0: bone.hide = 1 else: - bone.hide = 0 - if (bone.name in b['bones_fk_hand_L']): + bone.hide = 0 + if (bone.name in b['bones_fk_hand_L']): if prop_hinge == 1: bone.hide = 1 else: - bone.hide = 0 - if (bone.name in b['bones_ik_palm_L']): - if prop == 1 or prop_hinge == 0: + bone.hide = 0 + if (bone.name in b['bones_ik_palm_L']): + if prop == 1 or prop_hinge == 0: bone.hide = 1 else: - bone.hide = 0 - if (bone.name in b['bones_fk_palm_L']): - if prop == 1 or prop_hinge == 0: + bone.hide = 0 + if (bone.name in b['bones_fk_palm_L']): + if prop == 1 or prop_hinge == 0: bone.hide = 0 else: - bone.hide = 1 - - # Fingers_L - prop_ik_all = int(b.ik_fing_all_L) - prop_hinge_all = int(b.hinge_fing_all_L) - - def fingers_hide(b_name): + bone.hide = 1 + + # Fingers_L + prop_ik_all = int(b.ik_fing_all_L) + prop_hinge_all = int(b.hinge_fing_all_L) + + def fingers_hide(b_name): for bone in arm.bones: - ik_bones = [b_name] + ik_bones = [b_name] if (bone.name == b_name): if prop == 1 or prop_hinge == 1 or prop_ik_all == 1 or prop_hinge_all == 1: bone.hide = 0 if prop == 0 and prop_hinge == 0 and prop_ik_all == 0 and prop_hinge_all == 0: - bone.hide = 1 - return {"FINISHED"} + bone.hide = 1 + return {"FINISHED"} prop_hinge = int(b.hinge_fing_ind_L) - prop = int(b.ik_fing_ind_L) - fingers_hide('fing_ind_ik_L') + prop = int(b.ik_fing_ind_L) + fingers_hide('fing_ind_ik_L') prop_hinge = int(b.hinge_fing_mid_L) - prop = int(b.ik_fing_mid_L) - fingers_hide('fing_mid_ik_L') + prop = int(b.ik_fing_mid_L) + fingers_hide('fing_mid_ik_L') prop_hinge = int(b.hinge_fing_ring_L) - prop = int(b.ik_fing_ring_L) - fingers_hide('fing_ring_ik_L') + prop = int(b.ik_fing_ring_L) + fingers_hide('fing_ring_ik_L') prop_hinge = int(b.hinge_fing_lit_L) - prop = int(b.ik_fing_lit_L) - fingers_hide('fing_lit_ik_L') + prop = int(b.ik_fing_lit_L) + fingers_hide('fing_lit_ik_L') prop_hinge = int(b.hinge_fing_thumb_L) - prop = int(b.ik_fing_thumb_L) - fingers_hide('fing_thumb_ik_L') - - if ('leg' in b.name): - # Leg_L FK/IK + prop = int(b.ik_fing_thumb_L) + fingers_hide('fing_thumb_ik_L') + + if ('leg' in b.name): + # Leg_L FK/IK prop = int(b.ik_leg_L) - for bone in arm.bones: - if (bone.name in b['bones_fk_L']): + for bone in arm.bones: + if (bone.name in b['bones_fk_L']): if prop == 1: bone.hide = 0 else: - bone.hide = 1 - if (bone.name in b['bones_ik_L']): + bone.hide = 1 + if (bone.name in b['bones_ik_L']): if prop == 0: bone.hide = 0 else: - bone.hide = 1 - - # Toes_L FK/IK + bone.hide = 1 + + # Toes_L FK/IK prop = int(b.ik_toes_all_L) - prop_hinge = int(b.hinge_toes_all_L) - for bone in arm.bones: - if (bone.name in b['bones_fk_foot_L']): + prop_hinge = int(b.hinge_toes_all_L) + for bone in arm.bones: + if (bone.name in b['bones_fk_foot_L']): if prop == 1: bone.hide = 0 else: - bone.hide = 1 - if (bone.name in b['bones_ik_foot_L']): + bone.hide = 1 + if (bone.name in b['bones_ik_foot_L']): if prop == 0 or prop_hinge == 1: bone.hide = 0 else: - bone.hide = 1 + bone.hide = 1 - #Right Properties - if ('_R' in b.name): + #Right Properties + if ('_R' in b.name): if ('arm' in b.name): - - # Arm_R FK/IK + + # Arm_R FK/IK prop = int(b.ik_arm_R) prop_hinge = int(b.hinge_hand_R) - for bone in arm.bones: + for bone in arm.bones: if (bone.name in b['bones_fk_R']): if prop == 1: bone.hide = 0 else: - bone.hide = 1 + bone.hide = 1 if (bone.name in b['bones_ik_R']): if prop == 0: bone.hide = 0 else: - bone.hide = 1 + bone.hide = 1 # HAND_R - if arm['rig_type'] == "Biped": - if (bone.name in b['bones_ik_hand_R']): + if arm['rig_type'] == "Biped": + if (bone.name in b['bones_ik_hand_R']): if prop == 1 and prop_hinge == 0: bone.hide = 1 else: - bone.hide = 0 - if (bone.name in b['bones_fk_hand_R']): + bone.hide = 0 + if (bone.name in b['bones_fk_hand_R']): if prop_hinge == 1: bone.hide = 1 else: - bone.hide = 0 - if (bone.name in b['bones_ik_palm_R']): - if prop == 1 or prop_hinge == 0: + bone.hide = 0 + if (bone.name in b['bones_ik_palm_R']): + if prop == 1 or prop_hinge == 0: bone.hide = 1 else: - bone.hide = 0 - if (bone.name in b['bones_fk_palm_R']): - if prop == 1 or prop_hinge == 0: + bone.hide = 0 + if (bone.name in b['bones_fk_palm_R']): + if prop == 1 or prop_hinge == 0: bone.hide = 0 else: - bone.hide = 1 - - # Fingers_R - prop_ik_all = int(b.ik_fing_all_R) - prop_hinge_all = int(b.hinge_fing_all_R) - - def fingers_hide(b_name): + bone.hide = 1 + + # Fingers_R + prop_ik_all = int(b.ik_fing_all_R) + prop_hinge_all = int(b.hinge_fing_all_R) + + def fingers_hide(b_name): for bone in arm.bones: - ik_bones = [b_name] + ik_bones = [b_name] if (bone.name == b_name): if prop == 1 or prop_hinge == 1 or prop_ik_all == 1 or prop_hinge_all == 1: bone.hide = 0 if prop == 0 and prop_hinge == 0 and prop_ik_all == 0 and prop_hinge_all == 0: - bone.hide = 1 - return {"FINISHED"} + bone.hide = 1 + return {"FINISHED"} prop_hinge = int(b.hinge_fing_ind_R) - prop = int(b.ik_fing_ind_R) - fingers_hide('fing_ind_ik_R') + prop = int(b.ik_fing_ind_R) + fingers_hide('fing_ind_ik_R') prop_hinge = int(b.hinge_fing_mid_R) - prop = int(b.ik_fing_mid_R) - fingers_hide('fing_mid_ik_R') + prop = int(b.ik_fing_mid_R) + fingers_hide('fing_mid_ik_R') prop_hinge = int(b.hinge_fing_ring_R) - prop = int(b.ik_fing_ring_R) - fingers_hide('fing_ring_ik_R') + prop = int(b.ik_fing_ring_R) + fingers_hide('fing_ring_ik_R') prop_hinge = int(b.hinge_fing_lit_R) - prop = int(b.ik_fing_lit_R) - fingers_hide('fing_lit_ik_R') + prop = int(b.ik_fing_lit_R) + fingers_hide('fing_lit_ik_R') prop_hinge = int(b.hinge_fing_thumb_R) - prop = int(b.ik_fing_thumb_R) - fingers_hide('fing_thumb_ik_R') - - if ('leg' in b.name): - # Leg_R FK/IK + prop = int(b.ik_fing_thumb_R) + fingers_hide('fing_thumb_ik_R') + + if ('leg' in b.name): + # Leg_R FK/IK prop = int(b.ik_leg_R) - for bone in arm.bones: - if (bone.name in b['bones_fk_R']): + for bone in arm.bones: + if (bone.name in b['bones_fk_R']): if prop == 1: bone.hide = 0 else: - bone.hide = 1 - if (bone.name in b['bones_ik_R']): + bone.hide = 1 + if (bone.name in b['bones_ik_R']): if prop == 0: bone.hide = 0 else: - bone.hide = 1 - - # Toes_R FK/IK + bone.hide = 1 + + # Toes_R FK/IK prop = int(b.ik_toes_all_R) prop_hinge = int(b.hinge_toes_all_R) - for bone in arm.bones: - if (bone.name in b['bones_fk_foot_R']): + for bone in arm.bones: + if (bone.name in b['bones_fk_foot_R']): if prop == 1: bone.hide = 0 else: - bone.hide = 1 - if (bone.name in b['bones_ik_foot_R']): + bone.hide = 1 + if (bone.name in b['bones_ik_foot_R']): if prop == 0 or prop_hinge == 1: bone.hide = 0 else: - bone.hide = 1 - + bone.hide = 1 + ####### Reproportion Toggle ####### def reproportion_toggle(context): if not bpy.context.screen: return False if bpy.context.screen.is_animation_playing == True: - return False + return False if not bpy.context.active_object: return False - if (bpy.context.active_object.type in ["ARMATURE"]) and (bpy.context.active_object.mode == 'POSE'): + if (bpy.context.active_object.type in ["ARMATURE"]) and (bpy.context.active_object.mode == 'POSE'): for prop in bpy.context.active_object.data.items(): - if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': - prop = bool(bpy.context.active_object.data.reproportion) + if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': + prop = bool(bpy.context.active_object.data.reproportion) p_bones = bpy.context.active_object.pose.bones if prop == True: - bpy.context.active_object.data.layers[31] = True - for b in p_bones: + bpy.context.active_object.data.layers[31] = True + for b in p_bones: for C in b.constraints: if ('REPROP' in C.name): - C.mute = False + C.mute = False if ('NOREP' in C.name): - C.mute = True - + C.mute = True + else: bpy.context.active_object.data.layers[0] = True - bpy.context.active_object.data.layers[31] = False - for b in p_bones: + bpy.context.active_object.data.layers[31] = False + for b in p_bones: for C in b.constraints: if ('REPROP' in C.name): - C.mute = True + C.mute = True if ('NOREP' in C.name): - C.mute = False - rig_toggles(context) - + C.mute = False + rig_toggles(context) + ####### Rig Toggles ####### def rig_toggles(context): if not bpy.context.screen: return False if bpy.context.screen.is_animation_playing == True: - return False + return False if not bpy.context.active_object: return False - if (bpy.context.active_object.type in ["ARMATURE"]) and (bpy.context.active_object.mode == 'POSE'): + if (bpy.context.active_object.type in ["ARMATURE"]) and (bpy.context.active_object.mode == 'POSE'): for prop in bpy.context.active_object.data.items(): - if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': + if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': p_bones = bpy.context.active_object.pose.bones - arm = bpy.context.active_object.data + arm = bpy.context.active_object.data for b in p_bones: if ('properties' in b.name): # Left Properties - #Fingers_L + #Fingers_L if ('L' in b.name): if ('arm'in b.name): prop_fing = int(b.toggle_fingers_L) - for bone in arm.bones: - if (bone.name in b['bones_fingers_def_1_L']): + for bone in arm.bones: + if (bone.name in b['bones_fingers_def_1_L']): if prop_fing == 1: bone.layers[27] = 1 else: - bone.layers[27] = 0 - if (bone.name in b['bones_fingers_def_2_L']): + bone.layers[27] = 0 + if (bone.name in b['bones_fingers_def_2_L']): if prop_fing == 1: bone.layers[27] = 1 - bone.layers[31] = 1 + bone.layers[31] = 1 else: - bone.layers[27] = 0 - bone.layers[31] = 0 - if (bone.name in b['bones_fingers_str_L']): + bone.layers[27] = 0 + bone.layers[31] = 0 + if (bone.name in b['bones_fingers_str_L']): if prop_fing == 1: bone.layers[31] = 1 else: - bone.layers[31] = 0 + bone.layers[31] = 0 for b_prop in bpy.context.active_object.data.items(): - if b_prop[0] == 'custom_layers' and b_prop[1] == 0: - if (bone.name in b['bones_fingers_ctrl_1_L']): + if b_prop[0] == 'custom_layers' and b_prop[1] == 0: + if (bone.name in b['bones_fingers_ctrl_1_L']): if prop_fing == 1: bone.layers[0] = 1 else: - bone.layers[0] = 0 - if (bone.name in b['bones_fingers_ctrl_2_L']): + bone.layers[0] = 0 + if (bone.name in b['bones_fingers_ctrl_2_L']): if prop_fing == 1: - bone.layers[2] = 1 + bone.layers[2] = 1 else: - bone.layers[2] = 0 - if (bone.name in b['bones_fingers_ctrl_2_L']): - if prop_fing == 1: + bone.layers[2] = 0 + if (bone.name in b['bones_fingers_ctrl_2_L']): + if prop_fing == 1: for pbone in p_bones: if (pbone.name in b['bones_fingers_ctrl_2_L']): for C in pbone.constraints: if C.type == 'IK': - C.mute = False + C.mute = False else: for pbone in p_bones: if (pbone.name in b['bones_fingers_ctrl_2_L']): for C in pbone.constraints: if C.type == 'IK': - C.mute = True + C.mute = True #Toes_L if ('L' in b.name): if ('leg'in b.name): prop_toes = int(b.toggle_toes_L) - for bone in arm.bones: - if (bone.name in b['bones_toes_def_1_L']): + for bone in arm.bones: + if (bone.name in b['bones_toes_def_1_L']): if prop_toes == 1: bone.layers[27] = 1 else: - bone.layers[27] = 0 - if (bone.name in b['bones_toes_def_2_L']): + bone.layers[27] = 0 + if (bone.name in b['bones_toes_def_2_L']): if prop_toes == 1: bone.layers[27] = 1 - bone.layers[31] = 1 + bone.layers[31] = 1 else: - bone.layers[27] = 0 - bone.layers[31] = 0 - if (bone.name in b['bones_no_toes_def_L']): + bone.layers[27] = 0 + bone.layers[31] = 0 + if (bone.name in b['bones_no_toes_def_L']): if prop_toes == 1: bone.layers[27] = 0 else: - bone.layers[27] = 1 - if (bone.name in b['bones_toes_str_L']): + bone.layers[27] = 1 + if (bone.name in b['bones_toes_str_L']): if prop_toes == 1: bone.layers[31] = 1 else: - bone.layers[31] = 0 + bone.layers[31] = 0 for b_prop in bpy.context.active_object.data.items(): - if b_prop[0] == 'custom_layers' and b_prop[1] == 0: - if (bone.name in b['bones_toes_ctrl_1_L']): + if b_prop[0] == 'custom_layers' and b_prop[1] == 0: + if (bone.name in b['bones_toes_ctrl_1_L']): if prop_toes == 1: bone.layers[0] = 1 else: - bone.layers[0] = 0 - if (bone.name in b['bones_no_toes_ctrl_L']): + bone.layers[0] = 0 + if (bone.name in b['bones_no_toes_ctrl_L']): if prop_toes == 1: bone.layers[0] = 0 else: - bone.layers[0] = 1 - if (bone.name in b['bones_toes_ctrl_2_L']): + bone.layers[0] = 1 + if (bone.name in b['bones_toes_ctrl_2_L']): if prop_toes == 1: - bone.layers[2] = 1 + bone.layers[2] = 1 else: - bone.layers[2] = 0 - if (bone.name in b['bones_toes_ctrl_2_L']): - if prop_toes == 1: + bone.layers[2] = 0 + if (bone.name in b['bones_toes_ctrl_2_L']): + if prop_toes == 1: for pbone in p_bones: if (pbone.name in b['bones_toes_ctrl_2_L']): for C in pbone.constraints: if C.type == 'IK': - C.mute = False + C.mute = False else: for pbone in p_bones: if (pbone.name in b['bones_toes_ctrl_2_L']): for C in pbone.constraints: if C.type == 'IK': - C.mute = True + C.mute = True # Right Properties - #Fingers_R + #Fingers_R if ('R' in b.name): if ('arm'in b.name): prop_fing = int(b.toggle_fingers_R) - for bone in arm.bones: - if (bone.name in b['bones_fingers_def_1_R']): + for bone in arm.bones: + if (bone.name in b['bones_fingers_def_1_R']): if prop_fing == 1: bone.layers[27] = 1 else: bone.layers[27] = 0 - if (bone.name in b['bones_fingers_def_2_R']): + if (bone.name in b['bones_fingers_def_2_R']): if prop_fing == 1: bone.layers[27] = 1 - bone.layers[31] = 1 + bone.layers[31] = 1 else: bone.layers[27] = 0 - bone.layers[31] = 0 - if (bone.name in b['bones_fingers_str_R']): + bone.layers[31] = 0 + if (bone.name in b['bones_fingers_str_R']): if prop_fing == 1: bone.layers[31] = 1 else: - bone.layers[31] = 0 + bone.layers[31] = 0 for b_prop in bpy.context.active_object.data.items(): - if b_prop[0] == 'custom_layers' and b_prop[1] == 0: - if (bone.name in b['bones_fingers_ctrl_1_R']): + if b_prop[0] == 'custom_layers' and b_prop[1] == 0: + if (bone.name in b['bones_fingers_ctrl_1_R']): if prop_fing == 1: bone.layers[0] = 1 else: - bone.layers[0] = 0 - if (bone.name in b['bones_fingers_ctrl_2_R']): + bone.layers[0] = 0 + if (bone.name in b['bones_fingers_ctrl_2_R']): if prop_fing == 1: - bone.layers[2] = 1 + bone.layers[2] = 1 else: - bone.layers[2] = 0 - if (bone.name in b['bones_fingers_ctrl_2_R']): - if prop_fing == 1: + bone.layers[2] = 0 + if (bone.name in b['bones_fingers_ctrl_2_R']): + if prop_fing == 1: for pbone in p_bones: if (pbone.name in b['bones_fingers_ctrl_2_R']): for C in pbone.constraints: if C.type == 'IK': - C.mute = False + C.mute = False else: for pbone in p_bones: if (pbone.name in b['bones_fingers_ctrl_2_R']): for C in pbone.constraints: if C.type == 'IK': - C.mute = True + C.mute = True #Toes_R if ('R' in b.name): if ('leg'in b.name): prop_toes = int(b.toggle_toes_R) - for bone in arm.bones: - if (bone.name in b['bones_toes_def_1_R']): + for bone in arm.bones: + if (bone.name in b['bones_toes_def_1_R']): if prop_toes == 1: bone.layers[27] = 1 else: bone.layers[27] = 0 - if (bone.name in b['bones_toes_def_2_R']): + if (bone.name in b['bones_toes_def_2_R']): if prop_toes == 1: bone.layers[27] = 1 bone.layers[31] = 1 else: bone.layers[27] = 0 - bone.layers[31] = 0 - if (bone.name in b['bones_no_toes_def_R']): + bone.layers[31] = 0 + if (bone.name in b['bones_no_toes_def_R']): if prop_toes == 1: bone.layers[27] = 0 else: - bone.layers[27] = 1 - if (bone.name in b['bones_toes_str_R']): + bone.layers[27] = 1 + if (bone.name in b['bones_toes_str_R']): if prop_toes == 1: bone.layers[31] = 1 else: - bone.layers[31] = 0 + bone.layers[31] = 0 for b_prop in bpy.context.active_object.data.items(): - if b_prop[0] == 'custom_layers' and b_prop[1] == 0: - if (bone.name in b['bones_toes_ctrl_1_R']): + if b_prop[0] == 'custom_layers' and b_prop[1] == 0: + if (bone.name in b['bones_toes_ctrl_1_R']): if prop_toes == 1: bone.layers[0] = 1 else: - bone.layers[0] = 0 - if (bone.name in b['bones_no_toes_ctrl_R']): + bone.layers[0] = 0 + if (bone.name in b['bones_no_toes_ctrl_R']): if prop_toes == 1: bone.layers[0] = 0 else: - bone.layers[0] = 1 - if (bone.name in b['bones_toes_ctrl_2_R']): + bone.layers[0] = 1 + if (bone.name in b['bones_toes_ctrl_2_R']): if prop_toes == 1: bone.layers[2] = 1 else: - bone.layers[2] = 0 - if (bone.name in b['bones_toes_ctrl_2_R']): - if prop_toes == 1: + bone.layers[2] = 0 + if (bone.name in b['bones_toes_ctrl_2_R']): + if prop_toes == 1: for pbone in p_bones: if (pbone.name in b['bones_toes_ctrl_2_R']): for C in pbone.constraints: if C.type == 'IK': - C.mute = False + C.mute = False else: for pbone in p_bones: if (pbone.name in b['bones_toes_ctrl_2_R']): for C in pbone.constraints: if C.type == 'IK': - C.mute = True + C.mute = True ####### Rig Optimizations ####### @@ -948,22 +948,22 @@ def rig_toggles(context): def toggle_face_drivers(context): if not bpy.context.screen: - return False + return False if bpy.context.screen.is_animation_playing == True: - return False + return False if not bpy.context.active_object: return False if not context.armature: - return False + return False for prop in bpy.context.active_object.data.items(): - if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': + if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': prop = bool(bpy.context.active_object.data.toggle_face_drivers) armobj = bpy.context.active_object drivers = armobj.animation_data.drivers - data_path_list = ['pose.bones["mouth_corner_R"]["BACK_LIMIT_R"]', - 'pose.bones["mouth_corner_R"]["DOWN_LIMIT_R"]', + data_path_list = ['pose.bones["mouth_corner_R"]["BACK_LIMIT_R"]', + 'pose.bones["mouth_corner_R"]["DOWN_LIMIT_R"]', 'pose.bones["mouth_corner_R"]["FORW_LIMIT_R"]', - 'pose.bones["mouth_corner_R"]["IN_LIMIT_R"]', + 'pose.bones["mouth_corner_R"]["IN_LIMIT_R"]', 'pose.bones["mouth_corner_R"]["OUT_LIMIT_R"]', 'pose.bones["mouth_corner_R"]["UP_LIMIT_R"]', 'pose.bones["mouth_corner_L"]["UP_LIMIT_L"]', @@ -1050,31 +1050,31 @@ def toggle_face_drivers(context): 'pose.bones["cheek_ctrl_R"]["ACTION_CHEEK_TOGGLE_R"]', 'pose.bones["cheek_ctrl_L"]["ACTION_CHEEK_TOGGLE_L"]', 'pose.bones["mouth_corner_L"]["AUTO_BACK_L"]', - 'pose.bones["mouth_corner_R"]["AUTO_BACK_R"]'] + 'pose.bones["mouth_corner_R"]["AUTO_BACK_R"]'] for C in drivers: for vars in C.driver.variables: - for T in vars.targets: + for T in vars.targets: for D in data_path_list: if D in T.data_path: if prop == 1: C.mute = False else: - C.mute = True - + C.mute = True + ####### Toggle Flex Drivers ####### def toggle_flex_drivers(context): if not bpy.context.screen: - return False + return False if bpy.context.screen.is_animation_playing == True: - return False + return False if not bpy.context.active_object: return False if not context.armature: - return False + return False for prop in bpy.context.active_object.data.items(): - if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': + if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': prop = bool(bpy.context.active_object.data.toggle_flex_drivers) armobj = bpy.context.active_object drivers = armobj.animation_data.drivers @@ -1112,31 +1112,31 @@ def toggle_flex_drivers(context): 'pose.bones["properties_leg_L"]["flex_shin_length_L"]', 'pose.bones["properties_leg_L"]["flex_shin_width_L"]', 'pose.bones["properties_leg_L"]["flex_foot_scale_L"]', - 'pose.bones["properties_leg_L"]["flex_foot_loc_L"]'] + 'pose.bones["properties_leg_L"]["flex_foot_loc_L"]'] for C in drivers: for vars in C.driver.variables: - for T in vars.targets: + for T in vars.targets: for D in data_path_list: if D in T.data_path: if prop == 1: C.mute = False else: - C.mute = True + C.mute = True ####### Toggle Body Drivers ####### def toggle_body_drivers(context): if not bpy.context.screen: - return False + return False if bpy.context.screen.is_animation_playing == True: - return False + return False if not bpy.context.active_object: return False if not context.armature: - return False + return False for prop in bpy.context.active_object.data.items(): - if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': + if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': prop = bool(bpy.context.active_object.data.toggle_body_drivers) armobj = bpy.context.active_object drivers = armobj.animation_data.drivers @@ -1170,47 +1170,47 @@ def toggle_body_drivers(context): 'pose.bones["spine_3_fk"]["fk_follow_main"]', 'pose.bones["spine_2_inv"]["fk_follow_main"]', 'pose.bones["spine_1_inv"]["fk_follow_main"]', - 'pose.bones["pelvis_inv"]["fk_follow_main"]'] + 'pose.bones["pelvis_inv"]["fk_follow_main"]'] for C in drivers: for vars in C.driver.variables: - for T in vars.targets: + for T in vars.targets: for D in data_path_list: if D in T.data_path: if prop == 1: C.mute = False else: - C.mute = True - + C.mute = True + ######### Update Function for Properties ########## def prop_update(self, context): bone_auto_hide(context) def reprop_update(self, context): - reproportion_toggle(context) - + reproportion_toggle(context) + def rig_toggles_update(self, context): rig_toggles(context) - + def optimize_face(self, context): - toggle_face_drivers(context) + toggle_face_drivers(context) def optimize_flex(self, context): - toggle_flex_drivers(context) - + toggle_flex_drivers(context) + def optimize_body(self, context): - toggle_body_drivers(context) - + toggle_body_drivers(context) + ######### Hanlder for update on load and frame change ######### from bpy.app.handlers import persistent @persistent -def load_handler(context): - bone_auto_hide(context) +def load_handler(context): + bone_auto_hide(context) reproportion_toggle(context) - rig_toggles(context) + rig_toggles(context) bpy.app.handlers.load_post.append(load_handler) bpy.app.handlers.frame_change_post.append(bone_auto_hide) @@ -1225,7 +1225,7 @@ bpy.types.PoseBone.ik_head = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1248,7 +1248,7 @@ bpy.types.PoseBone.inv_torso = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Invert Torso Hierarchy", update=prop_update, @@ -1259,7 +1259,7 @@ bpy.types.PoseBone.ik_arm_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1270,7 +1270,7 @@ bpy.types.PoseBone.ik_arm_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1281,7 +1281,7 @@ bpy.types.PoseBone.ik_leg_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1292,7 +1292,7 @@ bpy.types.PoseBone.ik_toes_all_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1303,7 +1303,7 @@ bpy.types.PoseBone.ik_leg_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1314,7 +1314,7 @@ bpy.types.PoseBone.ik_toes_all_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1325,7 +1325,7 @@ bpy.types.PoseBone.ik_fing_ind_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1336,7 +1336,7 @@ bpy.types.PoseBone.ik_fing_mid_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1347,7 +1347,7 @@ bpy.types.PoseBone.ik_fing_ring_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1358,7 +1358,7 @@ bpy.types.PoseBone.ik_fing_lit_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1369,7 +1369,7 @@ bpy.types.PoseBone.ik_fing_thumb_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1380,7 +1380,7 @@ bpy.types.PoseBone.ik_fing_ind_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1391,7 +1391,7 @@ bpy.types.PoseBone.ik_fing_mid_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1402,7 +1402,7 @@ bpy.types.PoseBone.ik_fing_ring_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1413,7 +1413,7 @@ bpy.types.PoseBone.ik_fing_lit_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1424,7 +1424,7 @@ bpy.types.PoseBone.ik_fing_thumb_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1435,7 +1435,7 @@ bpy.types.PoseBone.ik_fing_all_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1446,7 +1446,7 @@ bpy.types.PoseBone.ik_fing_all_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="IK/FK Toggle", update=prop_update, @@ -1460,7 +1460,7 @@ bpy.types.PoseBone.hinge_head = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1471,7 +1471,7 @@ bpy.types.PoseBone.hinge_neck = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1482,7 +1482,7 @@ bpy.types.PoseBone.hinge_arm_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1493,7 +1493,7 @@ bpy.types.PoseBone.hinge_arm_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1504,7 +1504,7 @@ bpy.types.PoseBone.hinge_hand_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1515,7 +1515,7 @@ bpy.types.PoseBone.hinge_hand_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1526,7 +1526,7 @@ bpy.types.PoseBone.hinge_fing_ind_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1537,7 +1537,7 @@ bpy.types.PoseBone.hinge_fing_mid_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1548,7 +1548,7 @@ bpy.types.PoseBone.hinge_fing_ring_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1559,7 +1559,7 @@ bpy.types.PoseBone.hinge_fing_lit_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1570,7 +1570,7 @@ bpy.types.PoseBone.hinge_fing_thumb_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1581,7 +1581,7 @@ bpy.types.PoseBone.hinge_fing_ind_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1592,7 +1592,7 @@ bpy.types.PoseBone.hinge_fing_mid_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1603,7 +1603,7 @@ bpy.types.PoseBone.hinge_fing_ring_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1614,7 +1614,7 @@ bpy.types.PoseBone.hinge_fing_lit_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1625,7 +1625,7 @@ bpy.types.PoseBone.hinge_fing_thumb_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1636,7 +1636,7 @@ bpy.types.PoseBone.hinge_fing_all_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1647,7 +1647,7 @@ bpy.types.PoseBone.hinge_fing_all_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1658,7 +1658,7 @@ bpy.types.PoseBone.hinge_leg_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1669,7 +1669,7 @@ bpy.types.PoseBone.hinge_toes_all_L = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1680,18 +1680,18 @@ bpy.types.PoseBone.hinge_leg_R = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, name="hinge_leg_R" -) +) bpy.types.PoseBone.hinge_toes_all_R = FloatProperty( default=0.000, min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Isolate Rotation", update=prop_update, @@ -1705,72 +1705,72 @@ bpy.types.PoseBone.toon_head = FloatProperty( min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Stretchy IK Toggle", update=prop_update, name="toon_head" -) +) bpy.types.PoseBone.toon_torso = FloatProperty( default=0.000, min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Stretchy IK Toggle", update=prop_update, name="toon_torso" -) +) bpy.types.PoseBone.toon_arm_L = FloatProperty( default=0.000, min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Stretchy IK Toggle", update=prop_update, name="toon_arm_L" -) +) bpy.types.PoseBone.toon_arm_R = FloatProperty( default=0.000, min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Stretchy IK Toggle", update=prop_update, name="toon_arm_R" -) +) bpy.types.PoseBone.toon_leg_L = FloatProperty( default=0.000, min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Stretchy IK Toggle", update=prop_update, name="toon_leg_L" -) +) bpy.types.PoseBone.toon_leg_R = FloatProperty( default=0.000, min=0.000, max=1.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Stretchy IK Toggle", update=prop_update, name="toon_leg_R" -) +) # LOOK SWITCH bpy.types.PoseBone.look_switch = FloatProperty( @@ -1778,12 +1778,12 @@ bpy.types.PoseBone.look_switch = FloatProperty( min=0.000, max=3.000, precision=0, - step=100, + step=100, options={'ANIMATABLE'}, description="Target of Eyes", update=prop_update, name="look_switch" -) +) # REPROPORTION bpy.types.Armature.reproportion = BoolProperty( @@ -1791,49 +1791,49 @@ bpy.types.Armature.reproportion = BoolProperty( description="Toggle Reproportion Mode", update=reprop_update, name="reproportion" -) +) # TOGGLE_FACE_DRIVERS bpy.types.Armature.toggle_face_drivers = BoolProperty( default=1, description="Toggle Face Riggin Drivers", update=optimize_face, name="toggle_face_drivers" -) +) # TOGGLE_FLEX_DRIVERS bpy.types.Armature.toggle_flex_drivers = BoolProperty( default=1, description="Toggle Flex Scaling", update=optimize_flex, name="toggle_flex_drivers" -) +) # TOGGLE_BODY_DRIVERS bpy.types.Armature.toggle_body_drivers = BoolProperty( default=1, description="Toggle Body Rigging Drivers", update=optimize_body, name="toggle_body_drivers" -) +) # TOGGLES bpy.types.PoseBone.toggle_fingers_L = BoolProperty( default=0, description="Toggle fingers in rig", update=rig_toggles_update, name="toggle_fingers_L" -) +) bpy.types.PoseBone.toggle_toes_L = BoolProperty( default=0, description="Toggle toes in rig", update=rig_toggles_update, name="toggle_toes_L" -) +) bpy.types.PoseBone.toggle_fingers_R = BoolProperty( default=0, description="Toggle fingers in rig", update=rig_toggles_update, name="toggle_fingers_R" -) +) bpy.types.PoseBone.toggle_toes_R = BoolProperty( default=0, @@ -1842,30 +1842,30 @@ bpy.types.PoseBone.toggle_toes_R = BoolProperty( name="toggle_toes_R" ) """ - + for T in bpy.data.texts: if ('generate_customprops' in T.name): T.clear() T.current_line_index = 0 - T.write(update_1005) - T.current_line_index = 0 + T.write(update_1005) + T.current_line_index = 0 + +#### Set Condensed Scheme #### + +def biped_update_1005_layer_scheme(self, context): -#### Set Condensed Scheme #### - -def biped_update_1005_layer_scheme(self, context): - ## Run Condensed Scheme ## bpy.ops.blenrig5.layers_scheme_compact() -#### Update Rig version #### - -def biped_update_1005_update_version(self, context): +#### Update Rig version #### + +def biped_update_1005_update_version(self, context): arm_data = bpy.context.active_object.data - - arm_data['rig_version'] = 1.005 - - self.report({'INFO'}, 'BlenRig Armature updated to 1.005') - + arm_data['rig_version'] = 1.005 + + self.report({'INFO'}, 'BlenRig Armature updated to 1.005') + + diff --git a/changelog.txt b/changelog.txt index 6cde592..f85f57c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -15,29 +15,26 @@ V 1.002 - General changes: - New Layer Scheme option in Layer Settings tab (Compact and Expanded Scheme) - - - Updated version of generate_customprops script to work with the new armature layer schemes + + - Updated version of generate_customprops script to work with the new armature layer schemes - Biped Armature updated to 1.005: - + - Fixed shoulder offset when using FK and Hinge in arms - + - Removed Rotation locks in forearm and shin FK controllers - + - New lattice_eye_L and R controller in TOON 2 layer - + - Look_l and R scaling now makes the eye scale with the Lattice of the eye, giving a smoother result - + _ Various bone layers and bone shapes fixes - + - Bug Fixes: - + - Fix for timeline scrubbing slowdown bug - + - Fix for error when adding BlenRig to the scene while using local view or local layers - - V 1.003 -======= - Scropt spaces cleanup @@ -47,3 +44,6 @@ V 1.004 - Port to Blender 2.80 +======= + + diff --git a/ops_alignment.py b/ops_alignment.py index 40ac060..f23b78f 100644 --- a/ops_alignment.py +++ b/ops_alignment.py @@ -2,56 +2,56 @@ import bpy ##################################### Bone Alignment Operators ####################################### -class Operator_BlenRig_Fix_Misaligned_Bones(bpy.types.Operator): - - bl_idname = "blenrig5.fix_misaligned_bones" - bl_label = "BlenRig Fix Misaligned Bones" - bl_description = "Fixes misaligned bones after baking" - bl_options = {'REGISTER', 'UNDO',} +class Operator_BlenRig_Fix_Misaligned_Bones(bpy.types.Operator): + + bl_idname = "blenrig5.fix_misaligned_bones" + bl_label = "BlenRig Fix Misaligned Bones" + bl_description = "Fixes misaligned bones after baking" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if not bpy.context.object: return False else: - return (bpy.context.object.type=='ARMATURE' and context.mode=='EDIT_ARMATURE') - - # Save state of layers + return (bpy.context.object.type=='ARMATURE' and context.mode=='EDIT_ARMATURE') + + # Save state of layers active_layers = [] - + def all_layers(self, context): arm = bpy.context.active_object - arm_data = arm.data + arm_data = arm.data for i in range(len(arm_data.layers)): layers_status = arm_data.layers[i] if layers_status.real == 1: self.active_layers.append(i) - + #Turn on all layers - arm_data.layers = [(x in [x]) for x in range(32)] - + arm_data.layers = [(x in [x]) for x in range(32)] + def match_heads_tails(self, context): props = context.window_manager.blenrig_5_props arm = bpy.context.active_object - arm_data = arm.data + arm_data = arm.data bones = arm_data.edit_bones - selected_bones = [] + selected_bones = [] if props.align_selected_only == 1: for b in bpy.context.selected_editable_bones: selected_bones.append(b.name) else: for b in bones: - selected_bones.append(b.name) - bpy.ops.object.mode_set(mode='EDIT') + selected_bones.append(b.name) + bpy.ops.object.mode_set(mode='EDIT') bpy.ops.armature.reveal() - bpy.ops.armature.select_all(action='DESELECT') - - #Match heads - if arm_data.use_mirror_x == True: - for b in bones: - if b.name in selected_bones: - if b.keys() != '[]': + bpy.ops.armature.select_all(action='DESELECT') + + #Match heads + if arm_data.use_mirror_x == True: + for b in bones: + if b.name in selected_bones: + if b.keys() != '[]': if '_R' not in b.name: if 'b_head' in b.keys(): for t in bones: @@ -59,108 +59,108 @@ class Operator_BlenRig_Fix_Misaligned_Bones(bpy.types.Operator): if b['b_head'][1] == 'head': b.head = t.head if b['b_head'][1] == 'tail': - b.head = t.tail - #Match tails - if '_R' not in b.name: - if 'b_tail' in b.keys(): + b.head = t.tail + #Match tails + if '_R' not in b.name: + if 'b_tail' in b.keys(): for t in bones: if (t.name == b['b_tail'][0]): if b['b_tail'][1] == 'head': b.tail = t.head if b['b_tail'][1] == 'tail': - b.tail = t.tail - #X-mirror + b.tail = t.tail + #X-mirror if '_L' in b.name: b.select = 1 b.select_head = 1 b.select_tail = 1 - bpy.ops.armature.symmetrize(direction='NEGATIVE_X') - bpy.ops.armature.select_all(action='DESELECT') + bpy.ops.armature.symmetrize(direction='NEGATIVE_X') + bpy.ops.armature.select_all(action='DESELECT') else: for b in bones: if b.name in selected_bones: - if 'b_head' in b.keys(): - #Match heads + if 'b_head' in b.keys(): + #Match heads if b['b_head']: for t in bones: if (t.name == b['b_head'][0]): if b['b_head'][1] == 'head': b.head = t.head if b['b_head'][1] == 'tail': - b.head = t.tail - #Match tails + b.head = t.tail + #Match tails if 'b_tail' in b.keys(): for t in bones: if (t.name == b['b_tail'][0]): if b['b_tail'][1] == 'head': b.tail = t.head if b['b_tail'][1] == 'tail': - b.tail = t.tail + b.tail = t.tail - # Restore selection - if props.align_selected_only == 1: + # Restore selection + if props.align_selected_only == 1: for b in bones: if b.name in selected_bones: b.select = 1 - b.select_head = 1 - b.select_tail = 1 - - def reset_layers(self, context): + b.select_head = 1 + b.select_tail = 1 + + def reset_layers(self, context): arm = bpy.context.active_object - arm_data = arm.data - - arm_data.layers = [(x in self.active_layers) for x in range(32)] - + arm_data = arm.data + + arm_data.layers = [(x in self.active_layers) for x in range(32)] + def execute(self, context): self.all_layers(context) self.match_heads_tails(context) self.reset_layers(context) - - return {'FINISHED'} - - -class Operator_BlenRig_Auto_Bone_Roll(bpy.types.Operator): - - bl_idname = "blenrig5.auto_bone_roll" - bl_label = "BlenRig Auto Calulate Roll Angles" - bl_description = "Set roll angles to their predefined values" - bl_options = {'REGISTER', 'UNDO',} - + + return {'FINISHED'} + + +class Operator_BlenRig_Auto_Bone_Roll(bpy.types.Operator): + + bl_idname = "blenrig5.auto_bone_roll" + bl_label = "BlenRig Auto Calulate Roll Angles" + bl_description = "Set roll angles to their predefined values" + bl_options = {'REGISTER', 'UNDO',} + @classmethod def poll(cls, context): if not bpy.context.object: return False else: - return (bpy.context.object.type=='ARMATURE' and context.mode=='EDIT_ARMATURE') - + return (bpy.context.object.type=='ARMATURE' and context.mode=='EDIT_ARMATURE') + active_layers = [] - + def all_layers(self, context): arm = bpy.context.active_object - arm_data = arm.data + arm_data = arm.data for i in range(len(arm_data.layers)): layers_status = arm_data.layers[i] if layers_status.real == 1: self.active_layers.append(i) - + #Turn on all layers - arm_data.layers = [(x in [x]) for x in range(32)] - - def blenrig_update_mirrored(self, context): - props = context.window_manager.blenrig_5_props + arm_data.layers = [(x in [x]) for x in range(32)] + + def blenrig_update_mirrored(self, context): + props = context.window_manager.blenrig_5_props arm = bpy.context.active_object - arm_data = arm.data - bones = arm_data.edit_bones - selected_bones = [] + arm_data = arm.data + bones = arm_data.edit_bones + selected_bones = [] if props.align_selected_only == 1: for b in bpy.context.selected_editable_bones: selected_bones.append(b.name) else: for b in bones: - selected_bones.append(b.name) - + selected_bones.append(b.name) + if arm_data.use_mirror_x == True: for b in bones: if b.name in selected_bones: @@ -168,69 +168,69 @@ class Operator_BlenRig_Auto_Bone_Roll(bpy.types.Operator): b.select = 1 b.select_head = 1 b.select_tail = 1 - bpy.ops.armature.symmetrize(direction='NEGATIVE_X') - bpy.ops.armature.select_all(action='DESELECT') - - # Restore selection - if props.align_selected_only == 1: + bpy.ops.armature.symmetrize(direction='NEGATIVE_X') + bpy.ops.armature.select_all(action='DESELECT') + + # Restore selection + if props.align_selected_only == 1: for b in bones: if b.name in selected_bones: b.select = 1 - b.select_head = 1 - b.select_tail = 1 + b.select_head = 1 + b.select_tail = 1 else: - return False + return False def calc_roll(self, context, roll_type): bpy.ops.object.mode_set(mode='EDIT') - props = context.window_manager.blenrig_5_props + props = context.window_manager.blenrig_5_props arm = bpy.context.active_object - arm_data = arm.data + arm_data = arm.data bones = arm_data.edit_bones - selected_bones = [] + selected_bones = [] if props.align_selected_only == 1: for b in bpy.context.selected_editable_bones: selected_bones.append(b.name) else: for b in bones: - selected_bones.append(b.name) + selected_bones.append(b.name) bpy.ops.armature.reveal() - bpy.ops.armature.select_all(action='DESELECT') + bpy.ops.armature.select_all(action='DESELECT') - if arm_data.use_mirror_x == True: + if arm_data.use_mirror_x == True: for b in bones: if b.name in selected_bones: - if '_R' not in b.name: - if b.keys() != '[]': - if 'b_roll' in b.keys(): + if '_R' not in b.name: + if b.keys() != '[]': + if 'b_roll' in b.keys(): if b['b_roll'][0] == roll_type: b.select = 1 bpy.ops.armature.calculate_roll(type=roll_type, axis_flip=False, axis_only=False) - b.select = 0 + b.select = 0 else: for b in bones: if b.name in selected_bones: - if b.keys() != '[]': - if 'b_roll' in b.keys(): + if b.keys() != '[]': + if 'b_roll' in b.keys(): if b['b_roll'][0] == roll_type: b.select = 1 bpy.ops.armature.calculate_roll(type=roll_type, axis_flip=False, axis_only=False) - b.select = 0 - - # Restore selection - if props.align_selected_only == 1: + b.select = 0 + + # Restore selection + if props.align_selected_only == 1: for b in bones: if b.name in selected_bones: b.select = 1 - b.select_head = 1 - b.select_tail = 1 - + b.select_head = 1 + b.select_tail = 1 + def blenrig_bone_auto_roll(self, context): self.calc_roll(context, 'GLOBAL_POS_Y') - self.calc_roll(context, 'GLOBAL_POS_Z') - self.calc_roll(context, 'GLOBAL_POS_X') - self.calc_roll(context, 'GLOBAL_NEG_Y') - self.calc_roll(context, 'GLOBAL_NEG_Z') + self.calc_roll(context, 'GLOBAL_POS_Z') + self.calc_roll(context, 'GLOBAL_POS_X') + self.calc_roll(context, 'GLOBAL_NEG_Y') + self.calc_roll(context, 'GLOBAL_NEG_Z') self.calc_roll(context, 'GLOBAL_NEG_X') self.calc_roll(context, 'POS_Y') self.calc_roll(context, 'POS_Z') @@ -238,75 +238,75 @@ class Operator_BlenRig_Auto_Bone_Roll(bpy.types.Operator): self.calc_roll(context, 'NEG_Y') self.calc_roll(context, 'NEG_Z') self.calc_roll(context, 'NEG_X') - - + + def blenrig_bone_custom_roll(self, context): bpy.ops.object.mode_set(mode='EDIT') - props = context.window_manager.blenrig_5_props + props = context.window_manager.blenrig_5_props arm = bpy.context.active_object - arm_data = arm.data + arm_data = arm.data bones = arm_data.edit_bones - selected_bones = [] + selected_bones = [] if props.align_selected_only == 1: for b in bpy.context.selected_editable_bones: selected_bones.append(b.name) else: for b in bones: - selected_bones.append(b.name) + selected_bones.append(b.name) bpy.ops.armature.reveal() - bpy.ops.armature.select_all(action='DESELECT') + bpy.ops.armature.select_all(action='DESELECT') if arm_data.use_mirror_x == True: for b in bones: if b.name in selected_bones: - if '_R' not in b.name: - if b.keys() != '[]': - if 'b_roll' in b.keys(): + if '_R' not in b.name: + if b.keys() != '[]': + if 'b_roll' in b.keys(): if b['b_roll'][0] == 'ACTIVE': for t in bones: if (t.name == b['b_roll'][1]): arm.data.edit_bones.active = t b.select = 1 - bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) - b.select = 0 - bpy.ops.armature.select_all(action='DESELECT') + bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) + b.select = 0 + bpy.ops.armature.select_all(action='DESELECT') else: - for b in bones: - if b.name in selected_bones: - if b.keys() != '[]': - if 'b_roll' in b.keys(): + for b in bones: + if b.name in selected_bones: + if b.keys() != '[]': + if 'b_roll' in b.keys(): if b['b_roll'][0] == 'ACTIVE': for t in bones: if (t.name == b['b_roll'][1]): arm.data.edit_bones.active = t b.select = 1 - bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) - b.select = 0 - bpy.ops.armature.select_all(action='DESELECT') - - # Restore selection - if props.align_selected_only == 1: + bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) + b.select = 0 + bpy.ops.armature.select_all(action='DESELECT') + + # Restore selection + if props.align_selected_only == 1: for b in bones: if b.name in selected_bones: b.select = 1 - b.select_head = 1 - b.select_tail = 1 + b.select_head = 1 + b.select_tail = 1 def blenrig_bone_cursor_roll(self, context): bpy.ops.object.mode_set(mode='EDIT') - props = context.window_manager.blenrig_5_props + props = context.window_manager.blenrig_5_props arm = bpy.context.active_object - arm_data = arm.data + arm_data = arm.data bones = arm_data.edit_bones - selected_bones = [] + selected_bones = [] if props.align_selected_only == 1: for b in bpy.context.selected_editable_bones: selected_bones.append(b.name) else: for b in bones: - selected_bones.append(b.name) + selected_bones.append(b.name) bpy.ops.armature.reveal() - bpy.ops.armature.select_all(action='DESELECT') + bpy.ops.armature.select_all(action='DESELECT') #Enable cursor snapping context for area in bpy.context.screen.areas: if area.type == 'VIEW_3D': @@ -314,193 +314,193 @@ class Operator_BlenRig_Auto_Bone_Roll(bpy.types.Operator): c['area'] = area else: print("No View3D, aborting.") - + if arm_data.use_mirror_x == True: for b in bones: if b.name in selected_bones: - if '_R' not in b.name: - if b.keys() != '[]': - if 'b_roll' in b.keys(): + if '_R' not in b.name: + if b.keys() != '[]': + if 'b_roll' in b.keys(): if b['b_roll'][0] == 'CURSOR': for t in bones: if (t.name == b['b_roll'][1]): arm.data.edit_bones.active = t bpy.ops.view3d.snap_cursor_to_active(c) b.select = 1 - bpy.ops.armature.calculate_roll(type='CURSOR', axis_flip=False, axis_only=False) - b.select = 0 - bpy.ops.armature.select_all(action='DESELECT') - else: + bpy.ops.armature.calculate_roll(type='CURSOR', axis_flip=False, axis_only=False) + b.select = 0 + bpy.ops.armature.select_all(action='DESELECT') + else: for b in bones: - if b.name in selected_bones: - if b.keys() != '[]': - if 'b_roll' in b.keys(): + if b.name in selected_bones: + if b.keys() != '[]': + if 'b_roll' in b.keys(): if b['b_roll'][0] == 'CURSOR': for t in bones: if (t.name == b['b_roll'][1]): arm.data.edit_bones.active = t bpy.ops.view3d.snap_cursor_to_active(c) b.select = 1 - bpy.ops.armature.calculate_roll(type='CURSOR', axis_flip=False, axis_only=False) - b.select = 0 - bpy.ops.armature.select_all(action='DESELECT') - - # Restore selection - if props.align_selected_only == 1: + bpy.ops.armature.calculate_roll(type='CURSOR', axis_flip=False, axis_only=False) + b.select = 0 + bpy.ops.armature.select_all(action='DESELECT') + + # Restore selection + if props.align_selected_only == 1: for b in bones: if b.name in selected_bones: b.select = 1 - b.select_head = 1 - b.select_tail = 1 + b.select_head = 1 + b.select_tail = 1 def blenrig_bone_align(self, context): bpy.ops.object.mode_set(mode='EDIT') - props = context.window_manager.blenrig_5_props + props = context.window_manager.blenrig_5_props arm = bpy.context.active_object - arm_data = arm.data + arm_data = arm.data bones = arm_data.edit_bones - selected_bones = [] + selected_bones = [] if props.align_selected_only == 1: for b in bpy.context.selected_editable_bones: selected_bones.append(b.name) else: for b in bones: - selected_bones.append(b.name) + selected_bones.append(b.name) bpy.ops.armature.reveal() - bpy.ops.armature.select_all(action='DESELECT') + bpy.ops.armature.select_all(action='DESELECT') if arm_data.use_mirror_x == True: for b in bones: if b.name in selected_bones: - if '_R' not in b.name: - if b.keys() != '[]': + if '_R' not in b.name: + if b.keys() != '[]': if 'b_align' in b.keys(): - if b['b_align'][0] != "''": + if b['b_align'][0] != "''": for t in bones: if (t.name == b['b_align'][0]): arm.data.edit_bones.active = t b.select = 1 - bpy.ops.armature.align() - bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) - b.select = 0 - bpy.ops.armature.select_all(action='DESELECT') + bpy.ops.armature.align() + bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) + b.select = 0 + bpy.ops.armature.select_all(action='DESELECT') for t2 in bones: - if t2.keys() != '[]': - if 'b_align' in t2.keys(): + if t2.keys() != '[]': + if 'b_align' in t2.keys(): if (b.name == t2['b_head'][0]): if t2['b_head'][1] == 'head': t2.head = b.head if t2['b_head'][1] == 'tail': - t2.head = b.tail + t2.head = b.tail if (b.name == t2['b_tail'][0]): if t2['b_tail'][1] == 'head': t2.tail = b.head if t2['b_head'][1] == 'tail': - t2.tail = b.tail + t2.tail = b.tail arm.data.edit_bones.active = t t2.select = 1 - bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) - t2.select = 0 - bpy.ops.armature.select_all(action='DESELECT') - else: + bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) + t2.select = 0 + bpy.ops.armature.select_all(action='DESELECT') + else: for b in bones: - if b.name in selected_bones: - if b.keys() != '[]': - if 'b_align' in b.keys(): - if b['b_align'][0] != "''": + if b.name in selected_bones: + if b.keys() != '[]': + if 'b_align' in b.keys(): + if b['b_align'][0] != "''": for t in bones: if (t.name == b['b_align'][0]): arm.data.edit_bones.active = t b.select = 1 - bpy.ops.armature.align() - bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) - b.select = 0 - bpy.ops.armature.select_all(action='DESELECT') + bpy.ops.armature.align() + bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) + b.select = 0 + bpy.ops.armature.select_all(action='DESELECT') for t2 in bones: - if t2.keys() != '[]': - if 'b_align' in t2.keys(): + if t2.keys() != '[]': + if 'b_align' in t2.keys(): if (b.name == t2['b_head'][0]): if t2['b_head'][1] == 'head': t2.head = b.head if t2['b_head'][1] == 'tail': - t2.head = b.tail + t2.head = b.tail if (b.name == t2['b_tail'][0]): if t2['b_tail'][1] == 'head': t2.tail = b.head if t2['b_head'][1] == 'tail': - t2.tail = b.tail + t2.tail = b.tail arm.data.edit_bones.active = t t2.select = 1 - bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) - t2.select = 0 - bpy.ops.armature.select_all(action='DESELECT') - - # Restore selection - if props.align_selected_only == 1: + bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) + t2.select = 0 + bpy.ops.armature.select_all(action='DESELECT') + + # Restore selection + if props.align_selected_only == 1: for b in bones: if b.name in selected_bones: b.select = 1 - b.select_head = 1 - b.select_tail = 1 + b.select_head = 1 + b.select_tail = 1 - def reset_layers(self, context): + def reset_layers(self, context): arm = bpy.context.active_object - arm_data = arm.data - arm_data.layers = [(x in self.active_layers) for x in range(32)] + arm_data = arm.data + arm_data.layers = [(x in self.active_layers) for x in range(32)] def execute(self, context): - self.all_layers(context) + self.all_layers(context) self.blenrig_bone_auto_roll(context) self.blenrig_bone_custom_roll(context) self.blenrig_bone_cursor_roll(context) - self.blenrig_bone_align(context) - self.blenrig_update_mirrored(context) - self.reset_layers(context) - + self.blenrig_bone_align(context) + self.blenrig_update_mirrored(context) + self.reset_layers(context) - return {'FINISHED'} -class Operator_BlenRig_Custom_Bone_Roll(bpy.types.Operator): - - bl_idname = "blenrig5.custom_bone_roll" - bl_label = "BlenRig User Defined Roll Angles" - bl_description = "Calulate roll angles and aligns defined by user" - bl_options = {'REGISTER', 'UNDO',} + return {'FINISHED'} + +class Operator_BlenRig_Custom_Bone_Roll(bpy.types.Operator): + + bl_idname = "blenrig5.custom_bone_roll" + bl_label = "BlenRig User Defined Roll Angles" + bl_description = "Calulate roll angles and aligns defined by user" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if not bpy.context.object: return False else: - return (bpy.context.object.type=='ARMATURE' and context.mode=='EDIT_ARMATURE') + return (bpy.context.object.type=='ARMATURE' and context.mode=='EDIT_ARMATURE') active_layers = [] - + def all_layers(self, context): arm = bpy.context.active_object - arm_data = arm.data + arm_data = arm.data for i in range(len(arm_data.layers)): layers_status = arm_data.layers[i] if layers_status.real == 1: self.active_layers.append(i) - - #Turn on all layers - arm_data.layers = [(x in [x]) for x in range(32)] - def blenrig_update_mirrored(self, context): - props = context.window_manager.blenrig_5_props + #Turn on all layers + arm_data.layers = [(x in [x]) for x in range(32)] + + def blenrig_update_mirrored(self, context): + props = context.window_manager.blenrig_5_props arm = bpy.context.active_object - arm_data = arm.data - bones = arm_data.edit_bones - selected_bones = [] + arm_data = arm.data + bones = arm_data.edit_bones + selected_bones = [] if props.align_selected_only == 1: for b in bpy.context.selected_editable_bones: selected_bones.append(b.name) else: for b in bones: - selected_bones.append(b.name) - + selected_bones.append(b.name) + if arm_data.use_mirror_x == True: for b in bones: if b.name in selected_bones: @@ -508,258 +508,258 @@ class Operator_BlenRig_Custom_Bone_Roll(bpy.types.Operator): b.select = 1 b.select_head = 1 b.select_tail = 1 - bpy.ops.armature.symmetrize(direction='NEGATIVE_X') - bpy.ops.armature.select_all(action='DESELECT') - - # Restore selection - if props.align_selected_only == 1: + bpy.ops.armature.symmetrize(direction='NEGATIVE_X') + bpy.ops.armature.select_all(action='DESELECT') + + # Restore selection + if props.align_selected_only == 1: for b in bones: if b.name in selected_bones: b.select = 1 - b.select_head = 1 - b.select_tail = 1 - + b.select_head = 1 + b.select_tail = 1 + else: - return False - + return False + def blenrig_bone_custom_roll(self, context): bpy.ops.object.mode_set(mode='EDIT') - props = context.window_manager.blenrig_5_props + props = context.window_manager.blenrig_5_props arm = bpy.context.active_object - arm_data = arm.data + arm_data = arm.data bones = arm_data.edit_bones - selected_bones = [] + selected_bones = [] if props.align_selected_only == 1: for b in bpy.context.selected_editable_bones: selected_bones.append(b.name) else: for b in bones: - selected_bones.append(b.name) + selected_bones.append(b.name) bpy.ops.armature.reveal() - bpy.ops.armature.select_all(action='DESELECT') + bpy.ops.armature.select_all(action='DESELECT') if arm_data.use_mirror_x == True: for b in bones: if b.name in selected_bones: - if '_R' not in b.name: - if b.keys() != '[]': - if 'b_roll' in b.keys(): + if '_R' not in b.name: + if b.keys() != '[]': + if 'b_roll' in b.keys(): if b['b_roll'][0] == 'ACTIVE': for t in bones: if (t.name == b['b_roll'][1]): arm.data.edit_bones.active = t b.select = 1 - bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) - b.select = 0 - bpy.ops.armature.select_all(action='DESELECT') + bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) + b.select = 0 + bpy.ops.armature.select_all(action='DESELECT') else: - for b in bones: - if b.name in selected_bones: - if b.keys() != '[]': - if 'b_roll' in b.keys(): + for b in bones: + if b.name in selected_bones: + if b.keys() != '[]': + if 'b_roll' in b.keys(): if b['b_roll'][0] == 'ACTIVE': for t in bones: if (t.name == b['b_roll'][1]): arm.data.edit_bones.active = t b.select = 1 - bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) - b.select = 0 - bpy.ops.armature.select_all(action='DESELECT') - - # Restore selection - if props.align_selected_only == 1: + bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) + b.select = 0 + bpy.ops.armature.select_all(action='DESELECT') + + # Restore selection + if props.align_selected_only == 1: for b in bones: if b.name in selected_bones: b.select = 1 - b.select_head = 1 - b.select_tail = 1 + b.select_head = 1 + b.select_tail = 1 def blenrig_bone_align(self, context): bpy.ops.object.mode_set(mode='EDIT') - props = context.window_manager.blenrig_5_props + props = context.window_manager.blenrig_5_props arm = bpy.context.active_object - arm_data = arm.data + arm_data = arm.data bones = arm_data.edit_bones - selected_bones = [] + selected_bones = [] if props.align_selected_only == 1: for b in bpy.context.selected_editable_bones: selected_bones.append(b.name) else: for b in bones: - selected_bones.append(b.name) + selected_bones.append(b.name) bpy.ops.armature.reveal() - bpy.ops.armature.select_all(action='DESELECT') + bpy.ops.armature.select_all(action='DESELECT') if arm_data.use_mirror_x == True: for b in bones: if b.name in selected_bones: - if '_R' not in b.name: - if b.keys() != '[]': + if '_R' not in b.name: + if b.keys() != '[]': if 'b_align' in b.keys(): - if b['b_align'][0] != "''": + if b['b_align'][0] != "''": for t in bones: if (t.name == b['b_align'][0]): arm.data.edit_bones.active = t b.select = 1 - bpy.ops.armature.align() - bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) - b.select = 0 - bpy.ops.armature.select_all(action='DESELECT') + bpy.ops.armature.align() + bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) + b.select = 0 + bpy.ops.armature.select_all(action='DESELECT') for t2 in bones: - if t2.keys() != '[]': - if 'b_align' in t2.keys(): + if t2.keys() != '[]': + if 'b_align' in t2.keys(): if (b.name == t2['b_head'][0]): if t2['b_head'][1] == 'head': t2.head = b.head if t2['b_head'][1] == 'tail': - t2.head = b.tail + t2.head = b.tail if (b.name == t2['b_tail'][0]): if t2['b_tail'][1] == 'head': t2.tail = b.head if t2['b_head'][1] == 'tail': - t2.tail = b.tail + t2.tail = b.tail arm.data.edit_bones.active = t t2.select = 1 - bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) - t2.select = 0 - bpy.ops.armature.select_all(action='DESELECT') - else: + bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) + t2.select = 0 + bpy.ops.armature.select_all(action='DESELECT') + else: for b in bones: - if b.name in selected_bones: - if b.keys() != '[]': - if 'b_align' in b.keys(): - if b['b_align'][0] != "''": + if b.name in selected_bones: + if b.keys() != '[]': + if 'b_align' in b.keys(): + if b['b_align'][0] != "''": for t in bones: if (t.name == b['b_align'][0]): arm.data.edit_bones.active = t b.select = 1 - bpy.ops.armature.align() - bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) - b.select = 0 - bpy.ops.armature.select_all(action='DESELECT') + bpy.ops.armature.align() + bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) + b.select = 0 + bpy.ops.armature.select_all(action='DESELECT') for t2 in bones: - if t2.keys() != '[]': - if 'b_align' in t2.keys(): + if t2.keys() != '[]': + if 'b_align' in t2.keys(): if (b.name == t2['b_head'][0]): if t2['b_head'][1] == 'head': t2.head = b.head if t2['b_head'][1] == 'tail': - t2.head = b.tail + t2.head = b.tail if (b.name == t2['b_tail'][0]): if t2['b_tail'][1] == 'head': t2.tail = b.head if t2['b_head'][1] == 'tail': - t2.tail = b.tail + t2.tail = b.tail arm.data.edit_bones.active = t t2.select = 1 - bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) - t2.select = 0 - bpy.ops.armature.select_all(action='DESELECT') - - # Restore selection - if props.align_selected_only == 1: + bpy.ops.armature.calculate_roll(type='ACTIVE', axis_flip=False, axis_only=False) + t2.select = 0 + bpy.ops.armature.select_all(action='DESELECT') + + # Restore selection + if props.align_selected_only == 1: for b in bones: if b.name in selected_bones: b.select = 1 - b.select_head = 1 - b.select_tail = 1 + b.select_head = 1 + b.select_tail = 1 - def reset_layers(self, context): + def reset_layers(self, context): arm = bpy.context.active_object - arm_data = arm.data - arm_data.layers = [(x in self.active_layers) for x in range(32)] + arm_data = arm.data + arm_data.layers = [(x in self.active_layers) for x in range(32)] def execute(self, context): - self.all_layers(context) + self.all_layers(context) self.blenrig_bone_custom_roll(context) self.blenrig_bone_align(context) - self.blenrig_update_mirrored(context) - self.reset_layers(context) + self.blenrig_update_mirrored(context) + self.reset_layers(context) - return {'FINISHED'} + return {'FINISHED'} -class Operator_BlenRig_Store_Roll_Angles(bpy.types.Operator): - - bl_idname = "blenrig5.store_roll_angles" - bl_label = "BlenRig Store Roll Angles" - bl_description = "Store current roll angles for each bone" - bl_options = {'REGISTER', 'UNDO',} +class Operator_BlenRig_Store_Roll_Angles(bpy.types.Operator): + + bl_idname = "blenrig5.store_roll_angles" + bl_label = "BlenRig Store Roll Angles" + bl_description = "Store current roll angles for each bone" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if not bpy.context.object: return False else: - return (bpy.context.object.type=='ARMATURE' and context.mode=='EDIT_ARMATURE') + return (bpy.context.object.type=='ARMATURE' and context.mode=='EDIT_ARMATURE') - def blenrig_store_rolls(self, context): - props = context.window_manager.blenrig_5_props + def blenrig_store_rolls(self, context): + props = context.window_manager.blenrig_5_props arm = bpy.context.active_object - arm_data = arm.data - bones = arm_data.edit_bones - selected_bones = [] + arm_data = arm.data + bones = arm_data.edit_bones + selected_bones = [] if props.align_selected_only == 1: for b in bpy.context.selected_editable_bones: selected_bones.append(b.name) else: for b in bones: - selected_bones.append(b.name) - + selected_bones.append(b.name) + for b in bones: if b.name in selected_bones: b["b_roll_angle"] = ['x'.replace('x', str(b.roll))] - + def execute(self, context): - self.blenrig_store_rolls(context) + self.blenrig_store_rolls(context) - return {'FINISHED'} + return {'FINISHED'} -class Operator_BlenRig_Restore_Roll_Angles(bpy.types.Operator): - - bl_idname = "blenrig5.restore_roll_angles" - bl_label = "BlenRig restore Roll Angles" - bl_description = "Retore roll angles to the ones saved in each bone" - bl_options = {'REGISTER', 'UNDO',} +class Operator_BlenRig_Restore_Roll_Angles(bpy.types.Operator): + + bl_idname = "blenrig5.restore_roll_angles" + bl_label = "BlenRig restore Roll Angles" + bl_description = "Retore roll angles to the ones saved in each bone" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if not bpy.context.object: return False else: - return (bpy.context.object.type=='ARMATURE' and context.mode=='EDIT_ARMATURE') + return (bpy.context.object.type=='ARMATURE' and context.mode=='EDIT_ARMATURE') - def blenrig_restore_rolls(self, context): - props = context.window_manager.blenrig_5_props + def blenrig_restore_rolls(self, context): + props = context.window_manager.blenrig_5_props arm = bpy.context.active_object - arm_data = arm.data - bones = arm_data.edit_bones - selected_bones = [] + arm_data = arm.data + bones = arm_data.edit_bones + selected_bones = [] if props.align_selected_only == 1: for b in bpy.context.selected_editable_bones: selected_bones.append(b.name) else: for b in bones: - selected_bones.append(b.name) - + selected_bones.append(b.name) + for b in bones: if b.name in selected_bones: b.roll = float(b["b_roll_angle"][0]) - - def execute(self, context): - self.blenrig_restore_rolls(context) - return {'FINISHED'} + def execute(self, context): + self.blenrig_restore_rolls(context) + + return {'FINISHED'} ##################### Dynamic Shaping Values Reset ############################ -class Operator_BlenRig_Reset_Dynamic(bpy.types.Operator): - - bl_idname = "blenrig5.reset_dynamic_shaping" - bl_label = "BlenRig Reset Dynamic Shaping" - bl_description = "Reset Dynamic Shaping values" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} +class Operator_BlenRig_Reset_Dynamic(bpy.types.Operator): + + bl_idname = "blenrig5.reset_dynamic_shaping" + bl_label = "BlenRig Reset Dynamic Shaping" + bl_description = "Reset Dynamic Shaping values" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} @classmethod def poll(cls, context): @@ -769,8 +769,8 @@ class Operator_BlenRig_Reset_Dynamic(bpy.types.Operator): return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') def reset_dynamic_values(self, context): - - scene = bpy.context.view_layer + + scene = bpy.context.scene pbones = bpy.context.active_object.pose.bones pbones["properties_head"]["flex_head_scale"] = 1.0 @@ -807,16 +807,16 @@ class Operator_BlenRig_Reset_Dynamic(bpy.types.Operator): pbones["properties_leg_L"]["flex_shin_length_L"] = 1.0 pbones["properties_leg_L"]["flex_shin_width_L"] = 1.0 pbones["properties_leg_L"]["flex_foot_scale_L"] = 1.0 - pbones["properties_leg_L"]["flex_foot_loc_L"] = 0.0 - scene.update() + pbones["properties_leg_L"]["flex_foot_loc_L"] = 0.0 + scene.update() def update_scene(self, context): current = bpy.context.scene.frame_current bpy.context.scene.frame_set(2, subframe=0) bpy.context.scene.frame_set(current, subframe=0) - + def execute(self, context): self.reset_dynamic_values(context) self.update_scene(context) - - return {'FINISHED'} \ No newline at end of file + + return {'FINISHED'} \ No newline at end of file diff --git a/ops_baking.py b/ops_baking.py index ec4bc9a..06de240 100644 --- a/ops_baking.py +++ b/ops_baking.py @@ -8,19 +8,19 @@ class ARMATURE_OT_mesh_pose_baker(bpy.types.Operator): bl_label = "BlenRig 5 Mesh Baker" bl_idname = "blenrig5.mesh_pose_baker" bl_description = "Bake current pose to mesh" - bl_options = {'REGISTER', 'UNDO'} - + bl_options = {'REGISTER', 'UNDO'} + @classmethod def poll(cls, context): if not bpy.context.object: return False return (bpy.context.object.type == "MESH" and context.mode=='OBJECT') - - #Baking + + #Baking def bake(self, context): - props = context.window_manager.blenrig_5_props + props = context.window_manager.blenrig_5_props if not bpy.context.object: - return False + return False old_ob = bpy.context.active_object bake_meshes = [ob.name for ob in bpy.context.selected_objects if ob.type=="MESH"] @@ -35,8 +35,8 @@ class ARMATURE_OT_mesh_pose_baker(bpy.types.Operator): if mod.type == 'SUBSURF': old_state = mod.show_viewport mod.show_viewport = False - - + + # --- get a mesh from the object --- depsgraph = bpy.context.evaluated_depsgraph_get() mesh_owner = ob.evaluated_get(depsgraph) @@ -46,16 +46,16 @@ class ARMATURE_OT_mesh_pose_baker(bpy.types.Operator): if mod.type == 'SUBSURF': mod.show_viewport = old_state - # If Bake to shape option is off - if props.bake_to_shape == False: - # Check if there are shapekeys in object - try: + # If Bake to shape option is off + if props.bake_to_shape == False: + # Check if there are shapekeys in object + try: if ob.data.shape_keys.key_blocks: key = ob.data.shape_keys - shapekeys = key.key_blocks + shapekeys = key.key_blocks # Transfer vertex locations to Basis key for vert in ob.data.vertices: - shapekeys['Basis'].data[vert.index].co = mesh.vertices[vert.index].co + shapekeys['Basis'].data[vert.index].co = mesh.vertices[vert.index].co # Make baked shape active for i in range(len(shapekeys)): @@ -63,20 +63,20 @@ class ARMATURE_OT_mesh_pose_baker(bpy.types.Operator): if shape.name == 'Basis': ob.active_shape_key_index = i except (AttributeError): - # Transfer vertex locations to Mesh + # Transfer vertex locations to Mesh for vert in ob.data.vertices: - vert.co = mesh.vertices[vert.index].co + vert.co = mesh.vertices[vert.index].co + + # If Bake to shape option is on + else: - # If Bake to shape option is on - else: - # Check if there are shapekeys in object try: ob.data.shape_keys.key_blocks except (AttributeError): Basis = ob.shape_key_add(from_mix=False) Basis.name = 'Basis' - + # Create new shape for storing the bake baked_shape = ob.shape_key_add(from_mix=False) @@ -85,7 +85,7 @@ class ARMATURE_OT_mesh_pose_baker(bpy.types.Operator): # Transfer vertex locations for vert in ob.data.vertices: - baked_shape.data[vert.index].co = mesh.vertices[vert.index].co + baked_shape.data[vert.index].co = mesh.vertices[vert.index].co # Make baked shape active for i in range(len(ob.data.shape_keys.key_blocks)): @@ -102,10 +102,10 @@ class ARMATURE_OT_mesh_pose_baker(bpy.types.Operator): #Unbind Mdef modifier if object is bound def mdef_unbind(self, context): if not bpy.context.object: - return False - + return False + old_ob = bpy.context.active_object - + bake_meshes = [ob.name for ob in bpy.context.selected_objects if ob.type=="MESH"] for name in bake_meshes: if name in bpy.data.objects: @@ -122,26 +122,26 @@ class ARMATURE_OT_mesh_pose_baker(bpy.types.Operator): bpy.context.view_layer.objects.active = old_ob def execute(self, context): - self.bake(context) - self.mdef_unbind(context) + self.bake(context) + self.mdef_unbind(context) self.report({'INFO'}, "Baking done") - return{'FINISHED'} + return{'FINISHED'} # Hook Reset operator class ARMATURE_OT_reset_hooks(bpy.types.Operator): bl_label = "BlenRig 5 Reset Hooks" bl_idname = "blenrig5.reset_hooks" bl_description = "Reset Hooks on Lattices and Curves" - bl_options = {'REGISTER', 'UNDO'} + bl_options = {'REGISTER', 'UNDO'} @classmethod def poll(cls, context): if not bpy.context.object: return False return (bpy.context.object.type == "LATTICE", "CURVE" and context.mode=='OBJECT') - + def reset_hooks(self,context): - + selected_lattices = [ob.name for ob in bpy.context.selected_objects if ob.type=="LATTICE"] for name in selected_lattices: @@ -155,7 +155,7 @@ class ARMATURE_OT_reset_hooks(bpy.types.Operator): for mod in ob.modifiers: if mod.type == 'HOOK': bpy.ops.object.hook_reset(modifier=mod.name) - bpy.ops.object.mode_set(mode='OBJECT') + bpy.ops.object.mode_set(mode='OBJECT') selected_curves = [ob.name for ob in bpy.context.selected_objects if ob.type=="CURVE"] @@ -170,20 +170,20 @@ class ARMATURE_OT_reset_hooks(bpy.types.Operator): for mod in ob.modifiers: if mod.type == 'HOOK': bpy.ops.object.hook_reset(modifier=mod.name) - bpy.ops.object.mode_set(mode='OBJECT') + bpy.ops.object.mode_set(mode='OBJECT') def execute(self, context): - self.reset_hooks(context) + self.reset_hooks(context) self.report({'INFO'}, "Hooks Reseted") - return{'FINISHED'} + return{'FINISHED'} # Reset Armature related Lattices and Curves operator class ARMATURE_OT_reset_deformers(bpy.types.Operator): bl_label = "BlenRig 5 Reset Deformers" bl_idname = "blenrig5.reset_deformers" bl_description = "Reset Armature related Lattices and Curves" - bl_options = {'REGISTER', 'UNDO'} - + bl_options = {'REGISTER', 'UNDO'} + @classmethod def poll(cls, context): if not bpy.context.object: @@ -191,9 +191,9 @@ class ARMATURE_OT_reset_deformers(bpy.types.Operator): else: return (bpy.context.object.type=='ARMATURE' and \ context.mode=='POSE') - + def reset_deformers(self, context): - + # preparing scene bpy.ops.object.mode_set(mode='OBJECT') old_active = bpy.context.active_object @@ -205,7 +205,7 @@ class ARMATURE_OT_reset_deformers(bpy.types.Operator): # Armature related lattices and curves deformers_collection = [] selected_deformers = [] - + for ob in bpy.data.objects: if ob.type in 'LATTICE' or 'CURVE': for mod in ob.modifiers: @@ -221,7 +221,7 @@ class ARMATURE_OT_reset_deformers(bpy.types.Operator): coll.hide_viewport = False ob.select_set(True) selected_deformers.append(ob.name) - + for name in selected_deformers: if name in bpy.data.objects: ob = bpy.data.objects[name] @@ -244,13 +244,13 @@ class ARMATURE_OT_reset_deformers(bpy.types.Operator): ob.select_set(True) bpy.ops.object.mode_set(mode='POSE') #Hack for updating objects - bpy.context.scene.frame_set(bpy.context.scene.frame_current) + bpy.context.scene.frame_set(bpy.context.scene.frame_current) def execute(self, context): self.reset_deformers(context) self.report({'INFO'}, "Lattices and Curves Reset") return{'FINISHED'} - + # Armature Baker operator @@ -258,8 +258,8 @@ class ARMATURE_OT_armature_baker(bpy.types.Operator): bl_label = "BlenRig 5 Armature Baker" bl_idname = "blenrig5.armature_baker" bl_description = "Bake current pose to armature" - bl_options = {'REGISTER', 'UNDO'} - + bl_options = {'REGISTER', 'UNDO'} + @classmethod def poll(cls, context): if not bpy.context.object: @@ -267,9 +267,9 @@ class ARMATURE_OT_armature_baker(bpy.types.Operator): else: return (bpy.context.object.type=='ARMATURE' and \ context.mode=='POSE') - + def bake_armature(self, context): - + # preparing scene bpy.ops.object.mode_set(mode='OBJECT') old_active = bpy.context.active_object @@ -278,7 +278,7 @@ class ARMATURE_OT_armature_baker(bpy.types.Operator): for ob in old_selected: ob.select_set(False) - + # unparenting external objects related to the armature deformers_collection = [] parent_pairs = [] @@ -296,7 +296,7 @@ class ARMATURE_OT_armature_baker(bpy.types.Operator): ob.select_set(True) parent_pairs.append([ob, ob.parent, ob.parent_bone]) bpy.ops.object.parent_clear(type='CLEAR_KEEP_TRANSFORM') - + #Back to Armature for ob in bpy.context.selected_objects: ob.select_set(False) @@ -306,12 +306,12 @@ class ARMATURE_OT_armature_baker(bpy.types.Operator): bpy.ops.object.mode_set(mode='POSE') posebones = bpy.context.object.pose.bones - + # Bake Armature bpy.ops.pose.armature_apply() - + arm = bpy.context.object.data - + # Reset Constraints for b in posebones: for con in b.constraints: @@ -341,7 +341,7 @@ class ARMATURE_OT_armature_baker(bpy.types.Operator): ob, parent, bone = pp ob.parent = parent ob.parent_type = 'BONE' - ob.parent_bone == bone + ob.parent_bone == bone #Reseting Hooks ob.select_set(True) bpy.ops.blenrig5.reset_hooks() @@ -373,7 +373,7 @@ class ARMATURE_OT_reset_constraints(bpy.types.Operator): bl_label = "BlenRig 5 Reset Constraints" bl_idname = "blenrig5.reset_constraints" bl_description = "Reset all posebone constraints" - + @classmethod def poll(cls, context): if not bpy.context.object: @@ -381,14 +381,14 @@ class ARMATURE_OT_reset_constraints(bpy.types.Operator): else: return (bpy.context.object.type=='ARMATURE' and \ context.mode=='POSE') - + def invoke(self, context, event): pbones = context.active_object.pose.bones edit_bones = context.active_object.data.edit_bones if len(pbones) < 1: self.report({'INFO'}, "No bones found") return{'FINISHED'} - + amount = 0 arm = bpy.context.object.data diff --git a/ops_picker_body.py b/ops_picker_body.py index a5c6052..c2b9416 100644 --- a/ops_picker_body.py +++ b/ops_picker_body.py @@ -6,10 +6,10 @@ import bpy -class Operator_Zoom_Selected(bpy.types.Operator): - bl_idname = "operator.zoom" - bl_label = "BlenRig Zoom to Selected" - bl_description = "Zoom to selected / View All" +class Operator_Zoom_Selected(bpy.types.Operator): + bl_idname = "operator.zoom" + bl_label = "BlenRig Zoom to Selected" + bl_description = "Zoom to selected / View All" def invoke(self, context, event): #Context Override @@ -27,8 +27,8 @@ class Operator_Zoom_Selected(bpy.types.Operator): else: bpy.ops.view3d.view_all(override, center=False) return {"FINISHED"} - - + + ################### SELECTION OPERATORS ################################## #Generic Selection Operator Structure @@ -37,2922 +37,2921 @@ def select_op(self, context, event, b_name): #b_name will be replaced by the act armobj = bpy.context.active_object arm = bpy.context.active_object.data if (b_name in armobj.pose.bones): # this line is replaced with actual bone name - #Target Bone - Bone = armobj.pose.bones[b_name] # this line is replaced with actual bone name + #Target Bone + Bone = armobj.pose.bones[b_name] # this line is replaced with actual bone name #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 + b.bone.select = 1 else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone -######## BODY PICKER OPERATORS ########################################### +######## BODY PICKER OPERATORS ########################################### #HEAD -class Operator_Head_Stretch(bpy.types.Operator): - bl_idname = "operator.head_stretch" - bl_label = "BlenRig Select head_stretch" - bl_description = "head_stretch" +class Operator_Head_Stretch(bpy.types.Operator): + bl_idname = "operator.head_stretch" + bl_label = "BlenRig Select head_stretch" + bl_description = "head_stretch" bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): - select_op(self, context, event, "head_stretch") - return {"FINISHED"} + select_op(self, context, event, "head_stretch") + return {"FINISHED"} -class Operator_Head_Toon(bpy.types.Operator): - bl_idname = "operator.head_toon" - bl_label = "BlenRig Select head_toon" - bl_description = "head_toon" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "head_toon") - return {"FINISHED"} - -class Operator_Head_Top_Ctrl(bpy.types.Operator): - bl_idname = "operator.head_top_ctrl" - bl_label = "BlenRig Select head_top_ctrl" - bl_description = "head_top_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "head_top_ctrl") - return {"FINISHED"} - -class Operator_Head_Mid_Ctrl(bpy.types.Operator): - bl_idname = "operator.head_mid_ctrl" - bl_label = "BlenRigSelect head_mid_ctrl" - bl_description = "head_mid_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} +class Operator_Head_Toon(bpy.types.Operator): + bl_idname = "operator.head_toon" + bl_label = "BlenRig Select head_toon" + bl_description = "head_toon" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): - select_op(self, context, event, "head_mid_ctrl") - return {"FINISHED"} - -class Operator_Head_Mid_Curve(bpy.types.Operator): - bl_idname = "operator.head_mid_curve" - bl_label = "BlenRig Select head_mid_curve" - bl_description = "head_mid_curve" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "head_mid_curve") - return {"FINISHED"} - -class Operator_Mouth_Str_Ctrl(bpy.types.Operator): - bl_idname = "operator.mouth_str_ctrl" - bl_label = "BlenRig Select mouth_str_ctrl" - bl_description = "mouth_str_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "mouth_str_ctrl") - return {"FINISHED"} + select_op(self, context, event, "head_toon") + return {"FINISHED"} -class Operator_Look_L(bpy.types.Operator): - bl_idname = "operator.look_l" - bl_label = "BlenRIg Select look_L" - bl_description = "look_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "look_L") - return {"FINISHED"} - -class Operator_Look_R(bpy.types.Operator): - bl_idname = "operator.look_r" - bl_label = "BlenRIg Select look_R" - bl_description = "look_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} +class Operator_Head_Top_Ctrl(bpy.types.Operator): + bl_idname = "operator.head_top_ctrl" + bl_label = "BlenRig Select head_top_ctrl" + bl_description = "head_top_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): - select_op(self, context, event, "look_R") - return {"FINISHED"} + select_op(self, context, event, "head_top_ctrl") + return {"FINISHED"} + +class Operator_Head_Mid_Ctrl(bpy.types.Operator): + bl_idname = "operator.head_mid_ctrl" + bl_label = "BlenRigSelect head_mid_ctrl" + bl_description = "head_mid_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Look(bpy.types.Operator): - bl_idname = "operator.look" - bl_label = "BlenRIg Select look" - bl_description = "look" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "look") - return {"FINISHED"} + select_op(self, context, event, "head_mid_ctrl") + return {"FINISHED"} + +class Operator_Head_Mid_Curve(bpy.types.Operator): + bl_idname = "operator.head_mid_curve" + bl_label = "BlenRig Select head_mid_curve" + bl_description = "head_mid_curve" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Head_FK(bpy.types.Operator): - bl_idname = "operator.head_fk" - bl_label = "BlenRIg Select head_fk" - bl_description = "head_fk" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "head_fk") - return {"FINISHED"} + select_op(self, context, event, "head_mid_curve") + return {"FINISHED"} -class Operator_Head_IK(bpy.types.Operator): - bl_idname = "operator.head_ik_ctrl" - bl_label = "BlenRIg Select head_ik_ctrl" - bl_description = "head_ik_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} +class Operator_Mouth_Str_Ctrl(bpy.types.Operator): + bl_idname = "operator.mouth_str_ctrl" + bl_label = "BlenRig Select mouth_str_ctrl" + bl_description = "mouth_str_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "mouth_str_ctrl") + return {"FINISHED"} + +class Operator_Look_L(bpy.types.Operator): + bl_idname = "operator.look_l" + bl_label = "BlenRIg Select look_L" + bl_description = "look_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "look_L") + return {"FINISHED"} + +class Operator_Look_R(bpy.types.Operator): + bl_idname = "operator.look_r" + bl_label = "BlenRIg Select look_R" + bl_description = "look_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "look_R") + return {"FINISHED"} + +class Operator_Look(bpy.types.Operator): + bl_idname = "operator.look" + bl_label = "BlenRIg Select look" + bl_description = "look" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "look") + return {"FINISHED"} + +class Operator_Head_FK(bpy.types.Operator): + bl_idname = "operator.head_fk" + bl_label = "BlenRIg Select head_fk" + bl_description = "head_fk" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "head_fk") + return {"FINISHED"} + +class Operator_Head_IK(bpy.types.Operator): + bl_idname = "operator.head_ik_ctrl" + bl_label = "BlenRIg Select head_ik_ctrl" + bl_description = "head_ik_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): armobj = bpy.context.active_object - arm = bpy.context.active_object.data - prop = int(bpy.context.active_object.pose.bones['properties_head'].ik_head) - prop_hinge = int(bpy.context.active_object.pose.bones['properties_head'].hinge_head) + arm = bpy.context.active_object.data + prop = int(bpy.context.active_object.pose.bones['properties_head'].ik_head) + prop_hinge = int(bpy.context.active_object.pose.bones['properties_head'].hinge_head) if ('head_fk' and 'head_ik_ctrl' in armobj.pose.bones): - #Target Bone + #Target Bone if prop == 0 or prop_hinge == 1: Bone = armobj.pose.bones["head_ik_ctrl"] else: - Bone = armobj.pose.bones["head_fk"] + Bone = armobj.pose.bones["head_fk"] #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} + arm.bones.active = Bone.bone + return {"FINISHED"} + +class Operator_Neck_4_Toon(bpy.types.Operator): + bl_idname = "operator.neck_4_toon" + bl_label = "BlenRig Select neck_4_toon" + bl_description = "neck_4_toon" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Neck_4_Toon(bpy.types.Operator): - bl_idname = "operator.neck_4_toon" - bl_label = "BlenRig Select neck_4_toon" - bl_description = "neck_4_toon" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "neck_4_toon") - return {"FINISHED"} - -class Operator_Face_Toon_Up(bpy.types.Operator): - bl_idname = "operator.face_toon_up" - bl_label = "BlenRig Select face_toon_up" - bl_description = "face_toon_up" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - + select_op(self, context, event, "neck_4_toon") + return {"FINISHED"} + +class Operator_Face_Toon_Up(bpy.types.Operator): + bl_idname = "operator.face_toon_up" + bl_label = "BlenRig Select face_toon_up" + bl_description = "face_toon_up" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): - select_op(self, context, event, "face_toon_up") - return {"FINISHED"} - -class Operator_Face_Toon_Mid(bpy.types.Operator): - bl_idname = "operator.face_toon_mid" - bl_label = "BlenRig Select face_toon_mid" - bl_description = "face_toon_mid" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - + select_op(self, context, event, "face_toon_up") + return {"FINISHED"} + +class Operator_Face_Toon_Mid(bpy.types.Operator): + bl_idname = "operator.face_toon_mid" + bl_label = "BlenRig Select face_toon_mid" + bl_description = "face_toon_mid" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): - select_op(self, context, event, "face_toon_mid") - return {"FINISHED"} - -class Operator_Face_Toon_Low(bpy.types.Operator): - bl_idname = "operator.face_toon_low" - bl_label = "BlenRig Select face_toon_low" - bl_description = "face_toon_low" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - + select_op(self, context, event, "face_toon_mid") + return {"FINISHED"} + +class Operator_Face_Toon_Low(bpy.types.Operator): + bl_idname = "operator.face_toon_low" + bl_label = "BlenRig Select face_toon_low" + bl_description = "face_toon_low" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): - select_op(self, context, event, "face_toon_low") - return {"FINISHED"} + select_op(self, context, event, "face_toon_low") + return {"FINISHED"} #NECK -class Operator_Neck_3(bpy.types.Operator): - bl_idname = "operator.neck_3" - bl_label = "BlenRig Select neck_3" - bl_description = "neck_3_ik_ctrl / neck_3_fk" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} +class Operator_Neck_3(bpy.types.Operator): + bl_idname = "operator.neck_3" + bl_label = "BlenRig Select neck_3" + bl_description = "neck_3_ik_ctrl / neck_3_fk" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): armobj = bpy.context.active_object arm = bpy.context.active_object.data - prop = int(bpy.context.active_object.pose.bones['properties_head'].ik_head) + prop = int(bpy.context.active_object.pose.bones['properties_head'].ik_head) if ('neck_3_ik_ctrl' and 'neck_3_fk' in armobj.pose.bones): - #Target Bone + #Target Bone if prop == 0: Bone = armobj.pose.bones["neck_3_ik_ctrl"] else: - Bone = armobj.pose.bones["neck_3_fk"] + Bone = armobj.pose.bones["neck_3_fk"] #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} - -class Operator_Neck_2(bpy.types.Operator): - bl_idname = "operator.neck_2" - bl_label = "BlenRig Select neck_2" - bl_description = "neck_2_ik_ctrl / neck_2_fk" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + arm.bones.active = Bone.bone + return {"FINISHED"} + +class Operator_Neck_2(bpy.types.Operator): + bl_idname = "operator.neck_2" + bl_label = "BlenRig Select neck_2" + bl_description = "neck_2_ik_ctrl / neck_2_fk" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): armobj = bpy.context.active_object arm = bpy.context.active_object.data - prop = int(bpy.context.active_object.pose.bones['properties_head'].ik_head) + prop = int(bpy.context.active_object.pose.bones['properties_head'].ik_head) if ('neck_2_ik_ctrl' and 'neck_2_fk' in armobj.pose.bones): - #Target Bone + #Target Bone if prop == 0: Bone = armobj.pose.bones["neck_2_ik_ctrl"] else: - Bone = armobj.pose.bones["neck_2_fk"] + Bone = armobj.pose.bones["neck_2_fk"] #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} + arm.bones.active = Bone.bone + return {"FINISHED"} -class Operator_Neck_1(bpy.types.Operator): - bl_idname = "operator.neck_1" +class Operator_Neck_1(bpy.types.Operator): + bl_idname = "operator.neck_1" bl_label = "BlenRig Select neck_1" - bl_description = "neck_1_fk" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "neck_1_fk") - return {"FINISHED"} - -class Operator_Neck_3_Toon(bpy.types.Operator): - bl_idname = "operator.neck_3_toon" - bl_label = "BlenRig Select neck_3_toon" - bl_description = "neck_3_toon" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "neck_3_toon") - return {"FINISHED"} + bl_description = "neck_1_fk" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Neck_2_Toon(bpy.types.Operator): - bl_idname = "operator.neck_2_toon" - bl_label = "BlenRig Select neck_2_toon" - bl_description = "neck_2_toon" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "neck_2_toon") - return {"FINISHED"} - -class Operator_Neck_Ctrl(bpy.types.Operator): - bl_idname = "operator.neck_ctrl" - bl_label = "BlenRig Select neck_ctrl" - bl_description = "neck_ik_ctrl / neck_fk_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + select_op(self, context, event, "neck_1_fk") + return {"FINISHED"} + +class Operator_Neck_3_Toon(bpy.types.Operator): + bl_idname = "operator.neck_3_toon" + bl_label = "BlenRig Select neck_3_toon" + bl_description = "neck_3_toon" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "neck_3_toon") + return {"FINISHED"} + +class Operator_Neck_2_Toon(bpy.types.Operator): + bl_idname = "operator.neck_2_toon" + bl_label = "BlenRig Select neck_2_toon" + bl_description = "neck_2_toon" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "neck_2_toon") + return {"FINISHED"} + +class Operator_Neck_Ctrl(bpy.types.Operator): + bl_idname = "operator.neck_ctrl" + bl_label = "BlenRig Select neck_ctrl" + bl_description = "neck_ik_ctrl / neck_fk_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): armobj = bpy.context.active_object arm = bpy.context.active_object.data - prop = int(bpy.context.active_object.pose.bones['properties_head'].ik_head) + prop = int(bpy.context.active_object.pose.bones['properties_head'].ik_head) if ('neck_ik_ctrl' and 'neck_fk_ctrl' in armobj.pose.bones): - #Target Bone + #Target Bone if prop == 0: Bone = armobj.pose.bones["neck_ik_ctrl"] else: - Bone = armobj.pose.bones["neck_fk_ctrl"] + Bone = armobj.pose.bones["neck_fk_ctrl"] #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} + arm.bones.active = Bone.bone + return {"FINISHED"} #SHOULDERS -class Operator_Clavi_Toon_R(bpy.types.Operator): - bl_idname = "operator.clavi_toon_r" - bl_label = "BlenRig Select clavi_toon_R" - bl_description = "clavi_toon_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "clavi_toon_R") - return {"FINISHED"} +class Operator_Clavi_Toon_R(bpy.types.Operator): + bl_idname = "operator.clavi_toon_r" + bl_label = "BlenRig Select clavi_toon_R" + bl_description = "clavi_toon_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Shoulder_Rot_R(bpy.types.Operator): - bl_idname = "operator.shoulder_rot_r" - bl_label = "BlenRig Select shoulder_rot_R" - bl_description = "shoulder_rot_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "shoulder_rot_R") - return {"FINISHED"} + select_op(self, context, event, "clavi_toon_R") + return {"FINISHED"} -class Operator_Shoulder_R(bpy.types.Operator): - bl_idname = "operator.shoulder_r" - bl_label = "BlenRig Select shoulder_R" - bl_description = "shoulder_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "shoulder_R") - return {"FINISHED"} +class Operator_Shoulder_Rot_R(bpy.types.Operator): + bl_idname = "operator.shoulder_rot_r" + bl_label = "BlenRig Select shoulder_rot_R" + bl_description = "shoulder_rot_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Head_Scale(bpy.types.Operator): - bl_idname = "operator.head_scale" - bl_label = "BlenRig Select head_scale" - bl_description = "head_scale" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "head_scale") - return {"FINISHED"} - -class Operator_Shoulder_L(bpy.types.Operator): - bl_idname = "operator.shoulder_l" - bl_label = "BlenRig Select shoulder_L" - bl_description = "shoulder_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "shoulder_L") - return {"FINISHED"} + select_op(self, context, event, "shoulder_rot_R") + return {"FINISHED"} -class Operator_Shoulder_Rot_L(bpy.types.Operator): - bl_idname = "operator.shoulder_rot_l" - bl_label = "BlenRig Select shoulder_rot_L" - bl_description = "shoulder_rot_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "shoulder_rot_L") - return {"FINISHED"} +class Operator_Shoulder_R(bpy.types.Operator): + bl_idname = "operator.shoulder_r" + bl_label = "BlenRig Select shoulder_R" + bl_description = "shoulder_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Clavi_Toon_L(bpy.types.Operator): - bl_idname = "operator.clavi_toon_l" - bl_label = "BlenRig Select clavi_toon_L" - bl_description = "clavi_toon_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "clavi_toon_L") - return {"FINISHED"} - + select_op(self, context, event, "shoulder_R") + return {"FINISHED"} + +class Operator_Head_Scale(bpy.types.Operator): + bl_idname = "operator.head_scale" + bl_label = "BlenRig Select head_scale" + bl_description = "head_scale" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "head_scale") + return {"FINISHED"} + +class Operator_Shoulder_L(bpy.types.Operator): + bl_idname = "operator.shoulder_l" + bl_label = "BlenRig Select shoulder_L" + bl_description = "shoulder_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "shoulder_L") + return {"FINISHED"} + +class Operator_Shoulder_Rot_L(bpy.types.Operator): + bl_idname = "operator.shoulder_rot_l" + bl_label = "BlenRig Select shoulder_rot_L" + bl_description = "shoulder_rot_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "shoulder_rot_L") + return {"FINISHED"} + +class Operator_Clavi_Toon_L(bpy.types.Operator): + bl_idname = "operator.clavi_toon_l" + bl_label = "BlenRig Select clavi_toon_L" + bl_description = "clavi_toon_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "clavi_toon_L") + return {"FINISHED"} + #ARM_R -class Operator_Arm_Toon_R(bpy.types.Operator): - bl_idname = "operator.arm_toon_r" - bl_label = "BlenRig Select arm_toon_R" - bl_description = "arm_toon_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "arm_toon_R") - return {"FINISHED"} +class Operator_Arm_Toon_R(bpy.types.Operator): + bl_idname = "operator.arm_toon_r" + bl_label = "BlenRig Select arm_toon_R" + bl_description = "arm_toon_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Elbow_Pole_R(bpy.types.Operator): - bl_idname = "operator.elbow_pole_r" - bl_label = "BlenRig Select elbow_pole_R" - bl_description = "elbow_pole_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "elbow_pole_R") - return {"FINISHED"} + select_op(self, context, event, "arm_toon_R") + return {"FINISHED"} -class Operator_Forearm_Toon_R(bpy.types.Operator): - bl_idname = "operator.forearm_toon_r" - bl_label = "BlenRig Select forearm_toon_R" - bl_description = "forearm_toon_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "forearm_toon_R") - return {"FINISHED"} +class Operator_Elbow_Pole_R(bpy.types.Operator): + bl_idname = "operator.elbow_pole_r" + bl_label = "BlenRig Select elbow_pole_R" + bl_description = "elbow_pole_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Arm_Scale_R(bpy.types.Operator): - bl_idname = "operator.arm_scale_r" - bl_label = "BlenRig Select arm_scale_R" - bl_description = "arm_scale_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "arm_scale_R") - return {"FINISHED"} + select_op(self, context, event, "elbow_pole_R") + return {"FINISHED"} -class Operator_Arm_FK_R(bpy.types.Operator): - bl_idname = "operator.arm_fk_r" - bl_label = "BlenRig Select arm_fk_R" - bl_description = "arm_fk_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "arm_fk_R") - return {"FINISHED"} +class Operator_Forearm_Toon_R(bpy.types.Operator): + bl_idname = "operator.forearm_toon_r" + bl_label = "BlenRig Select forearm_toon_R" + bl_description = "forearm_toon_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Arm_IK_R(bpy.types.Operator): - bl_idname = "operator.arm_ik_r" - bl_label = "BlenRig Select arm_ik_R" - bl_description = "arm_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "arm_ik_R") - return {"FINISHED"} + select_op(self, context, event, "forearm_toon_R") + return {"FINISHED"} -class Operator_Elbow_Toon_R(bpy.types.Operator): - bl_idname = "operator.elbow_toon_r" - bl_label = "BlenRig Select elbow_toon_R" - bl_description = "elbow_toon_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "elbow_toon_R") - return {"FINISHED"} - -class Operator_Forearm_FK_R(bpy.types.Operator): - bl_idname = "operator.forearm_fk_r" - bl_label = "BlenRig Select forearm_fk_R" - bl_description = "forearm_fk_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "forearm_fk_R") - return {"FINISHED"} +class Operator_Arm_Scale_R(bpy.types.Operator): + bl_idname = "operator.arm_scale_r" + bl_label = "BlenRig Select arm_scale_R" + bl_description = "arm_scale_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Forearm_IK_R(bpy.types.Operator): - bl_idname = "operator.forearm_ik_r" - bl_label = "BlenRig Select forearm_ik_R" - bl_description = "forearm_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "forearm_ik_R") - return {"FINISHED"} + select_op(self, context, event, "arm_scale_R") + return {"FINISHED"} + +class Operator_Arm_FK_R(bpy.types.Operator): + bl_idname = "operator.arm_fk_r" + bl_label = "BlenRig Select arm_fk_R" + bl_description = "arm_fk_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Hand_Toon_R(bpy.types.Operator): - bl_idname = "operator.hand_toon_r" - bl_label = "BlenRig Select hand_toon_R" - bl_description = "hand_toon_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "hand_toon_R") - return {"FINISHED"} + select_op(self, context, event, "arm_fk_R") + return {"FINISHED"} + +class Operator_Arm_IK_R(bpy.types.Operator): + bl_idname = "operator.arm_ik_r" + bl_label = "BlenRig Select arm_ik_R" + bl_description = "arm_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "arm_ik_R") + return {"FINISHED"} + +class Operator_Elbow_Toon_R(bpy.types.Operator): + bl_idname = "operator.elbow_toon_r" + bl_label = "BlenRig Select elbow_toon_R" + bl_description = "elbow_toon_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "elbow_toon_R") + return {"FINISHED"} + +class Operator_Forearm_FK_R(bpy.types.Operator): + bl_idname = "operator.forearm_fk_r" + bl_label = "BlenRig Select forearm_fk_R" + bl_description = "forearm_fk_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "forearm_fk_R") + return {"FINISHED"} + +class Operator_Forearm_IK_R(bpy.types.Operator): + bl_idname = "operator.forearm_ik_r" + bl_label = "BlenRig Select forearm_ik_R" + bl_description = "forearm_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "forearm_ik_R") + return {"FINISHED"} + +class Operator_Hand_Toon_R(bpy.types.Operator): + bl_idname = "operator.hand_toon_r" + bl_label = "BlenRig Select hand_toon_R" + bl_description = "hand_toon_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "hand_toon_R") + return {"FINISHED"} #ARM_L -class Operator_Arm_Toon_L(bpy.types.Operator): - bl_idname = "operator.arm_toon_l" - bl_label = "BlenRig Select arm_toon_L" - bl_description = "arm_toon_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "arm_toon_L") - return {"FINISHED"} +class Operator_Arm_Toon_L(bpy.types.Operator): + bl_idname = "operator.arm_toon_l" + bl_label = "BlenRig Select arm_toon_L" + bl_description = "arm_toon_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Elbow_Pole_L(bpy.types.Operator): - bl_idname = "operator.elbow_pole_l" - bl_label = "BlenRig Select elbow_pole_L" - bl_description = "elbow_pole_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "elbow_pole_L") - return {"FINISHED"} + select_op(self, context, event, "arm_toon_L") + return {"FINISHED"} + +class Operator_Elbow_Pole_L(bpy.types.Operator): + bl_idname = "operator.elbow_pole_l" + bl_label = "BlenRig Select elbow_pole_L" + bl_description = "elbow_pole_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Forearm_Toon_L(bpy.types.Operator): - bl_idname = "operator.forearm_toon_l" - bl_label = "BlenRig Select forearm_toon_L" - bl_description = "forearm_toon_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "forearm_toon_L") - return {"FINISHED"} + select_op(self, context, event, "elbow_pole_L") + return {"FINISHED"} + +class Operator_Forearm_Toon_L(bpy.types.Operator): + bl_idname = "operator.forearm_toon_l" + bl_label = "BlenRig Select forearm_toon_L" + bl_description = "forearm_toon_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Arm_Scale_L(bpy.types.Operator): - bl_idname = "operator.arm_scale_l" - bl_label = "BlenRig Select arm_scale_L" - bl_description = "arm_scale_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "arm_scale_L") - return {"FINISHED"} + select_op(self, context, event, "forearm_toon_L") + return {"FINISHED"} + +class Operator_Arm_Scale_L(bpy.types.Operator): + bl_idname = "operator.arm_scale_l" + bl_label = "BlenRig Select arm_scale_L" + bl_description = "arm_scale_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Arm_FK_L(bpy.types.Operator): - bl_idname = "operator.arm_fk_l" - bl_label = "BlenRig Select arm_fk_L" - bl_description = "arm_fk_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "arm_fk_L") - return {"FINISHED"} + select_op(self, context, event, "arm_scale_L") + return {"FINISHED"} + +class Operator_Arm_FK_L(bpy.types.Operator): + bl_idname = "operator.arm_fk_l" + bl_label = "BlenRig Select arm_fk_L" + bl_description = "arm_fk_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Arm_IK_L(bpy.types.Operator): - bl_idname = "operator.arm_ik_l" - bl_label = "BlenRig Select arm_ik_L" - bl_description = "arm_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "arm_ik_L") - return {"FINISHED"} + select_op(self, context, event, "arm_fk_L") + return {"FINISHED"} + +class Operator_Arm_IK_L(bpy.types.Operator): + bl_idname = "operator.arm_ik_l" + bl_label = "BlenRig Select arm_ik_L" + bl_description = "arm_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Elbow_Toon_L(bpy.types.Operator): - bl_idname = "operator.elbow_toon_l" - bl_label = "BlenRig Select elbow_toon_L" - bl_description = "elbow_toon_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "elbow_toon_L") - return {"FINISHED"} - -class Operator_Forearm_FK_L(bpy.types.Operator): - bl_idname = "operator.forearm_fk_l" - bl_label = "BlenRig Select forearm_fk_L" - bl_description = "forearm_fk_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - + select_op(self, context, event, "arm_ik_L") + return {"FINISHED"} + +class Operator_Elbow_Toon_L(bpy.types.Operator): + bl_idname = "operator.elbow_toon_l" + bl_label = "BlenRig Select elbow_toon_L" + bl_description = "elbow_toon_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): - select_op(self, context, event, "forearm_fk_L") - return {"FINISHED"} + select_op(self, context, event, "elbow_toon_L") + return {"FINISHED"} + +class Operator_Forearm_FK_L(bpy.types.Operator): + bl_idname = "operator.forearm_fk_l" + bl_label = "BlenRig Select forearm_fk_L" + bl_description = "forearm_fk_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Forearm_IK_L(bpy.types.Operator): - bl_idname = "operator.forearm_ik_l" - bl_label = "BlenRig Select forearm_ik_L" - bl_description = "forearm_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "forearm_ik_L") - return {"FINISHED"} + select_op(self, context, event, "forearm_fk_L") + return {"FINISHED"} + +class Operator_Forearm_IK_L(bpy.types.Operator): + bl_idname = "operator.forearm_ik_l" + bl_label = "BlenRig Select forearm_ik_L" + bl_description = "forearm_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Hand_Toon_L(bpy.types.Operator): - bl_idname = "operator.hand_toon_l" - bl_label = "BlenRig Select hand_toon_L" - bl_description = "hand_toon_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "hand_toon_L") - return {"FINISHED"} + select_op(self, context, event, "forearm_ik_L") + return {"FINISHED"} -#SPINE +class Operator_Hand_Toon_L(bpy.types.Operator): + bl_idname = "operator.hand_toon_l" + bl_label = "BlenRig Select hand_toon_L" + bl_description = "hand_toon_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Torso_Ctrl(bpy.types.Operator): - bl_idname = "operator.torso_ctrl" - bl_label = "BlenRig Select torso_ctrl" - bl_description = "torso_ik_ctrl / torso_fk_ctrl / torso_inv_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): + select_op(self, context, event, "hand_toon_L") + return {"FINISHED"} + +#SPINE + +class Operator_Torso_Ctrl(bpy.types.Operator): + bl_idname = "operator.torso_ctrl" + bl_label = "BlenRig Select torso_ctrl" + bl_description = "torso_ik_ctrl / torso_fk_ctrl / torso_inv_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): armobj = bpy.context.active_object arm = bpy.context.active_object.data prop = int(bpy.context.active_object.pose.bones['properties_torso'].ik_torso) - prop_inv = int(bpy.context.active_object.pose.bones['properties_torso'].inv_torso) + prop_inv = int(bpy.context.active_object.pose.bones['properties_torso'].inv_torso) if ('torso_ik_ctrl' and 'torso_fk_ctrl' and 'torso_inv_ctrl' in armobj.pose.bones): - #Target Bone + #Target Bone if prop == 0 and prop_inv != 1: Bone = armobj.pose.bones["torso_ik_ctrl"] elif prop != 0 and prop_inv != 1: - Bone = armobj.pose.bones["torso_fk_ctrl"] + Bone = armobj.pose.bones["torso_fk_ctrl"] else: - Bone = armobj.pose.bones["torso_inv_ctrl"] + Bone = armobj.pose.bones["torso_inv_ctrl"] #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} + arm.bones.active = Bone.bone + return {"FINISHED"} -class Operator_Spine_3(bpy.types.Operator): - bl_idname = "operator.spine_3" - bl_label = "BlenRig Select spine_3" - bl_description = "spine_3_ik_ctrl / spine_3_fk / spine_3_inv" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} +class Operator_Spine_3(bpy.types.Operator): + bl_idname = "operator.spine_3" + bl_label = "BlenRig Select spine_3" + bl_description = "spine_3_ik_ctrl / spine_3_fk / spine_3_inv" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): armobj = bpy.context.active_object arm = bpy.context.active_object.data prop = int(bpy.context.active_object.pose.bones['properties_torso'].ik_torso) - prop_inv = int(bpy.context.active_object.pose.bones['properties_torso'].inv_torso) + prop_inv = int(bpy.context.active_object.pose.bones['properties_torso'].inv_torso) if ('spine_4_ik_ctrl' and 'spine_3_fk' and 'spine_3_inv' in armobj.pose.bones): - #Target Bone + #Target Bone if prop == 0 and prop_inv != 1: Bone = armobj.pose.bones["spine_3_ik_ctrl"] elif prop != 0 and prop_inv != 1: - Bone = armobj.pose.bones["spine_3_fk"] + Bone = armobj.pose.bones["spine_3_fk"] else: - Bone = armobj.pose.bones["spine_3_inv"] + Bone = armobj.pose.bones["spine_3_inv"] #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} + arm.bones.active = Bone.bone + return {"FINISHED"} -class Operator_Spine_2(bpy.types.Operator): - bl_idname = "operator.spine_2" - bl_label = "BlenRig Select spine_2" - bl_description = "spine_2_ik_ctrl / spine_2_fk / spine_2_inv" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} +class Operator_Spine_2(bpy.types.Operator): + bl_idname = "operator.spine_2" + bl_label = "BlenRig Select spine_2" + bl_description = "spine_2_ik_ctrl / spine_2_fk / spine_2_inv" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): armobj = bpy.context.active_object arm = bpy.context.active_object.data prop = int(bpy.context.active_object.pose.bones['properties_torso'].ik_torso) - prop_inv = int(bpy.context.active_object.pose.bones['properties_torso'].inv_torso) + prop_inv = int(bpy.context.active_object.pose.bones['properties_torso'].inv_torso) if ('spine_3_ik_ctrl' and 'spine_2_fk' and 'spine_2_inv' in armobj.pose.bones): - #Target Bone + #Target Bone if prop == 0 and prop_inv != 1: Bone = armobj.pose.bones["spine_2_ik_ctrl"] elif prop != 0 and prop_inv != 1: - Bone = armobj.pose.bones["spine_2_fk"] + Bone = armobj.pose.bones["spine_2_fk"] else: - Bone = armobj.pose.bones["spine_2_inv"] + Bone = armobj.pose.bones["spine_2_inv"] #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} - -class Operator_Spine_1(bpy.types.Operator): - bl_idname = "operator.spine_1" - bl_label = "BlenRig Select spine_1" - bl_description = "spine_1_ik_ctrl / spine_1_fk / spine_1_inv" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + arm.bones.active = Bone.bone + return {"FINISHED"} + +class Operator_Spine_1(bpy.types.Operator): + bl_idname = "operator.spine_1" + bl_label = "BlenRig Select spine_1" + bl_description = "spine_1_ik_ctrl / spine_1_fk / spine_1_inv" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): armobj = bpy.context.active_object arm = bpy.context.active_object.data prop = int(bpy.context.active_object.pose.bones['properties_torso'].ik_torso) - prop_inv = int(bpy.context.active_object.pose.bones['properties_torso'].inv_torso) + prop_inv = int(bpy.context.active_object.pose.bones['properties_torso'].inv_torso) if ('spine_2_ik_ctrl' and 'spine_1_fk' and 'spine_1_inv' in armobj.pose.bones): - #Target Bone + #Target Bone if prop == 0 and prop_inv != 1: Bone = armobj.pose.bones["spine_1_ik_ctrl"] elif prop != 0 and prop_inv != 1: - Bone = armobj.pose.bones["spine_1_fk"] + Bone = armobj.pose.bones["spine_1_fk"] else: - Bone = armobj.pose.bones["spine_1_inv"] + Bone = armobj.pose.bones["spine_1_inv"] #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} + arm.bones.active = Bone.bone + return {"FINISHED"} -class Operator_Spine_4_Toon(bpy.types.Operator): - bl_idname = "operator.spine_4_toon" - bl_label = "BlenRig Select spine_4_toon" - bl_description = "spine_4_toon" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "spine_4_toon") - return {"FINISHED"} +class Operator_Spine_4_Toon(bpy.types.Operator): + bl_idname = "operator.spine_4_toon" + bl_label = "BlenRig Select spine_4_toon" + bl_description = "spine_4_toon" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Spine_3_Toon(bpy.types.Operator): - bl_idname = "operator.spine_3_toon" - bl_label = "BlenRig Select spine_3_toon" - bl_description = "spine_3_toon" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "spine_3_toon") - return {"FINISHED"} + select_op(self, context, event, "spine_4_toon") + return {"FINISHED"} -class Operator_Spine_2_Toon(bpy.types.Operator): - bl_idname = "operator.spine_2_toon" - bl_label = "BlenRig Select spine_2_toon" - bl_description = "spine_2_toon" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "spine_2_toon") - return {"FINISHED"} - -class Operator_Spine_1_Toon(bpy.types.Operator): - bl_idname = "operator.spine_1_toon" - bl_label = "BlenRig Select spine_1_toon" - bl_description = "spine_1_toon" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "spine_1_toon") - return {"FINISHED"} +class Operator_Spine_3_Toon(bpy.types.Operator): + bl_idname = "operator.spine_3_toon" + bl_label = "BlenRig Select spine_3_toon" + bl_description = "spine_3_toon" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Spine_3_Inv_Ctrl(bpy.types.Operator): - bl_idname = "operator.spine_3_inv_ctrl" - bl_label = "BlenRig Select spine_3_inv_ctrl" - bl_description = "spine_3_inv_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "spine_3_inv_ctrl") - return {"FINISHED"} + select_op(self, context, event, "spine_3_toon") + return {"FINISHED"} + +class Operator_Spine_2_Toon(bpy.types.Operator): + bl_idname = "operator.spine_2_toon" + bl_label = "BlenRig Select spine_2_toon" + bl_description = "spine_2_toon" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Pelvis_Toon(bpy.types.Operator): - bl_idname = "operator.pelvis_toon" - bl_label = "BlenRig Select pelvis_toon" - bl_description = "pelvis_toon" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "pelvis_toon") - return {"FINISHED"} + select_op(self, context, event, "spine_2_toon") + return {"FINISHED"} -class Operator_Pelvis_Ctrl(bpy.types.Operator): - bl_idname = "operator.pelvis_ctrl" - bl_label = "BlenRig Select spine_1" - bl_description = "pelvis_ctrl / pelvis_inv" +class Operator_Spine_1_Toon(bpy.types.Operator): + bl_idname = "operator.spine_1_toon" + bl_label = "BlenRig Select spine_1_toon" + bl_description = "spine_1_toon" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "spine_1_toon") + return {"FINISHED"} + +class Operator_Spine_3_Inv_Ctrl(bpy.types.Operator): + bl_idname = "operator.spine_3_inv_ctrl" + bl_label = "BlenRig Select spine_3_inv_ctrl" + bl_description = "spine_3_inv_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "spine_3_inv_ctrl") + return {"FINISHED"} + +class Operator_Pelvis_Toon(bpy.types.Operator): + bl_idname = "operator.pelvis_toon" + bl_label = "BlenRig Select pelvis_toon" + bl_description = "pelvis_toon" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "pelvis_toon") + return {"FINISHED"} + +class Operator_Pelvis_Ctrl(bpy.types.Operator): + bl_idname = "operator.pelvis_ctrl" + bl_label = "BlenRig Select spine_1" + bl_description = "pelvis_ctrl / pelvis_inv" bl_options = {'INTERNAL'} def invoke(self, context, event): armobj = bpy.context.active_object arm = bpy.context.active_object.data prop = int(bpy.context.active_object.pose.bones['properties_torso'].ik_torso) - prop_inv = int(bpy.context.active_object.pose.bones['properties_torso'].inv_torso) + prop_inv = int(bpy.context.active_object.pose.bones['properties_torso'].inv_torso) if ('pelvis_ctrl' and 'pelvis_inv' in armobj.pose.bones): - #Target Bone + #Target Bone if prop_inv == 0: Bone = armobj.pose.bones["pelvis_ctrl"] else: - Bone = armobj.pose.bones["pelvis_inv"] - + Bone = armobj.pose.bones["pelvis_inv"] + #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} - -class Operator_Master_Torso_Pivot_Point(bpy.types.Operator): - bl_idname = "operator.master_torso_pivot_point" - bl_label = "BlenRig Select master_torso_pivot_point" - bl_description = "master_torso_pivot_point" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "master_torso_pivot_point") - return {"FINISHED"} + arm.bones.active = Bone.bone + return {"FINISHED"} + +class Operator_Master_Torso_Pivot_Point(bpy.types.Operator): + bl_idname = "operator.master_torso_pivot_point" + bl_label = "BlenRig Select master_torso_pivot_point" + bl_description = "master_torso_pivot_point" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Master_Torso(bpy.types.Operator): - bl_idname = "operator.master_torso" - bl_label = "BlenRig Select master_torso" - bl_description = "master_torso" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "master_torso") - return {"FINISHED"} + select_op(self, context, event, "master_torso_pivot_point") + return {"FINISHED"} + +class Operator_Master_Torso(bpy.types.Operator): + bl_idname = "operator.master_torso" + bl_label = "BlenRig Select master_torso" + bl_description = "master_torso" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "master_torso") + return {"FINISHED"} #HAND_R -class Operator_Hand_Roll_R(bpy.types.Operator): - bl_idname = "operator.hand_roll_r" - bl_label = "BlenRig Select hand_roll_R" - bl_description = "palm_bend_ik_ctrl_R / palm_bend_fk_ctrl_R" +class Operator_Hand_Roll_R(bpy.types.Operator): + bl_idname = "operator.hand_roll_r" + bl_label = "BlenRig Select hand_roll_R" + bl_description = "palm_bend_ik_ctrl_R / palm_bend_fk_ctrl_R" bl_options = {'INTERNAL'} def invoke(self, context, event): armobj = bpy.context.active_object arm = bpy.context.active_object.data prop = int(bpy.context.active_object.pose.bones['properties_arm_R'].ik_arm_R) - prop_hinge = int(bpy.context.active_object.pose.bones['properties_arm_R'].hinge_hand_R) + prop_hinge = int(bpy.context.active_object.pose.bones['properties_arm_R'].hinge_hand_R) if ('palm_bend_ik_ctrl_R' and 'palm_bend_fk_ctrl_R' in armobj.pose.bones): - #Target Bone + #Target Bone if prop == 1 or prop_hinge == 0: Bone = armobj.pose.bones["palm_bend_fk_ctrl_R"] else: - Bone = armobj.pose.bones["palm_bend_ik_ctrl_R"] - + Bone = armobj.pose.bones["palm_bend_ik_ctrl_R"] + #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} + arm.bones.active = Bone.bone + return {"FINISHED"} -class Operator_Hand_IK_Pivot_Point_R(bpy.types.Operator): - bl_idname = "operator.hand_ik_pivot_point_r" - bl_label = "BlenRig Select hand_ik_pivot_point_R" - bl_description = "hand_ik_pivot_point_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "hand_ik_pivot_point_R") - return {"FINISHED"} - -class Operator_Hand_IK_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.hand_ik_ctrl_r" - bl_label = "BlenRig Select hand_ik_ctrl_R" - bl_description = "hand_ik_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "hand_ik_ctrl_R") - return {"FINISHED"} - -class Operator_Hand_FK_R(bpy.types.Operator): - bl_idname = "operator.hand_fk_r" - bl_label = "BlenRig Select hand_fk_R" - bl_description = "hand_fk_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "hand_fk_R") - return {"FINISHED"} +class Operator_Hand_IK_Pivot_Point_R(bpy.types.Operator): + bl_idname = "operator.hand_ik_pivot_point_r" + bl_label = "BlenRig Select hand_ik_pivot_point_R" + bl_description = "hand_ik_pivot_point_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Spread_R(bpy.types.Operator): - bl_idname = "operator.fing_spread_r" - bl_label = "BlenRig Select fing_spread_R" - bl_description = "fing_spread_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_spread_R") - return {"FINISHED"} - -class Operator_Fing_Lit_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.fing_lit_ctrl_r" - bl_label = "BlenRig Select fing_lit_ctrl_R" - bl_description = "fing_lit_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_lit_ctrl_R") - return {"FINISHED"} - -class Operator_Fing_Lit_2_R(bpy.types.Operator): - bl_idname = "operator.fing_lit_2_r" - bl_label = "BlenRig Select fing_lit_2_R" - bl_description = "fing_lit_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_lit_2_R") - return {"FINISHED"} - -class Operator_Fing_Lit_3_R(bpy.types.Operator): - bl_idname = "operator.fing_lit_3_r" - bl_label = "BlenRig Select fing_lit_3_R" - bl_description = "fing_lit_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_lit_3_R") - return {"FINISHED"} + select_op(self, context, event, "hand_ik_pivot_point_R") + return {"FINISHED"} -class Operator_Fing_Lit_4_R(bpy.types.Operator): - bl_idname = "operator.fing_lit_4_r" - bl_label = "BlenRig Select fing_lit_4_R" - bl_description = "fing_lit_4_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_lit_4_R") - return {"FINISHED"} +class Operator_Hand_IK_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.hand_ik_ctrl_r" + bl_label = "BlenRig Select hand_ik_ctrl_R" + bl_description = "hand_ik_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Ring_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.fing_ring_ctrl_r" - bl_label = "BlenRig Select fing_ring_ctrl_R" - bl_description = "fing_ring_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_ring_ctrl_R") - return {"FINISHED"} - -class Operator_Fing_Ring_2_R(bpy.types.Operator): - bl_idname = "operator.fing_ring_2_r" - bl_label = "BlenRig Select fing_ring_2_R" - bl_description = "fing_ring_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ring_2_R") - return {"FINISHED"} - -class Operator_Fing_Ring_3_R(bpy.types.Operator): - bl_idname = "operator.fing_ring_3_r" - bl_label = "BlenRig Select fing_ring_3_R" - bl_description = "fing_ring_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ring_3_R") - return {"FINISHED"} + select_op(self, context, event, "hand_ik_ctrl_R") + return {"FINISHED"} -class Operator_Fing_Ring_4_R(bpy.types.Operator): - bl_idname = "operator.fing_ring_4_r" - bl_label = "BlenRig Select fing_ring_4_R" - bl_description = "fing_ring_4_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ring_4_R") - return {"FINISHED"} +class Operator_Hand_FK_R(bpy.types.Operator): + bl_idname = "operator.hand_fk_r" + bl_label = "BlenRig Select hand_fk_R" + bl_description = "hand_fk_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Mid_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.fing_mid_ctrl_r" - bl_label = "BlenRig Select fing_mid_ctrl_R" - bl_description = "fing_mid_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_mid_ctrl_R") - return {"FINISHED"} - -class Operator_Fing_Mid_2_R(bpy.types.Operator): - bl_idname = "operator.fing_mid_2_r" - bl_label = "BlenRig Select fing_mid_2_R" - bl_description = "fing_mid_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_mid_2_R") - return {"FINISHED"} - -class Operator_Fing_Mid_3_R(bpy.types.Operator): - bl_idname = "operator.fing_mid_3_r" - bl_label = "BlenRig Select fing_mid_3_R" - bl_description = "fing_mid_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_mid_3_R") - return {"FINISHED"} + select_op(self, context, event, "hand_fk_R") + return {"FINISHED"} -class Operator_Fing_Mid_4_R(bpy.types.Operator): - bl_idname = "operator.fing_mid_4_r" - bl_label = "BlenRig Select fing_mid_4_R" - bl_description = "fing_mid_4_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_mid_4_R") - return {"FINISHED"} +class Operator_Fing_Spread_R(bpy.types.Operator): + bl_idname = "operator.fing_spread_r" + bl_label = "BlenRig Select fing_spread_R" + bl_description = "fing_spread_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Ind_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.fing_ind_ctrl_r" - bl_label = "BlenRig Select fing_ind_ctrl_R" - bl_description = "fing_ind_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_ind_ctrl_R") - return {"FINISHED"} - -class Operator_Fing_Ind_2_R(bpy.types.Operator): - bl_idname = "operator.fing_ind_2_r" - bl_label = "BlenRig Select fing_ind_2_R" - bl_description = "fing_ind_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ind_2_R") - return {"FINISHED"} - -class Operator_Fing_Ind_3_R(bpy.types.Operator): - bl_idname = "operator.fing_ind_3_r" - bl_label = "BlenRig Select fing_ind_3_R" - bl_description = "fing_ind_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ind_3_R") - return {"FINISHED"} + select_op(self, context, event, "fing_spread_R") + return {"FINISHED"} -class Operator_Fing_Ind_4_R(bpy.types.Operator): - bl_idname = "operator.fing_ind_4_r" - bl_label = "BlenRig Select fing_ind_4_R" - bl_description = "fing_ind_4_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ind_4_R") - return {"FINISHED"} +class Operator_Fing_Lit_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.fing_lit_ctrl_r" + bl_label = "BlenRig Select fing_lit_ctrl_R" + bl_description = "fing_lit_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Thumb_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.fing_thumb_ctrl_r" - bl_label = "BlenRig Select fing_thumb_ctrl_R" - bl_description = "fing_thumb_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_thumb_ctrl_R") - return {"FINISHED"} + select_op(self, context, event, "fing_lit_ctrl_R") + return {"FINISHED"} -class Operator_Fing_Thumb_1_R(bpy.types.Operator): - bl_idname = "operator.fing_thumb_1_r" - bl_label = "BlenRig Select fing_thumb_1_R" - bl_description = "fing_thumb_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_thumb_1_R") - return {"FINISHED"} - -class Operator_Fing_Thumb_2_R(bpy.types.Operator): - bl_idname = "operator.fing_thumb_2_r" - bl_label = "BlenRig Select fing_thumb_2_R" - bl_description = "fing_thumb_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_thumb_2_R") - return {"FINISHED"} - -class Operator_Fing_Thumb_3_R(bpy.types.Operator): - bl_idname = "operator.fing_thumb_3_r" - bl_label = "BlenRig Select fing_thumb_3_R" - bl_description = "fing_thumb_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_thumb_3_R") - return {"FINISHED"} +class Operator_Fing_Lit_2_R(bpy.types.Operator): + bl_idname = "operator.fing_lit_2_r" + bl_label = "BlenRig Select fing_lit_2_R" + bl_description = "fing_lit_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Lit_IK_R(bpy.types.Operator): - bl_idname = "operator.fing_lit_ik_r" - bl_label = "BlenRig Select fing_lit_ik_R" - bl_description = "fing_lit_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_lit_ik_R") - return {"FINISHED"} - -class Operator_Fing_Ring_IK_R(bpy.types.Operator): - bl_idname = "operator.fing_ring_ik_r" - bl_label = "BlenRig Select fing_ring_ik_R" - bl_description = "fing_ring_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ring_ik_R") - return {"FINISHED"} + select_op(self, context, event, "fing_lit_2_R") + return {"FINISHED"} -class Operator_Fing_Mid_IK_R(bpy.types.Operator): - bl_idname = "operator.fing_mid_ik_r" - bl_label = "BlenRig Select fing_mid_ik_R" - bl_description = "fing_mid_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_mid_ik_R") - return {"FINISHED"} - -class Operator_Fing_Ind_IK_R(bpy.types.Operator): - bl_idname = "operator.fing_ind_ik_r" - bl_label = "BlenRig Select fing_ind_ik_R" - bl_description = "fing_ind_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ind_ik_R") - return {"FINISHED"} +class Operator_Fing_Lit_3_R(bpy.types.Operator): + bl_idname = "operator.fing_lit_3_r" + bl_label = "BlenRig Select fing_lit_3_R" + bl_description = "fing_lit_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Thumb_IK_R(bpy.types.Operator): - bl_idname = "operator.fing_thumb_ik_r" - bl_label = "BlenRig Select fing_thumb_ik_R" - bl_description = "fing_thumb_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_thumb_ik_R") - return {"FINISHED"} + select_op(self, context, event, "fing_lit_3_R") + return {"FINISHED"} + +class Operator_Fing_Lit_4_R(bpy.types.Operator): + bl_idname = "operator.fing_lit_4_r" + bl_label = "BlenRig Select fing_lit_4_R" + bl_description = "fing_lit_4_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Hand_Close_R(bpy.types.Operator): - bl_idname = "operator.hand_close_r" - bl_label = "BlenRig Select hand_close_R" - bl_description = "hand_close_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "hand_close_R") - return {"FINISHED"} + select_op(self, context, event, "fing_lit_4_R") + return {"FINISHED"} + +class Operator_Fing_Ring_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.fing_ring_ctrl_r" + bl_label = "BlenRig Select fing_ring_ctrl_R" + bl_description = "fing_ring_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_ring_ctrl_R") + return {"FINISHED"} + +class Operator_Fing_Ring_2_R(bpy.types.Operator): + bl_idname = "operator.fing_ring_2_r" + bl_label = "BlenRig Select fing_ring_2_R" + bl_description = "fing_ring_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_ring_2_R") + return {"FINISHED"} + +class Operator_Fing_Ring_3_R(bpy.types.Operator): + bl_idname = "operator.fing_ring_3_r" + bl_label = "BlenRig Select fing_ring_3_R" + bl_description = "fing_ring_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_ring_3_R") + return {"FINISHED"} + +class Operator_Fing_Ring_4_R(bpy.types.Operator): + bl_idname = "operator.fing_ring_4_r" + bl_label = "BlenRig Select fing_ring_4_R" + bl_description = "fing_ring_4_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_ring_4_R") + return {"FINISHED"} + +class Operator_Fing_Mid_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.fing_mid_ctrl_r" + bl_label = "BlenRig Select fing_mid_ctrl_R" + bl_description = "fing_mid_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_mid_ctrl_R") + return {"FINISHED"} + +class Operator_Fing_Mid_2_R(bpy.types.Operator): + bl_idname = "operator.fing_mid_2_r" + bl_label = "BlenRig Select fing_mid_2_R" + bl_description = "fing_mid_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_mid_2_R") + return {"FINISHED"} + +class Operator_Fing_Mid_3_R(bpy.types.Operator): + bl_idname = "operator.fing_mid_3_r" + bl_label = "BlenRig Select fing_mid_3_R" + bl_description = "fing_mid_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_mid_3_R") + return {"FINISHED"} + +class Operator_Fing_Mid_4_R(bpy.types.Operator): + bl_idname = "operator.fing_mid_4_r" + bl_label = "BlenRig Select fing_mid_4_R" + bl_description = "fing_mid_4_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_mid_4_R") + return {"FINISHED"} + +class Operator_Fing_Ind_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.fing_ind_ctrl_r" + bl_label = "BlenRig Select fing_ind_ctrl_R" + bl_description = "fing_ind_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_ind_ctrl_R") + return {"FINISHED"} + +class Operator_Fing_Ind_2_R(bpy.types.Operator): + bl_idname = "operator.fing_ind_2_r" + bl_label = "BlenRig Select fing_ind_2_R" + bl_description = "fing_ind_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_ind_2_R") + return {"FINISHED"} + +class Operator_Fing_Ind_3_R(bpy.types.Operator): + bl_idname = "operator.fing_ind_3_r" + bl_label = "BlenRig Select fing_ind_3_R" + bl_description = "fing_ind_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_ind_3_R") + return {"FINISHED"} + +class Operator_Fing_Ind_4_R(bpy.types.Operator): + bl_idname = "operator.fing_ind_4_r" + bl_label = "BlenRig Select fing_ind_4_R" + bl_description = "fing_ind_4_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_ind_4_R") + return {"FINISHED"} + +class Operator_Fing_Thumb_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.fing_thumb_ctrl_r" + bl_label = "BlenRig Select fing_thumb_ctrl_R" + bl_description = "fing_thumb_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_thumb_ctrl_R") + return {"FINISHED"} + +class Operator_Fing_Thumb_1_R(bpy.types.Operator): + bl_idname = "operator.fing_thumb_1_r" + bl_label = "BlenRig Select fing_thumb_1_R" + bl_description = "fing_thumb_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_thumb_1_R") + return {"FINISHED"} + +class Operator_Fing_Thumb_2_R(bpy.types.Operator): + bl_idname = "operator.fing_thumb_2_r" + bl_label = "BlenRig Select fing_thumb_2_R" + bl_description = "fing_thumb_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_thumb_2_R") + return {"FINISHED"} + +class Operator_Fing_Thumb_3_R(bpy.types.Operator): + bl_idname = "operator.fing_thumb_3_r" + bl_label = "BlenRig Select fing_thumb_3_R" + bl_description = "fing_thumb_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_thumb_3_R") + return {"FINISHED"} + +class Operator_Fing_Lit_IK_R(bpy.types.Operator): + bl_idname = "operator.fing_lit_ik_r" + bl_label = "BlenRig Select fing_lit_ik_R" + bl_description = "fing_lit_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_lit_ik_R") + return {"FINISHED"} + +class Operator_Fing_Ring_IK_R(bpy.types.Operator): + bl_idname = "operator.fing_ring_ik_r" + bl_label = "BlenRig Select fing_ring_ik_R" + bl_description = "fing_ring_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_ring_ik_R") + return {"FINISHED"} + +class Operator_Fing_Mid_IK_R(bpy.types.Operator): + bl_idname = "operator.fing_mid_ik_r" + bl_label = "BlenRig Select fing_mid_ik_R" + bl_description = "fing_mid_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_mid_ik_R") + return {"FINISHED"} + +class Operator_Fing_Ind_IK_R(bpy.types.Operator): + bl_idname = "operator.fing_ind_ik_r" + bl_label = "BlenRig Select fing_ind_ik_R" + bl_description = "fing_ind_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_ind_ik_R") + return {"FINISHED"} + +class Operator_Fing_Thumb_IK_R(bpy.types.Operator): + bl_idname = "operator.fing_thumb_ik_r" + bl_label = "BlenRig Select fing_thumb_ik_R" + bl_description = "fing_thumb_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_thumb_ik_R") + return {"FINISHED"} + +class Operator_Hand_Close_R(bpy.types.Operator): + bl_idname = "operator.hand_close_r" + bl_label = "BlenRig Select hand_close_R" + bl_description = "hand_close_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "hand_close_R") + return {"FINISHED"} #HAND_L -class Operator_Hand_Roll_L(bpy.types.Operator): - bl_idname = "operator.hand_roll_l" - bl_label = "BlenRig Select hand_roll_L" - bl_description = "palm_bend_ik_ctrl_L / palm_bend_fk_ctrl_L" +class Operator_Hand_Roll_L(bpy.types.Operator): + bl_idname = "operator.hand_roll_l" + bl_label = "BlenRig Select hand_roll_L" + bl_description = "palm_bend_ik_ctrl_L / palm_bend_fk_ctrl_L" bl_options = {'INTERNAL'} def invoke(self, context, event): armobj = bpy.context.active_object arm = bpy.context.active_object.data prop = int(bpy.context.active_object.pose.bones['properties_arm_L'].ik_arm_L) - prop_hinge = int(bpy.context.active_object.pose.bones['properties_arm_L'].hinge_hand_L) + prop_hinge = int(bpy.context.active_object.pose.bones['properties_arm_L'].hinge_hand_L) if ('palm_bend_ik_ctrl_L' and 'palm_bend_fk_ctrl_L' in armobj.pose.bones): - #Target Bone + #Target Bone if prop == 1 or prop_hinge == 0: Bone = armobj.pose.bones["palm_bend_fk_ctrl_L"] else: - Bone = armobj.pose.bones["palm_bend_ik_ctrl_L"] - + Bone = armobj.pose.bones["palm_bend_ik_ctrl_L"] + #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} + arm.bones.active = Bone.bone + return {"FINISHED"} -class Operator_Hand_IK_Pivot_Point_L(bpy.types.Operator): - bl_idname = "operator.hand_ik_pivot_point_l" - bl_label = "BlenRig Select hand_ik_pivot_point_L" - bl_description = "hand_ik_pivot_point_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "hand_ik_pivot_point_L") - return {"FINISHED"} - -class Operator_Hand_IK_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.hand_ik_ctrl_l" - bl_label = "BlenRig Select hand_ik_ctrl_L" - bl_description = "hand_ik_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "hand_ik_ctrl_L") - return {"FINISHED"} - -class Operator_Hand_FK_L(bpy.types.Operator): - bl_idname = "operator.hand_fk_l" - bl_label = "BlenRig Select hand_fk_L" - bl_description = "hand_fk_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "hand_fk_L") - return {"FINISHED"} +class Operator_Hand_IK_Pivot_Point_L(bpy.types.Operator): + bl_idname = "operator.hand_ik_pivot_point_l" + bl_label = "BlenRig Select hand_ik_pivot_point_L" + bl_description = "hand_ik_pivot_point_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Spread_L(bpy.types.Operator): - bl_idname = "operator.fing_spread_l" - bl_label = "BlenRig Select fing_spread_L" - bl_description = "fing_spread_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_spread_L") - return {"FINISHED"} - -class Operator_Fing_Lit_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.fing_lit_ctrl_l" - bl_label = "BlenRig Select fing_lit_ctrl_L" - bl_description = "fing_lit_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_lit_ctrl_L") - return {"FINISHED"} - -class Operator_Fing_Lit_2_L(bpy.types.Operator): - bl_idname = "operator.fing_lit_2_l" - bl_label = "BlenRig Select fing_lit_2_L" - bl_description = "fing_lit_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_lit_2_L") - return {"FINISHED"} + select_op(self, context, event, "hand_ik_pivot_point_L") + return {"FINISHED"} -class Operator_Fing_Lit_3_L(bpy.types.Operator): - bl_idname = "operator.fing_lit_3_l" - bl_label = "BlenRig Select fing_lit_3_L" - bl_description = "fing_lit_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_lit_3_L") - return {"FINISHED"} +class Operator_Hand_IK_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.hand_ik_ctrl_l" + bl_label = "BlenRig Select hand_ik_ctrl_L" + bl_description = "hand_ik_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Lit_4_L(bpy.types.Operator): - bl_idname = "operator.fing_lit_4_l" - bl_label = "BlenRig Select fing_lit_4_L" - bl_description = "fing_lit_4_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_lit_4_L") - return {"FINISHED"} + select_op(self, context, event, "hand_ik_ctrl_L") + return {"FINISHED"} -class Operator_Fing_Ring_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.fing_ring_ctrl_l" - bl_label = "BlenRig Select fing_ring_ctrl_L" - bl_description = "fing_ring_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ring_ctrl_L") - return {"FINISHED"} - -class Operator_Fing_Ring_2_L(bpy.types.Operator): - bl_idname = "operator.fing_ring_2_l" - bl_label = "BlenRig Select fing_ring_2_L" - bl_description = "fing_ring_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ring_2_L") - return {"FINISHED"} - -class Operator_Fing_Ring_3_L(bpy.types.Operator): - bl_idname = "operator.fing_ring_3_l" - bl_label = "BlenRig Select fing_ring_3_L" - bl_description = "fing_ring_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ring_3_L") - return {"FINISHED"} +class Operator_Hand_FK_L(bpy.types.Operator): + bl_idname = "operator.hand_fk_l" + bl_label = "BlenRig Select hand_fk_L" + bl_description = "hand_fk_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Ring_4_L(bpy.types.Operator): - bl_idname = "operator.fing_ring_4_l" - bl_label = "BlenRig Select fing_ring_4_L" - bl_description = "fing_ring_4_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_ring_4_L") - return {"FINISHED"} + select_op(self, context, event, "hand_fk_L") + return {"FINISHED"} -class Operator_Fing_Mid_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.fing_mid_ctrl_l" - bl_label = "BlenRig Select fing_mid_ctrl_L" - bl_description = "fing_mid_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_mid_ctrl_L") - return {"FINISHED"} - -class Operator_Fing_Mid_2_L(bpy.types.Operator): - bl_idname = "operator.fing_mid_2_l" - bl_label = "BlenRig Select fing_mid_2_L" - bl_description = "fing_mid_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_mid_2_L") - return {"FINISHED"} - -class Operator_Fing_Mid_3_L(bpy.types.Operator): - bl_idname = "operator.fing_mid_3_l" - bl_label = "BlenRig Select fing_mid_3_L" - bl_description = "fing_mid_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_mid_3_L") - return {"FINISHED"} +class Operator_Fing_Spread_L(bpy.types.Operator): + bl_idname = "operator.fing_spread_l" + bl_label = "BlenRig Select fing_spread_L" + bl_description = "fing_spread_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Mid_4_L(bpy.types.Operator): - bl_idname = "operator.fing_mid_4_l" - bl_label = "BlenRig Select fing_mid_4_L" - bl_description = "fing_mid_4_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_mid_4_L") - return {"FINISHED"} + select_op(self, context, event, "fing_spread_L") + return {"FINISHED"} -class Operator_Fing_Ind_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.fing_ind_ctrl_l" - bl_label = "BlenRig Select fing_ind_ctrl_L" - bl_description = "fing_ind_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ind_ctrl_L") - return {"FINISHED"} - -class Operator_Fing_Ind_2_L(bpy.types.Operator): - bl_idname = "operator.fing_ind_2_l" - bl_label = "BlenRig Select fing_ind_2_L" - bl_description = "fing_ind_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ind_2_L") - return {"FINISHED"} - -class Operator_Fing_Ind_3_L(bpy.types.Operator): - bl_idname = "operator.fing_ind_3_l" - bl_label = "BlenRig Select fing_ind_3_L" - bl_description = "fing_ind_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ind_3_L") - return {"FINISHED"} +class Operator_Fing_Lit_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.fing_lit_ctrl_l" + bl_label = "BlenRig Select fing_lit_ctrl_L" + bl_description = "fing_lit_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Ind_4_L(bpy.types.Operator): - bl_idname = "operator.fing_ind_4_l" - bl_label = "BlenRig Select fing_ind_4_L" - bl_description = "fing_ind_4_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_ind_4_L") - return {"FINISHED"} + select_op(self, context, event, "fing_lit_ctrl_L") + return {"FINISHED"} -class Operator_Fing_Thumb_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.fing_thumb_ctrl_l" - bl_label = "BlenRig Select fing_thumb_ctrl_L" - bl_description = "fing_thumb_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_thumb_ctrl_L") - return {"FINISHED"} +class Operator_Fing_Lit_2_L(bpy.types.Operator): + bl_idname = "operator.fing_lit_2_l" + bl_label = "BlenRig Select fing_lit_2_L" + bl_description = "fing_lit_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Thumb_1_L(bpy.types.Operator): - bl_idname = "operator.fing_thumb_1_l" - bl_label = "BlenRig Select fing_thumb_1_L" - bl_description = "fing_thumb_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_thumb_1_L") - return {"FINISHED"} - -class Operator_Fing_Thumb_2_L(bpy.types.Operator): - bl_idname = "operator.fing_thumb_2_l" - bl_label = "BlenRig Select fing_thumb_2_L" - bl_description = "fing_thumb_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_thumb_2_L") - return {"FINISHED"} - -class Operator_Fing_Thumb_3_L(bpy.types.Operator): - bl_idname = "operator.fing_thumb_3_l" - bl_label = "BlenRig Select fing_thumb_3_L" - bl_description = "fing_thumb_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_thumb_3_L") - return {"FINISHED"} + select_op(self, context, event, "fing_lit_2_L") + return {"FINISHED"} -class Operator_Fing_Lit_IK_L(bpy.types.Operator): - bl_idname = "operator.fing_lit_ik_l" - bl_label = "BlenRig Select fing_lit_ik_L" - bl_description = "fing_lit_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_lit_ik_L") - return {"FINISHED"} - -class Operator_Fing_Ring_IK_L(bpy.types.Operator): - bl_idname = "operator.fing_ring_ik_l" - bl_label = "BlenRig Select fing_ring_ik_L" - bl_description = "fing_ring_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ring_ik_L") - return {"FINISHED"} +class Operator_Fing_Lit_3_L(bpy.types.Operator): + bl_idname = "operator.fing_lit_3_l" + bl_label = "BlenRig Select fing_lit_3_L" + bl_description = "fing_lit_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Mid_IK_L(bpy.types.Operator): - bl_idname = "operator.fing_mid_ik_l" - bl_label = "BlenRig Select fing_mid_ik_L" - bl_description = "fing_mid_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_mid_ik_L") - return {"FINISHED"} - -class Operator_Fing_Ind_IK_L(bpy.types.Operator): - bl_idname = "operator.fing_ind_ik_l" - bl_label = "BlenRig Select fing_ind_ik_L" - bl_description = "fing_ind_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_ind_ik_L") - return {"FINISHED"} - -class Operator_Fing_Thumb_IK_L(bpy.types.Operator): - bl_idname = "operator.fing_thumb_ik_l" - bl_label = "BlenRig Select fing_thumb_ik_L" - bl_description = "fing_thumb_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_thumb_ik_L") - return {"FINISHED"} + select_op(self, context, event, "fing_lit_3_L") + return {"FINISHED"} -class Operator_Hand_Close_L(bpy.types.Operator): - bl_idname = "operator.hand_close_l" - bl_label = "BlenRig Select hand_close_L" - bl_description = "hand_close_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "hand_close_L") - return {"FINISHED"} - -#LEG_R +class Operator_Fing_Lit_4_L(bpy.types.Operator): + bl_idname = "operator.fing_lit_4_l" + bl_label = "BlenRig Select fing_lit_4_L" + bl_description = "fing_lit_4_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Thigh_Toon_R(bpy.types.Operator): - bl_idname = "operator.thigh_toon_r" - bl_label = "BlenRig Select thigh_toon_R" - bl_description = "thigh_toon_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "thigh_toon_R") - return {"FINISHED"} + select_op(self, context, event, "fing_lit_4_L") + return {"FINISHED"} -class Operator_Knee_Pole_R(bpy.types.Operator): - bl_idname = "operator.knee_pole_r" - bl_label = "BlenRig Select knee_pole_R" - bl_description = "knee_pole_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "knee_pole_R") - return {"FINISHED"} +class Operator_Fing_Ring_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.fing_ring_ctrl_l" + bl_label = "BlenRig Select fing_ring_ctrl_L" + bl_description = "fing_ring_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Shin_Toon_R(bpy.types.Operator): - bl_idname = "operator.shin_toon_r" - bl_label = "BlenRig Select shin_toon_R" - bl_description = "shin_toon_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "shin_toon_R") - return {"FINISHED"} + select_op(self, context, event, "fing_ring_ctrl_L") + return {"FINISHED"} -class Operator_Pelvis_Toon_R(bpy.types.Operator): - bl_idname = "operator.pelvis_toon_r" - bl_label = "BlenRig Select pelvis_toon_R" - bl_description = "pelvis_toon_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "pelvis_toon_R") - return {"FINISHED"} +class Operator_Fing_Ring_2_L(bpy.types.Operator): + bl_idname = "operator.fing_ring_2_l" + bl_label = "BlenRig Select fing_ring_2_L" + bl_description = "fing_ring_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Leg_Scale_R(bpy.types.Operator): - bl_idname = "operator.leg_scale_r" - bl_label = "BlenRig Select leg_scale_R" - bl_description = "leg_scale_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "leg_scale_R") - return {"FINISHED"} + select_op(self, context, event, "fing_ring_2_L") + return {"FINISHED"} -class Operator_Thigh_FK_R(bpy.types.Operator): - bl_idname = "operator.thigh_fk_r" - bl_label = "BlenRig Select thigh_fk_R" - bl_description = "thigh_fk_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "thigh_fk_R") - return {"FINISHED"} +class Operator_Fing_Ring_3_L(bpy.types.Operator): + bl_idname = "operator.fing_ring_3_l" + bl_label = "BlenRig Select fing_ring_3_L" + bl_description = "fing_ring_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Thigh_IK_R(bpy.types.Operator): - bl_idname = "operator.thigh_ik_r" - bl_label = "BlenRig Select thigh_ik_R" - bl_description = "thigh_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "thigh_ik_R") - return {"FINISHED"} - -class Operator_Knee_Toon_R(bpy.types.Operator): - bl_idname = "operator.knee_toon_r" - bl_label = "BlenRig Select knee_toon_R" - bl_description = "knee_toon_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "knee_toon_R") - return {"FINISHED"} - -class Operator_Shin_FK_R(bpy.types.Operator): - bl_idname = "operator.shin_fk_r" - bl_label = "BlenRig Select shin_fk_R" - bl_description = "shin_fk_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "shin_fk_R") - return {"FINISHED"} - -class Operator_Shin_IK_R(bpy.types.Operator): - bl_idname = "operator.shin_ik_r" - bl_label = "BlenRig Select shin_ik_R" - bl_description = "shin_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "shin_ik_R") - return {"FINISHED"} - -class Operator_Foot_Toon_R(bpy.types.Operator): - bl_idname = "operator.foot_toon_r" - bl_label = "BlenRig Select foot_toon_R" - bl_description = "foot_toon_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "foot_toon_R") - return {"FINISHED"} + select_op(self, context, event, "fing_ring_3_L") + return {"FINISHED"} -#LEG_L +class Operator_Fing_Ring_4_L(bpy.types.Operator): + bl_idname = "operator.fing_ring_4_l" + bl_label = "BlenRig Select fing_ring_4_L" + bl_description = "fing_ring_4_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Thigh_Toon_L(bpy.types.Operator): - bl_idname = "operator.thigh_toon_l" - bl_label = "BlenRig Select thigh_toon_L" - bl_description = "thigh_toon_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "thigh_toon_L") - return {"FINISHED"} + select_op(self, context, event, "fing_ring_4_L") + return {"FINISHED"} -class Operator_Knee_Pole_L(bpy.types.Operator): - bl_idname = "operator.knee_pole_l" - bl_label = "BlenRig Select knee_pole_L" - bl_description = "knee_pole_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "knee_pole_L") - return {"FINISHED"} +class Operator_Fing_Mid_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.fing_mid_ctrl_l" + bl_label = "BlenRig Select fing_mid_ctrl_L" + bl_description = "fing_mid_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Shin_Toon_L(bpy.types.Operator): - bl_idname = "operator.shin_toon_l" - bl_label = "BlenRig Select shin_toon_L" - bl_description = "shin_toon_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "shin_toon_L") - return {"FINISHED"} + select_op(self, context, event, "fing_mid_ctrl_L") + return {"FINISHED"} -class Operator_Pelvis_Toon_L(bpy.types.Operator): - bl_idname = "operator.pelvis_toon_l" - bl_label = "BlenRig Select pelvis_toon_L" - bl_description = "pelvis_toon_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "pelvis_toon_L") - return {"FINISHED"} +class Operator_Fing_Mid_2_L(bpy.types.Operator): + bl_idname = "operator.fing_mid_2_l" + bl_label = "BlenRig Select fing_mid_2_L" + bl_description = "fing_mid_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Leg_Scale_L(bpy.types.Operator): - bl_idname = "operator.leg_scale_l" - bl_label = "BlenRig Select leg_scale_L" - bl_description = "leg_scale_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "leg_scale_L") - return {"FINISHED"} + select_op(self, context, event, "fing_mid_2_L") + return {"FINISHED"} -class Operator_Thigh_FK_L(bpy.types.Operator): - bl_idname = "operator.thigh_fk_l" - bl_label = "BlenRig Select thigh_fk_L" - bl_description = "thigh_fk_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "thigh_fk_L") - return {"FINISHED"} +class Operator_Fing_Mid_3_L(bpy.types.Operator): + bl_idname = "operator.fing_mid_3_l" + bl_label = "BlenRig Select fing_mid_3_L" + bl_description = "fing_mid_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Thigh_IK_L(bpy.types.Operator): - bl_idname = "operator.thigh_ik_l" - bl_label = "BlenRig Select thigh_ik_L" - bl_description = "thigh_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "thigh_ik_L") - return {"FINISHED"} - -class Operator_Knee_Toon_L(bpy.types.Operator): - bl_idname = "operator.knee_toon_l" - bl_label = "BlenRig Select knee_toon_L" - bl_description = "knee_toon_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - + select_op(self, context, event, "fing_mid_3_L") + return {"FINISHED"} + +class Operator_Fing_Mid_4_L(bpy.types.Operator): + bl_idname = "operator.fing_mid_4_l" + bl_label = "BlenRig Select fing_mid_4_L" + bl_description = "fing_mid_4_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): - select_op(self, context, event, "knee_toon_L") - return {"FINISHED"} - -class Operator_Shin_FK_L(bpy.types.Operator): - bl_idname = "operator.shin_fk_l" - bl_label = "BlenRig Select shin_fk_L" - bl_description = "shin_fk_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - + select_op(self, context, event, "fing_mid_4_L") + return {"FINISHED"} + +class Operator_Fing_Ind_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.fing_ind_ctrl_l" + bl_label = "BlenRig Select fing_ind_ctrl_L" + bl_description = "fing_ind_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): - select_op(self, context, event, "shin_fk_L") - return {"FINISHED"} - -class Operator_Shin_IK_L(bpy.types.Operator): - bl_idname = "operator.shin_ik_l" - bl_label = "BlenRig Select shin_ik_L" - bl_description = "shin_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - + select_op(self, context, event, "fing_ind_ctrl_L") + return {"FINISHED"} + +class Operator_Fing_Ind_2_L(bpy.types.Operator): + bl_idname = "operator.fing_ind_2_l" + bl_label = "BlenRig Select fing_ind_2_L" + bl_description = "fing_ind_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): - select_op(self, context, event, "shin_ik_L") - return {"FINISHED"} - -class Operator_Foot_Toon_L(bpy.types.Operator): - bl_idname = "operator.foot_toon_l" - bl_label = "BlenRig Select foot_toon_L" - bl_description = "foot_toon_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - + select_op(self, context, event, "fing_ind_2_L") + return {"FINISHED"} + +class Operator_Fing_Ind_3_L(bpy.types.Operator): + bl_idname = "operator.fing_ind_3_l" + bl_label = "BlenRig Select fing_ind_3_L" + bl_description = "fing_ind_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): - select_op(self, context, event, "foot_toon_L") - return {"FINISHED"} + select_op(self, context, event, "fing_ind_3_L") + return {"FINISHED"} + +class Operator_Fing_Ind_4_L(bpy.types.Operator): + bl_idname = "operator.fing_ind_4_l" + bl_label = "BlenRig Select fing_ind_4_L" + bl_description = "fing_ind_4_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_ind_4_L") + return {"FINISHED"} + +class Operator_Fing_Thumb_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.fing_thumb_ctrl_l" + bl_label = "BlenRig Select fing_thumb_ctrl_L" + bl_description = "fing_thumb_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_thumb_ctrl_L") + return {"FINISHED"} + +class Operator_Fing_Thumb_1_L(bpy.types.Operator): + bl_idname = "operator.fing_thumb_1_l" + bl_label = "BlenRig Select fing_thumb_1_L" + bl_description = "fing_thumb_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_thumb_1_L") + return {"FINISHED"} + +class Operator_Fing_Thumb_2_L(bpy.types.Operator): + bl_idname = "operator.fing_thumb_2_l" + bl_label = "BlenRig Select fing_thumb_2_L" + bl_description = "fing_thumb_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_thumb_2_L") + return {"FINISHED"} + +class Operator_Fing_Thumb_3_L(bpy.types.Operator): + bl_idname = "operator.fing_thumb_3_l" + bl_label = "BlenRig Select fing_thumb_3_L" + bl_description = "fing_thumb_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_thumb_3_L") + return {"FINISHED"} + +class Operator_Fing_Lit_IK_L(bpy.types.Operator): + bl_idname = "operator.fing_lit_ik_l" + bl_label = "BlenRig Select fing_lit_ik_L" + bl_description = "fing_lit_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_lit_ik_L") + return {"FINISHED"} + +class Operator_Fing_Ring_IK_L(bpy.types.Operator): + bl_idname = "operator.fing_ring_ik_l" + bl_label = "BlenRig Select fing_ring_ik_L" + bl_description = "fing_ring_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_ring_ik_L") + return {"FINISHED"} + +class Operator_Fing_Mid_IK_L(bpy.types.Operator): + bl_idname = "operator.fing_mid_ik_l" + bl_label = "BlenRig Select fing_mid_ik_L" + bl_description = "fing_mid_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_mid_ik_L") + return {"FINISHED"} + +class Operator_Fing_Ind_IK_L(bpy.types.Operator): + bl_idname = "operator.fing_ind_ik_l" + bl_label = "BlenRig Select fing_ind_ik_L" + bl_description = "fing_ind_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_ind_ik_L") + return {"FINISHED"} + +class Operator_Fing_Thumb_IK_L(bpy.types.Operator): + bl_idname = "operator.fing_thumb_ik_l" + bl_label = "BlenRig Select fing_thumb_ik_L" + bl_description = "fing_thumb_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_thumb_ik_L") + return {"FINISHED"} + +class Operator_Hand_Close_L(bpy.types.Operator): + bl_idname = "operator.hand_close_l" + bl_label = "BlenRig Select hand_close_L" + bl_description = "hand_close_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "hand_close_L") + return {"FINISHED"} + +#LEG_R + +class Operator_Thigh_Toon_R(bpy.types.Operator): + bl_idname = "operator.thigh_toon_r" + bl_label = "BlenRig Select thigh_toon_R" + bl_description = "thigh_toon_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "thigh_toon_R") + return {"FINISHED"} + +class Operator_Knee_Pole_R(bpy.types.Operator): + bl_idname = "operator.knee_pole_r" + bl_label = "BlenRig Select knee_pole_R" + bl_description = "knee_pole_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "knee_pole_R") + return {"FINISHED"} + +class Operator_Shin_Toon_R(bpy.types.Operator): + bl_idname = "operator.shin_toon_r" + bl_label = "BlenRig Select shin_toon_R" + bl_description = "shin_toon_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "shin_toon_R") + return {"FINISHED"} + +class Operator_Pelvis_Toon_R(bpy.types.Operator): + bl_idname = "operator.pelvis_toon_r" + bl_label = "BlenRig Select pelvis_toon_R" + bl_description = "pelvis_toon_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "pelvis_toon_R") + return {"FINISHED"} + +class Operator_Leg_Scale_R(bpy.types.Operator): + bl_idname = "operator.leg_scale_r" + bl_label = "BlenRig Select leg_scale_R" + bl_description = "leg_scale_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "leg_scale_R") + return {"FINISHED"} + +class Operator_Thigh_FK_R(bpy.types.Operator): + bl_idname = "operator.thigh_fk_r" + bl_label = "BlenRig Select thigh_fk_R" + bl_description = "thigh_fk_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "thigh_fk_R") + return {"FINISHED"} + +class Operator_Thigh_IK_R(bpy.types.Operator): + bl_idname = "operator.thigh_ik_r" + bl_label = "BlenRig Select thigh_ik_R" + bl_description = "thigh_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "thigh_ik_R") + return {"FINISHED"} + +class Operator_Knee_Toon_R(bpy.types.Operator): + bl_idname = "operator.knee_toon_r" + bl_label = "BlenRig Select knee_toon_R" + bl_description = "knee_toon_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "knee_toon_R") + return {"FINISHED"} + +class Operator_Shin_FK_R(bpy.types.Operator): + bl_idname = "operator.shin_fk_r" + bl_label = "BlenRig Select shin_fk_R" + bl_description = "shin_fk_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "shin_fk_R") + return {"FINISHED"} + +class Operator_Shin_IK_R(bpy.types.Operator): + bl_idname = "operator.shin_ik_r" + bl_label = "BlenRig Select shin_ik_R" + bl_description = "shin_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "shin_ik_R") + return {"FINISHED"} + +class Operator_Foot_Toon_R(bpy.types.Operator): + bl_idname = "operator.foot_toon_r" + bl_label = "BlenRig Select foot_toon_R" + bl_description = "foot_toon_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "foot_toon_R") + return {"FINISHED"} + +#LEG_L + +class Operator_Thigh_Toon_L(bpy.types.Operator): + bl_idname = "operator.thigh_toon_l" + bl_label = "BlenRig Select thigh_toon_L" + bl_description = "thigh_toon_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "thigh_toon_L") + return {"FINISHED"} + +class Operator_Knee_Pole_L(bpy.types.Operator): + bl_idname = "operator.knee_pole_l" + bl_label = "BlenRig Select knee_pole_L" + bl_description = "knee_pole_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "knee_pole_L") + return {"FINISHED"} + +class Operator_Shin_Toon_L(bpy.types.Operator): + bl_idname = "operator.shin_toon_l" + bl_label = "BlenRig Select shin_toon_L" + bl_description = "shin_toon_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "shin_toon_L") + return {"FINISHED"} + +class Operator_Pelvis_Toon_L(bpy.types.Operator): + bl_idname = "operator.pelvis_toon_l" + bl_label = "BlenRig Select pelvis_toon_L" + bl_description = "pelvis_toon_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "pelvis_toon_L") + return {"FINISHED"} + +class Operator_Leg_Scale_L(bpy.types.Operator): + bl_idname = "operator.leg_scale_l" + bl_label = "BlenRig Select leg_scale_L" + bl_description = "leg_scale_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "leg_scale_L") + return {"FINISHED"} + +class Operator_Thigh_FK_L(bpy.types.Operator): + bl_idname = "operator.thigh_fk_l" + bl_label = "BlenRig Select thigh_fk_L" + bl_description = "thigh_fk_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "thigh_fk_L") + return {"FINISHED"} + +class Operator_Thigh_IK_L(bpy.types.Operator): + bl_idname = "operator.thigh_ik_l" + bl_label = "BlenRig Select thigh_ik_L" + bl_description = "thigh_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "thigh_ik_L") + return {"FINISHED"} + +class Operator_Knee_Toon_L(bpy.types.Operator): + bl_idname = "operator.knee_toon_l" + bl_label = "BlenRig Select knee_toon_L" + bl_description = "knee_toon_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "knee_toon_L") + return {"FINISHED"} + +class Operator_Shin_FK_L(bpy.types.Operator): + bl_idname = "operator.shin_fk_l" + bl_label = "BlenRig Select shin_fk_L" + bl_description = "shin_fk_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "shin_fk_L") + return {"FINISHED"} + +class Operator_Shin_IK_L(bpy.types.Operator): + bl_idname = "operator.shin_ik_l" + bl_label = "BlenRig Select shin_ik_L" + bl_description = "shin_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "shin_ik_L") + return {"FINISHED"} + +class Operator_Foot_Toon_L(bpy.types.Operator): + bl_idname = "operator.foot_toon_l" + bl_label = "BlenRig Select foot_toon_L" + bl_description = "foot_toon_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "foot_toon_L") + return {"FINISHED"} #FOOT_R -class Operator_Toe_2_FK_R(bpy.types.Operator): - bl_idname = "operator.toe_2_fk_r" - bl_label = "BlenRig Select toe_2_fk_R" - bl_description = "toe_2_fk_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_2_fk_R") - return {"FINISHED"} - -class Operator_Toes_IK_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.toes_ik_ctrl_r" - bl_label = "BlenRig Select toes_ik_ctrl_R" - bl_description = "toes_ik_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toes_ik_ctrl_R") - return {"FINISHED"} +class Operator_Toe_2_FK_R(bpy.types.Operator): + bl_idname = "operator.toe_2_fk_r" + bl_label = "BlenRig Select toe_2_fk_R" + bl_description = "toe_2_fk_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Roll_2_R(bpy.types.Operator): - bl_idname = "operator.toe_roll_2_r" - bl_label = "BlenRig Select toe_roll_2_R" - bl_description = "toe_roll_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_roll_2_R") - return {"FINISHED"} + select_op(self, context, event, "toe_2_fk_R") + return {"FINISHED"} -class Operator_Toe_1_FK_R(bpy.types.Operator): - bl_idname = "operator.toe_1_fk_r" - bl_label = "BlenRig Select toe_1_fk_R" - bl_description = "toe_1_fk_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_1_fk_R") - return {"FINISHED"} - -class Operator_Toes_IK_Ctrl_Mid_R(bpy.types.Operator): - bl_idname = "operator.toes_ik_ctrl_mid_r" - bl_label = "BlenRig Select toes_ik_ctrl_mid_R" - bl_description = "toes_ik_ctrl_mid_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toes_ik_ctrl_mid_R") - return {"FINISHED"} +class Operator_Toes_IK_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.toes_ik_ctrl_r" + bl_label = "BlenRig Select toes_ik_ctrl_R" + bl_description = "toes_ik_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Roll_1_R(bpy.types.Operator): - bl_idname = "operator.toe_roll_1_r" - bl_label = "BlenRig Select toe_roll_1_R" - bl_description = "toe_roll_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_roll_1_R") - return {"FINISHED"} + select_op(self, context, event, "toes_ik_ctrl_R") + return {"FINISHED"} -class Operator_Foot_R(bpy.types.Operator): - bl_idname = "operator.foot_r" - bl_label = "BlenRig Select foot_R" - bl_description = "foot_ik_ctrl_R / foot_fk_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} +class Operator_Toe_Roll_2_R(bpy.types.Operator): + bl_idname = "operator.toe_roll_2_r" + bl_label = "BlenRig Select toe_roll_2_R" + bl_description = "toe_roll_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_roll_2_R") + return {"FINISHED"} + +class Operator_Toe_1_FK_R(bpy.types.Operator): + bl_idname = "operator.toe_1_fk_r" + bl_label = "BlenRig Select toe_1_fk_R" + bl_description = "toe_1_fk_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_1_fk_R") + return {"FINISHED"} + +class Operator_Toes_IK_Ctrl_Mid_R(bpy.types.Operator): + bl_idname = "operator.toes_ik_ctrl_mid_r" + bl_label = "BlenRig Select toes_ik_ctrl_mid_R" + bl_description = "toes_ik_ctrl_mid_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toes_ik_ctrl_mid_R") + return {"FINISHED"} + +class Operator_Toe_Roll_1_R(bpy.types.Operator): + bl_idname = "operator.toe_roll_1_r" + bl_label = "BlenRig Select toe_roll_1_R" + bl_description = "toe_roll_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_roll_1_R") + return {"FINISHED"} + +class Operator_Foot_R(bpy.types.Operator): + bl_idname = "operator.foot_r" + bl_label = "BlenRig Select foot_R" + bl_description = "foot_ik_ctrl_R / foot_fk_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): armobj = bpy.context.active_object arm = bpy.context.active_object.data - prop = int(bpy.context.active_object.pose.bones['properties_leg_R'].ik_leg_R) + prop = int(bpy.context.active_object.pose.bones['properties_leg_R'].ik_leg_R) if ('foot_ik_ctrl_R' and 'foot_fk_R' in armobj.pose.bones): - #Target Bone + #Target Bone if prop == 0: Bone = armobj.pose.bones["foot_ik_ctrl_R"] else: - Bone = armobj.pose.bones["foot_fk_R"] + Bone = armobj.pose.bones["foot_fk_R"] #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} - -class Operator_Foot_Roll_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.foot_roll_ctrl_r" - bl_label = "BlenRig Select foot_roll_ctrl_R" - bl_description = "foot_roll_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "foot_roll_ctrl_R") - return {"FINISHED"} + arm.bones.active = Bone.bone + return {"FINISHED"} -class Operator_Toes_Spread_R(bpy.types.Operator): - bl_idname = "operator.toes_spread_r" - bl_label = "BlenRig Select toes_spread_R" - bl_description = "toes_spread_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toes_spread_R") - return {"FINISHED"} +class Operator_Foot_Roll_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.foot_roll_ctrl_r" + bl_label = "BlenRig Select foot_roll_ctrl_R" + bl_description = "foot_roll_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Lit_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.toe_lit_ctrl_r" - bl_label = "BlenRig Select toe_lit_ctrl_R" - bl_description = "toe_lit_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_lit_ctrl_R") - return {"FINISHED"} + select_op(self, context, event, "foot_roll_ctrl_R") + return {"FINISHED"} -class Operator_Toe_Lit_2_R(bpy.types.Operator): - bl_idname = "operator.toe_lit_2_r" - bl_label = "BlenRig Select toe_lit_2_R" - bl_description = "toe_lit_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_lit_2_R") - return {"FINISHED"} +class Operator_Toes_Spread_R(bpy.types.Operator): + bl_idname = "operator.toes_spread_r" + bl_label = "BlenRig Select toes_spread_R" + bl_description = "toes_spread_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Lit_3_R(bpy.types.Operator): - bl_idname = "operator.toe_lit_3_r" - bl_label = "BlenRig Select toe_lit_3_R" - bl_description = "toe_lit_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_lit_3_R") - return {"FINISHED"} - -class Operator_Toe_Lit_IK_R(bpy.types.Operator): - bl_idname = "operator.toe_lit_ik_r" - bl_label = "BlenRig Select toe_lit_ik_R" - bl_description = "toe_lit_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_lit_ik_R") - return {"FINISHED"} - -class Operator_Toe_Fourth_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.toe_fourth_ctrl_r" - bl_label = "BlenRig Select toe_fourth_ctrl_R" - bl_description = "toe_fourth_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_fourth_ctrl_R") - return {"FINISHED"} + select_op(self, context, event, "toes_spread_R") + return {"FINISHED"} -class Operator_Toe_Fourth_2_R(bpy.types.Operator): - bl_idname = "operator.toe_fourth_2_r" - bl_label = "BlenRig Select toe_fourth_2_R" - bl_description = "toe_fourth_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_fourth_2_R") - return {"FINISHED"} +class Operator_Toe_Lit_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.toe_lit_ctrl_r" + bl_label = "BlenRig Select toe_lit_ctrl_R" + bl_description = "toe_lit_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Fourth_3_R(bpy.types.Operator): - bl_idname = "operator.toe_fourth_3_r" - bl_label = "BlenRig Select toe_fourth_3_R" - bl_description = "toe_fourth_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_fourth_3_R") - return {"FINISHED"} - -class Operator_Toe_Fourth_4_R(bpy.types.Operator): - bl_idname = "operator.toe_fourth_4_r" - bl_label = "BlenRig Select toe_fourth_4_R" - bl_description = "toe_fourth_4_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_fourth_4_R") - return {"FINISHED"} - -class Operator_Toe_Fourth_IK_R(bpy.types.Operator): - bl_idname = "operator.toe_fourth_ik_r" - bl_label = "BlenRig Select toe_fourth_ik_R" - bl_description = "toe_fourth_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_fourth_ik_R") - return {"FINISHED"} + select_op(self, context, event, "toe_lit_ctrl_R") + return {"FINISHED"} -class Operator_Toe_Mid_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.toe_mid_ctrl_r" - bl_label = "BlenRig Select toe_mid_ctrl_R" - bl_description = "toe_mid_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_mid_ctrl_R") - return {"FINISHED"} +class Operator_Toe_Lit_2_R(bpy.types.Operator): + bl_idname = "operator.toe_lit_2_r" + bl_label = "BlenRig Select toe_lit_2_R" + bl_description = "toe_lit_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Mid_2_R(bpy.types.Operator): - bl_idname = "operator.toe_mid_2_r" - bl_label = "BlenRig Select toe_mid_2_R" - bl_description = "toe_mid_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_mid_2_R") - return {"FINISHED"} + select_op(self, context, event, "toe_lit_2_R") + return {"FINISHED"} -class Operator_Toe_Mid_3_R(bpy.types.Operator): - bl_idname = "operator.toe_mid_3_r" - bl_label = "BlenRig Select toe_mid_3_R" - bl_description = "toe_mid_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_mid_3_R") - return {"FINISHED"} - -class Operator_Toe_Mid_4_R(bpy.types.Operator): - bl_idname = "operator.toe_mid_4_r" - bl_label = "BlenRig Select toe_mid_4_R" - bl_description = "toe_mid_4_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_mid_4_R") - return {"FINISHED"} - -class Operator_Toe_Mid_IK_R(bpy.types.Operator): - bl_idname = "operator.toe_mid_ik_r" - bl_label = "BlenRig Select toe_mid_ik_R" - bl_description = "toe_mid_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_mid_ik_R") - return {"FINISHED"} +class Operator_Toe_Lit_3_R(bpy.types.Operator): + bl_idname = "operator.toe_lit_3_r" + bl_label = "BlenRig Select toe_lit_3_R" + bl_description = "toe_lit_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Ind_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.toe_ind_ctrl_r" - bl_label = "BlenRig Select toe_ind_ctrl_R" - bl_description = "toe_ind_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_ind_ctrl_R") - return {"FINISHED"} + select_op(self, context, event, "toe_lit_3_R") + return {"FINISHED"} -class Operator_Toe_Ind_2_R(bpy.types.Operator): - bl_idname = "operator.toe_ind_2_r" - bl_label = "BlenRig Select toe_ind_2_R" - bl_description = "toe_ind_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_ind_2_R") - return {"FINISHED"} +class Operator_Toe_Lit_IK_R(bpy.types.Operator): + bl_idname = "operator.toe_lit_ik_r" + bl_label = "BlenRig Select toe_lit_ik_R" + bl_description = "toe_lit_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Ind_3_R(bpy.types.Operator): - bl_idname = "operator.toe_ind_3_r" - bl_label = "BlenRig Select toe_ind_3_R" - bl_description = "toe_ind_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_ind_3_R") - return {"FINISHED"} - -class Operator_Toe_Ind_4_R(bpy.types.Operator): - bl_idname = "operator.toe_ind_4_r" - bl_label = "BlenRig Select toe_ind_4_R" - bl_description = "toe_ind_4_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_ind_4_R") - return {"FINISHED"} - -class Operator_Toe_Ind_IK_R(bpy.types.Operator): - bl_idname = "operator.toe_ind_ik_r" - bl_label = "BlenRig Select toe_ind_ik_R" - bl_description = "toe_ind_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_ind_ik_R") - return {"FINISHED"} + select_op(self, context, event, "toe_lit_ik_R") + return {"FINISHED"} -class Operator_Toe_Big_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.toe_big_ctrl_r" - bl_label = "BlenRig Select toe_big_ctrl_R" - bl_description = "toe_big_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_big_ctrl_R") - return {"FINISHED"} +class Operator_Toe_Fourth_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.toe_fourth_ctrl_r" + bl_label = "BlenRig Select toe_fourth_ctrl_R" + bl_description = "toe_fourth_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Big_2_R(bpy.types.Operator): - bl_idname = "operator.toe_big_2_r" - bl_label = "BlenRig Select toe_big_2_R" - bl_description = "toe_big_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_big_2_R") - return {"FINISHED"} + select_op(self, context, event, "toe_fourth_ctrl_R") + return {"FINISHED"} -class Operator_Toe_Big_3_R(bpy.types.Operator): - bl_idname = "operator.toe_big_3_r" - bl_label = "BlenRig Select toe_big_3_R" - bl_description = "toe_big_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_big_3_R") - return {"FINISHED"} - - -class Operator_Toe_Big_IK_R(bpy.types.Operator): - bl_idname = "operator.toe_big_ik_r" - bl_label = "BlenRig Select toe_big_ik_R" - bl_description = "toe_big_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_big_ik_R") - return {"FINISHED"} +class Operator_Toe_Fourth_2_R(bpy.types.Operator): + bl_idname = "operator.toe_fourth_2_r" + bl_label = "BlenRig Select toe_fourth_2_R" + bl_description = "toe_fourth_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Sole_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.sole_ctrl_r" - bl_label = "BlenRig Select sole_ctrl_R" - bl_description = "sole_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "sole_ctrl_R") - return {"FINISHED"} + select_op(self, context, event, "toe_fourth_2_R") + return {"FINISHED"} + +class Operator_Toe_Fourth_3_R(bpy.types.Operator): + bl_idname = "operator.toe_fourth_3_r" + bl_label = "BlenRig Select toe_fourth_3_R" + bl_description = "toe_fourth_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Sole_Pivot_Point_R(bpy.types.Operator): - bl_idname = "operator.sole_pivot_point_r" - bl_label = "BlenRig Select sole_pivot_point_R" - bl_description = "sole_pivot_point_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "sole_pivot_point_R") - return {"FINISHED"} - + select_op(self, context, event, "toe_fourth_3_R") + return {"FINISHED"} + +class Operator_Toe_Fourth_4_R(bpy.types.Operator): + bl_idname = "operator.toe_fourth_4_r" + bl_label = "BlenRig Select toe_fourth_4_R" + bl_description = "toe_fourth_4_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_fourth_4_R") + return {"FINISHED"} + +class Operator_Toe_Fourth_IK_R(bpy.types.Operator): + bl_idname = "operator.toe_fourth_ik_r" + bl_label = "BlenRig Select toe_fourth_ik_R" + bl_description = "toe_fourth_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_fourth_ik_R") + return {"FINISHED"} + +class Operator_Toe_Mid_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.toe_mid_ctrl_r" + bl_label = "BlenRig Select toe_mid_ctrl_R" + bl_description = "toe_mid_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_mid_ctrl_R") + return {"FINISHED"} + +class Operator_Toe_Mid_2_R(bpy.types.Operator): + bl_idname = "operator.toe_mid_2_r" + bl_label = "BlenRig Select toe_mid_2_R" + bl_description = "toe_mid_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_mid_2_R") + return {"FINISHED"} + +class Operator_Toe_Mid_3_R(bpy.types.Operator): + bl_idname = "operator.toe_mid_3_r" + bl_label = "BlenRig Select toe_mid_3_R" + bl_description = "toe_mid_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_mid_3_R") + return {"FINISHED"} + +class Operator_Toe_Mid_4_R(bpy.types.Operator): + bl_idname = "operator.toe_mid_4_r" + bl_label = "BlenRig Select toe_mid_4_R" + bl_description = "toe_mid_4_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_mid_4_R") + return {"FINISHED"} + +class Operator_Toe_Mid_IK_R(bpy.types.Operator): + bl_idname = "operator.toe_mid_ik_r" + bl_label = "BlenRig Select toe_mid_ik_R" + bl_description = "toe_mid_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_mid_ik_R") + return {"FINISHED"} + +class Operator_Toe_Ind_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.toe_ind_ctrl_r" + bl_label = "BlenRig Select toe_ind_ctrl_R" + bl_description = "toe_ind_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_ind_ctrl_R") + return {"FINISHED"} + +class Operator_Toe_Ind_2_R(bpy.types.Operator): + bl_idname = "operator.toe_ind_2_r" + bl_label = "BlenRig Select toe_ind_2_R" + bl_description = "toe_ind_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_ind_2_R") + return {"FINISHED"} + +class Operator_Toe_Ind_3_R(bpy.types.Operator): + bl_idname = "operator.toe_ind_3_r" + bl_label = "BlenRig Select toe_ind_3_R" + bl_description = "toe_ind_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_ind_3_R") + return {"FINISHED"} + +class Operator_Toe_Ind_4_R(bpy.types.Operator): + bl_idname = "operator.toe_ind_4_r" + bl_label = "BlenRig Select toe_ind_4_R" + bl_description = "toe_ind_4_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_ind_4_R") + return {"FINISHED"} + +class Operator_Toe_Ind_IK_R(bpy.types.Operator): + bl_idname = "operator.toe_ind_ik_r" + bl_label = "BlenRig Select toe_ind_ik_R" + bl_description = "toe_ind_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_ind_ik_R") + return {"FINISHED"} + +class Operator_Toe_Big_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.toe_big_ctrl_r" + bl_label = "BlenRig Select toe_big_ctrl_R" + bl_description = "toe_big_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_big_ctrl_R") + return {"FINISHED"} + +class Operator_Toe_Big_2_R(bpy.types.Operator): + bl_idname = "operator.toe_big_2_r" + bl_label = "BlenRig Select toe_big_2_R" + bl_description = "toe_big_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_big_2_R") + return {"FINISHED"} + +class Operator_Toe_Big_3_R(bpy.types.Operator): + bl_idname = "operator.toe_big_3_r" + bl_label = "BlenRig Select toe_big_3_R" + bl_description = "toe_big_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_big_3_R") + return {"FINISHED"} + + +class Operator_Toe_Big_IK_R(bpy.types.Operator): + bl_idname = "operator.toe_big_ik_r" + bl_label = "BlenRig Select toe_big_ik_R" + bl_description = "toe_big_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_big_ik_R") + return {"FINISHED"} + +class Operator_Sole_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.sole_ctrl_r" + bl_label = "BlenRig Select sole_ctrl_R" + bl_description = "sole_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "sole_ctrl_R") + return {"FINISHED"} + +class Operator_Sole_Pivot_Point_R(bpy.types.Operator): + bl_idname = "operator.sole_pivot_point_r" + bl_label = "BlenRig Select sole_pivot_point_R" + bl_description = "sole_pivot_point_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "sole_pivot_point_R") + return {"FINISHED"} + #FOOT_L -class Operator_Toe_2_FK_L(bpy.types.Operator): - bl_idname = "operator.toe_2_fk_l" - bl_label = "BlenRig Select toe_2_fk_L" - bl_description = "toe_2_fk_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_2_fk_L") - return {"FINISHED"} - -class Operator_Toes_IK_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.toes_ik_ctrl_l" - bl_label = "BlenRig Select toes_ik_ctrl_L" - bl_description = "toes_ik_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toes_ik_ctrl_L") - return {"FINISHED"} - - -class Operator_Toe_Roll_2_L(bpy.types.Operator): - bl_idname = "operator.toe_roll_2_l" - bl_label = "BlenRig Select toe_roll_2_L" - bl_description = "toe_roll_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_roll_2_L") - return {"FINISHED"} - -class Operator_Toe_1_FK_L(bpy.types.Operator): - bl_idname = "operator.toe_1_fk_l" - bl_label = "BlenRig Select toe_1_fk_L" - bl_description = "toe_1_fk_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_1_fk_L") - return {"FINISHED"} - -class Operator_Toes_IK_Ctrl_Mid_L(bpy.types.Operator): - bl_idname = "operator.toes_ik_ctrl_mid_l" - bl_label = "BlenRig Select toes_ik_ctrl_mid_L" - bl_description = "toes_ik_ctrl_mid_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toes_ik_ctrl_mid_L") - return {"FINISHED"} - -class Operator_Toe_Roll_1_L(bpy.types.Operator): - bl_idname = "operator.toe_roll_1_l" - bl_label = "BlenRig Select toe_roll_1_L" - bl_description = "toe_roll_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} +class Operator_Toe_2_FK_L(bpy.types.Operator): + bl_idname = "operator.toe_2_fk_l" + bl_label = "BlenRig Select toe_2_fk_L" + bl_description = "toe_2_fk_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): - select_op(self, context, event, "toe_roll_1_L") - return {"FINISHED"} + select_op(self, context, event, "toe_2_fk_L") + return {"FINISHED"} -class Operator_Foot_L(bpy.types.Operator): - bl_idname = "operator.foot_l" - bl_label = "BlenRig Select foot_L" - bl_description = "foot_ik_ctrl_L / foot_fk_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} +class Operator_Toes_IK_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.toes_ik_ctrl_l" + bl_label = "BlenRig Select toes_ik_ctrl_L" + bl_description = "toes_ik_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toes_ik_ctrl_L") + return {"FINISHED"} + + +class Operator_Toe_Roll_2_L(bpy.types.Operator): + bl_idname = "operator.toe_roll_2_l" + bl_label = "BlenRig Select toe_roll_2_L" + bl_description = "toe_roll_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_roll_2_L") + return {"FINISHED"} + +class Operator_Toe_1_FK_L(bpy.types.Operator): + bl_idname = "operator.toe_1_fk_l" + bl_label = "BlenRig Select toe_1_fk_L" + bl_description = "toe_1_fk_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_1_fk_L") + return {"FINISHED"} + +class Operator_Toes_IK_Ctrl_Mid_L(bpy.types.Operator): + bl_idname = "operator.toes_ik_ctrl_mid_l" + bl_label = "BlenRig Select toes_ik_ctrl_mid_L" + bl_description = "toes_ik_ctrl_mid_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toes_ik_ctrl_mid_L") + return {"FINISHED"} + +class Operator_Toe_Roll_1_L(bpy.types.Operator): + bl_idname = "operator.toe_roll_1_l" + bl_label = "BlenRig Select toe_roll_1_L" + bl_description = "toe_roll_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_roll_1_L") + return {"FINISHED"} + +class Operator_Foot_L(bpy.types.Operator): + bl_idname = "operator.foot_l" + bl_label = "BlenRig Select foot_L" + bl_description = "foot_ik_ctrl_L / foot_fk_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): armobj = bpy.context.active_object arm = bpy.context.active_object.data - prop = int(bpy.context.active_object.pose.bones['properties_leg_L'].ik_leg_L) + prop = int(bpy.context.active_object.pose.bones['properties_leg_L'].ik_leg_L) if ('foot_ik_ctrl_L' and 'foot_fk_L' in armobj.pose.bones): - #Target Bone + #Target Bone if prop == 0: Bone = armobj.pose.bones["foot_ik_ctrl_L"] else: - Bone = armobj.pose.bones["foot_fk_L"] + Bone = armobj.pose.bones["foot_fk_L"] #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} + arm.bones.active = Bone.bone + return {"FINISHED"} -class Operator_Foot_Roll_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.foot_roll_ctrl_l" - bl_label = "BlenRig Select foot_roll_ctrl_L" - bl_description = "foot_roll_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "foot_roll_ctrl_L") - return {"FINISHED"} +class Operator_Foot_Roll_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.foot_roll_ctrl_l" + bl_label = "BlenRig Select foot_roll_ctrl_L" + bl_description = "foot_roll_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toes_Spread_L(bpy.types.Operator): - bl_idname = "operator.toes_spread_l" - bl_label = "BlenRig Select toes_spread_L" - bl_description = "toes_spread_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toes_spread_L") - return {"FINISHED"} + select_op(self, context, event, "foot_roll_ctrl_L") + return {"FINISHED"} -class Operator_Toe_Lit_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.toe_lit_ctrl_l" - bl_label = "BlenRig Select toe_lit_ctrl_L" - bl_description = "toe_lit_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_lit_ctrl_L") - return {"FINISHED"} +class Operator_Toes_Spread_L(bpy.types.Operator): + bl_idname = "operator.toes_spread_l" + bl_label = "BlenRig Select toes_spread_L" + bl_description = "toes_spread_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Lit_2_L(bpy.types.Operator): - bl_idname = "operator.toe_lit_2_l" - bl_label = "BlenRig Select toe_lit_2_L" - bl_description = "toe_lit_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_lit_2_L") - return {"FINISHED"} + select_op(self, context, event, "toes_spread_L") + return {"FINISHED"} -class Operator_Toe_Lit_3_L(bpy.types.Operator): - bl_idname = "operator.toe_lit_3_l" - bl_label = "BlenRig Select toe_lit_3_L" - bl_description = "toe_lit_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_lit_3_L") - return {"FINISHED"} - -class Operator_Toe_Lit_IK_L(bpy.types.Operator): - bl_idname = "operator.toe_lit_ik_l" - bl_label = "BlenRig Select toe_lit_ik_L" - bl_description = "toe_lit_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_lit_ik_L") - return {"FINISHED"} - -class Operator_Toe_Fourth_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.toe_fourth_ctrl_l" - bl_label = "BlenRig Select toe_fourth_ctrl_L" - bl_description = "toe_fourth_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_fourth_ctrl_L") - return {"FINISHED"} +class Operator_Toe_Lit_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.toe_lit_ctrl_l" + bl_label = "BlenRig Select toe_lit_ctrl_L" + bl_description = "toe_lit_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Fourth_2_L(bpy.types.Operator): - bl_idname = "operator.toe_fourth_2_l" - bl_label = "BlenRig Select toe_fourth_2_L" - bl_description = "toe_fourth_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_fourth_2_L") - return {"FINISHED"} + select_op(self, context, event, "toe_lit_ctrl_L") + return {"FINISHED"} -class Operator_Toe_Fourth_3_L(bpy.types.Operator): - bl_idname = "operator.toe_fourth_3_l" - bl_label = "BlenRig Select toe_fourth_3_L" - bl_description = "toe_fourth_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_fourth_3_L") - return {"FINISHED"} - -class Operator_Toe_Fourth_4_L(bpy.types.Operator): - bl_idname = "operator.toe_fourth_4_l" - bl_label = "BlenRig Select toe_fourth_4_L" - bl_description = "toe_fourth_4_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_fourth_4_L") - return {"FINISHED"} - -class Operator_Toe_Fourth_IK_L(bpy.types.Operator): - bl_idname = "operator.toe_fourth_ik_l" - bl_label = "BlenRig Select toe_fourth_ik_L" - bl_description = "toe_fourth_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_fourth_ik_L") - return {"FINISHED"} +class Operator_Toe_Lit_2_L(bpy.types.Operator): + bl_idname = "operator.toe_lit_2_l" + bl_label = "BlenRig Select toe_lit_2_L" + bl_description = "toe_lit_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Mid_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.toe_mid_ctrl_l" - bl_label = "BlenRig Select toe_mid_ctrl_L" - bl_description = "toe_mid_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_mid_ctrl_L") - return {"FINISHED"} + select_op(self, context, event, "toe_lit_2_L") + return {"FINISHED"} -class Operator_Toe_Mid_2_L(bpy.types.Operator): - bl_idname = "operator.toe_mid_2_l" - bl_label = "BlenRig Select toe_mid_2_L" - bl_description = "toe_mid_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_mid_2_L") - return {"FINISHED"} +class Operator_Toe_Lit_3_L(bpy.types.Operator): + bl_idname = "operator.toe_lit_3_l" + bl_label = "BlenRig Select toe_lit_3_L" + bl_description = "toe_lit_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Mid_3_L(bpy.types.Operator): - bl_idname = "operator.toe_mid_3_l" - bl_label = "BlenRig Select toe_mid_3_L" - bl_description = "toe_mid_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_mid_3_L") - return {"FINISHED"} - -class Operator_Toe_Mid_4_L(bpy.types.Operator): - bl_idname = "operator.toe_mid_4_l" - bl_label = "BlenRig Select toe_mid_4_L" - bl_description = "toe_mid_4_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_mid_4_L") - return {"FINISHED"} - -class Operator_Toe_Mid_IK_L(bpy.types.Operator): - bl_idname = "operator.toe_mid_ik_l" - bl_label = "BlenRig Select toe_mid_ik_L" - bl_description = "toe_mid_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_mid_ik_L") - return {"FINISHED"} + select_op(self, context, event, "toe_lit_3_L") + return {"FINISHED"} -class Operator_Toe_Ind_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.toe_ind_ctrl_l" - bl_label = "BlenRig Select toe_ind_ctrl_L" - bl_description = "toe_ind_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_ind_ctrl_L") - return {"FINISHED"} +class Operator_Toe_Lit_IK_L(bpy.types.Operator): + bl_idname = "operator.toe_lit_ik_l" + bl_label = "BlenRig Select toe_lit_ik_L" + bl_description = "toe_lit_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Ind_2_L(bpy.types.Operator): - bl_idname = "operator.toe_ind_2_l" - bl_label = "BlenRig Select toe_ind_2_L" - bl_description = "toe_ind_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_ind_2_L") - return {"FINISHED"} + select_op(self, context, event, "toe_lit_ik_L") + return {"FINISHED"} -class Operator_Toe_Ind_3_L(bpy.types.Operator): - bl_idname = "operator.toe_ind_3_l" - bl_label = "BlenRig Select toe_ind_3_L" - bl_description = "toe_ind_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_ind_3_L") - return {"FINISHED"} - -class Operator_Toe_Ind_4_L(bpy.types.Operator): - bl_idname = "operator.toe_ind_4_l" - bl_label = "BlenRig Select toe_ind_4_L" - bl_description = "toe_ind_4_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_ind_4_L") - return {"FINISHED"} - -class Operator_Toe_Ind_IK_L(bpy.types.Operator): - bl_idname = "operator.toe_ind_ik_l" - bl_label = "BlenRig Select toe_ind_ik_L" - bl_description = "toe_ind_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_ind_ik_L") - return {"FINISHED"} +class Operator_Toe_Fourth_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.toe_fourth_ctrl_l" + bl_label = "BlenRig Select toe_fourth_ctrl_L" + bl_description = "toe_fourth_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Big_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.toe_big_ctrl_l" - bl_label = "BlenRig Select toe_big_ctrl_L" - bl_description = "toe_big_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_big_ctrl_L") - return {"FINISHED"} + select_op(self, context, event, "toe_fourth_ctrl_L") + return {"FINISHED"} -class Operator_Toe_Big_2_L(bpy.types.Operator): - bl_idname = "operator.toe_big_2_l" - bl_label = "BlenRig Select toe_big_2_L" - bl_description = "toe_big_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_big_2_L") - return {"FINISHED"} +class Operator_Toe_Fourth_2_L(bpy.types.Operator): + bl_idname = "operator.toe_fourth_2_l" + bl_label = "BlenRig Select toe_fourth_2_L" + bl_description = "toe_fourth_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Toe_Big_3_L(bpy.types.Operator): - bl_idname = "operator.toe_big_3_l" - bl_label = "BlenRig Select toe_big_3_L" - bl_description = "toe_big_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "toe_big_3_L") - return {"FINISHED"} - - -class Operator_Toe_Big_IK_L(bpy.types.Operator): - bl_idname = "operator.toe_big_ik_l" - bl_label = "BlenRig Select toe_big_ik_L" - bl_description = "toe_big_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toe_big_ik_L") - return {"FINISHED"} + select_op(self, context, event, "toe_fourth_2_L") + return {"FINISHED"} -class Operator_Sole_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.sole_ctrl_l" - bl_label = "BlenRig Select sole_ctrl_L" - bl_description = "sole_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "sole_ctrl_L") - return {"FINISHED"} +class Operator_Toe_Fourth_3_L(bpy.types.Operator): + bl_idname = "operator.toe_fourth_3_l" + bl_label = "BlenRig Select toe_fourth_3_L" + bl_description = "toe_fourth_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Sole_Pivot_Point_L(bpy.types.Operator): - bl_idname = "operator.sole_pivot_point_l" - bl_label = "BlenRig Select sole_pivot_point_L" - bl_description = "sole_pivot_point_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "sole_pivot_point_L") - return {"FINISHED"} + select_op(self, context, event, "toe_fourth_3_L") + return {"FINISHED"} + +class Operator_Toe_Fourth_4_L(bpy.types.Operator): + bl_idname = "operator.toe_fourth_4_l" + bl_label = "BlenRig Select toe_fourth_4_L" + bl_description = "toe_fourth_4_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_fourth_4_L") + return {"FINISHED"} + +class Operator_Toe_Fourth_IK_L(bpy.types.Operator): + bl_idname = "operator.toe_fourth_ik_l" + bl_label = "BlenRig Select toe_fourth_ik_L" + bl_description = "toe_fourth_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_fourth_ik_L") + return {"FINISHED"} + +class Operator_Toe_Mid_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.toe_mid_ctrl_l" + bl_label = "BlenRig Select toe_mid_ctrl_L" + bl_description = "toe_mid_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_mid_ctrl_L") + return {"FINISHED"} + +class Operator_Toe_Mid_2_L(bpy.types.Operator): + bl_idname = "operator.toe_mid_2_l" + bl_label = "BlenRig Select toe_mid_2_L" + bl_description = "toe_mid_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_mid_2_L") + return {"FINISHED"} + +class Operator_Toe_Mid_3_L(bpy.types.Operator): + bl_idname = "operator.toe_mid_3_l" + bl_label = "BlenRig Select toe_mid_3_L" + bl_description = "toe_mid_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_mid_3_L") + return {"FINISHED"} + +class Operator_Toe_Mid_4_L(bpy.types.Operator): + bl_idname = "operator.toe_mid_4_l" + bl_label = "BlenRig Select toe_mid_4_L" + bl_description = "toe_mid_4_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_mid_4_L") + return {"FINISHED"} + +class Operator_Toe_Mid_IK_L(bpy.types.Operator): + bl_idname = "operator.toe_mid_ik_l" + bl_label = "BlenRig Select toe_mid_ik_L" + bl_description = "toe_mid_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_mid_ik_L") + return {"FINISHED"} + +class Operator_Toe_Ind_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.toe_ind_ctrl_l" + bl_label = "BlenRig Select toe_ind_ctrl_L" + bl_description = "toe_ind_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_ind_ctrl_L") + return {"FINISHED"} + +class Operator_Toe_Ind_2_L(bpy.types.Operator): + bl_idname = "operator.toe_ind_2_l" + bl_label = "BlenRig Select toe_ind_2_L" + bl_description = "toe_ind_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_ind_2_L") + return {"FINISHED"} + +class Operator_Toe_Ind_3_L(bpy.types.Operator): + bl_idname = "operator.toe_ind_3_l" + bl_label = "BlenRig Select toe_ind_3_L" + bl_description = "toe_ind_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_ind_3_L") + return {"FINISHED"} + +class Operator_Toe_Ind_4_L(bpy.types.Operator): + bl_idname = "operator.toe_ind_4_l" + bl_label = "BlenRig Select toe_ind_4_L" + bl_description = "toe_ind_4_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_ind_4_L") + return {"FINISHED"} + +class Operator_Toe_Ind_IK_L(bpy.types.Operator): + bl_idname = "operator.toe_ind_ik_l" + bl_label = "BlenRig Select toe_ind_ik_L" + bl_description = "toe_ind_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_ind_ik_L") + return {"FINISHED"} + +class Operator_Toe_Big_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.toe_big_ctrl_l" + bl_label = "BlenRig Select toe_big_ctrl_L" + bl_description = "toe_big_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_big_ctrl_L") + return {"FINISHED"} + +class Operator_Toe_Big_2_L(bpy.types.Operator): + bl_idname = "operator.toe_big_2_l" + bl_label = "BlenRig Select toe_big_2_L" + bl_description = "toe_big_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_big_2_L") + return {"FINISHED"} + +class Operator_Toe_Big_3_L(bpy.types.Operator): + bl_idname = "operator.toe_big_3_l" + bl_label = "BlenRig Select toe_big_3_L" + bl_description = "toe_big_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_big_3_L") + return {"FINISHED"} + + +class Operator_Toe_Big_IK_L(bpy.types.Operator): + bl_idname = "operator.toe_big_ik_l" + bl_label = "BlenRig Select toe_big_ik_L" + bl_description = "toe_big_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toe_big_ik_L") + return {"FINISHED"} + +class Operator_Sole_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.sole_ctrl_l" + bl_label = "BlenRig Select sole_ctrl_L" + bl_description = "sole_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "sole_ctrl_L") + return {"FINISHED"} + +class Operator_Sole_Pivot_Point_L(bpy.types.Operator): + bl_idname = "operator.sole_pivot_point_l" + bl_label = "BlenRig Select sole_pivot_point_L" + bl_description = "sole_pivot_point_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "sole_pivot_point_L") + return {"FINISHED"} #MASTER -class Operator_Master(bpy.types.Operator): - bl_idname = "operator.master" - bl_label = "BlenRig Select master" - bl_description = "master" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - +class Operator_Master(bpy.types.Operator): + bl_idname = "operator.master" + bl_label = "BlenRig Select master" + bl_description = "master" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): - select_op(self, context, event, "master") - return {"FINISHED"} - -class Operator_Master_Pivot_Point(bpy.types.Operator): - bl_idname = "operator.master_pivot_point" - bl_label = "BlenRig Select master_pivot_point" - bl_description = "master_pivot_point" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - + select_op(self, context, event, "master") + return {"FINISHED"} + +class Operator_Master_Pivot_Point(bpy.types.Operator): + bl_idname = "operator.master_pivot_point" + bl_label = "BlenRig Select master_pivot_point" + bl_description = "master_pivot_point" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): - select_op(self, context, event, "master_pivot_point") - return {"FINISHED"} + select_op(self, context, event, "master_pivot_point") + return {"FINISHED"} ######### QUADRUPED ####################################### #ARM_L -class Operator_Ankle_Toon_L(bpy.types.Operator): - bl_idname = "operator.ankle_toon_l" - bl_label = "BlenRig Select ankle_toon_L" - bl_description = "ankle_toon_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "ankle_toon_L") - return {"FINISHED"} - -class Operator_Carpal_FK_L(bpy.types.Operator): - bl_idname = "operator.carpal_fk_l" - bl_label = "BlenRig Select carpal_fk_L" - bl_description = "carpal_fk_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "carpal_fk_L") - return {"FINISHED"} +class Operator_Ankle_Toon_L(bpy.types.Operator): + bl_idname = "operator.ankle_toon_l" + bl_label = "BlenRig Select ankle_toon_L" + bl_description = "ankle_toon_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Carpal_IK_L(bpy.types.Operator): - bl_idname = "operator.carpal_ik_l" - bl_label = "BlenRig Select carpal_ik_L" - bl_description = "carpal_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "carpal_ik_L") - return {"FINISHED"} + select_op(self, context, event, "ankle_toon_L") + return {"FINISHED"} + +class Operator_Carpal_FK_L(bpy.types.Operator): + bl_idname = "operator.carpal_fk_l" + bl_label = "BlenRig Select carpal_fk_L" + bl_description = "carpal_fk_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Carpal_Toon_L(bpy.types.Operator): - bl_idname = "operator.carpal_toon_l" - bl_label = "BlenRig Select carpal_toon_L" - bl_description = "carpal_toon_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "carpal_toon_L") - return {"FINISHED"} + select_op(self, context, event, "carpal_fk_L") + return {"FINISHED"} + +class Operator_Carpal_IK_L(bpy.types.Operator): + bl_idname = "operator.carpal_ik_l" + bl_label = "BlenRig Select carpal_ik_L" + bl_description = "carpal_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "carpal_ik_L") + return {"FINISHED"} + +class Operator_Carpal_Toon_L(bpy.types.Operator): + bl_idname = "operator.carpal_toon_l" + bl_label = "BlenRig Select carpal_toon_L" + bl_description = "carpal_toon_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "carpal_toon_L") + return {"FINISHED"} #ARM_R -class Operator_Ankle_Toon_R(bpy.types.Operator): - bl_idname = "operator.ankle_toon_r" - bl_label = "BlenRig Select ankle_toon_R" - bl_description = "ankle_toon_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "ankle_toon_R") - return {"FINISHED"} - -class Operator_Carpal_FK_R(bpy.types.Operator): - bl_idname = "operator.carpal_fk_r" - bl_label = "BlenRig Select carpal_fk_R" - bl_description = "carpal_fk_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "carpal_fk_R") - return {"FINISHED"} +class Operator_Ankle_Toon_R(bpy.types.Operator): + bl_idname = "operator.ankle_toon_r" + bl_label = "BlenRig Select ankle_toon_R" + bl_description = "ankle_toon_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Carpal_IK_R(bpy.types.Operator): - bl_idname = "operator.carpal_ik_r" - bl_label = "BlenRig Select carpal_ik_R" - bl_description = "carpal_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "carpal_ik_R") - return {"FINISHED"} + select_op(self, context, event, "ankle_toon_R") + return {"FINISHED"} + +class Operator_Carpal_FK_R(bpy.types.Operator): + bl_idname = "operator.carpal_fk_r" + bl_label = "BlenRig Select carpal_fk_R" + bl_description = "carpal_fk_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Carpal_Toon_R(bpy.types.Operator): - bl_idname = "operator.carpal_toon_r" - bl_label = "BlenRig Select carpal_toon_R" - bl_description = "carpal_toon_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "carpal_toon_R") - return {"FINISHED"} + select_op(self, context, event, "carpal_fk_R") + return {"FINISHED"} + +class Operator_Carpal_IK_R(bpy.types.Operator): + bl_idname = "operator.carpal_ik_r" + bl_label = "BlenRig Select carpal_ik_R" + bl_description = "carpal_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "carpal_ik_R") + return {"FINISHED"} + +class Operator_Carpal_Toon_R(bpy.types.Operator): + bl_idname = "operator.carpal_toon_r" + bl_label = "BlenRig Select carpal_toon_R" + bl_description = "carpal_toon_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "carpal_toon_R") + return {"FINISHED"} #LEG_L -class Operator_Hock_Toon_L(bpy.types.Operator): - bl_idname = "operator.hock_toon_l" - bl_label = "BlenRig Select hock_toon_L" - bl_description = "hock_toon_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "hock_toon_L") - return {"FINISHED"} - -class Operator_Tarsal_FK_L(bpy.types.Operator): - bl_idname = "operator.tarsal_fk_l" - bl_label = "BlenRig Select tarsal_fk_L" - bl_description = "tarsal_fk_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "tarsal_fk_L") - return {"FINISHED"} +class Operator_Hock_Toon_L(bpy.types.Operator): + bl_idname = "operator.hock_toon_l" + bl_label = "BlenRig Select hock_toon_L" + bl_description = "hock_toon_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Tarsal_IK_L(bpy.types.Operator): - bl_idname = "operator.tarsal_ik_l" - bl_label = "BlenRig Select tarsal_ik_L" - bl_description = "tarsal_ik_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "tarsal_ik_L") - return {"FINISHED"} + select_op(self, context, event, "hock_toon_L") + return {"FINISHED"} + +class Operator_Tarsal_FK_L(bpy.types.Operator): + bl_idname = "operator.tarsal_fk_l" + bl_label = "BlenRig Select tarsal_fk_L" + bl_description = "tarsal_fk_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Tarsal_Toon_L(bpy.types.Operator): - bl_idname = "operator.tarsal_toon_l" - bl_label = "BlenRig Select tarsal_toon_L" - bl_description = "tarsal_toon_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "tarsal_toon_L") - return {"FINISHED"} + select_op(self, context, event, "tarsal_fk_L") + return {"FINISHED"} + +class Operator_Tarsal_IK_L(bpy.types.Operator): + bl_idname = "operator.tarsal_ik_l" + bl_label = "BlenRig Select tarsal_ik_L" + bl_description = "tarsal_ik_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "tarsal_ik_L") + return {"FINISHED"} + +class Operator_Tarsal_Toon_L(bpy.types.Operator): + bl_idname = "operator.tarsal_toon_l" + bl_label = "BlenRig Select tarsal_toon_L" + bl_description = "tarsal_toon_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "tarsal_toon_L") + return {"FINISHED"} #LEG_R -class Operator_Hock_Toon_R(bpy.types.Operator): - bl_idname = "operator.hock_toon_r" - bl_label = "BlenRig Select hock_toon_R" - bl_description = "hock_toon_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "hock_toon_R") - return {"FINISHED"} - -class Operator_Tarsal_FK_R(bpy.types.Operator): - bl_idname = "operator.tarsal_fk_r" - bl_label = "BlenRig Select tarsal_fk_R" - bl_description = "tarsal_fk_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "tarsal_fk_R") - return {"FINISHED"} +class Operator_Hock_Toon_R(bpy.types.Operator): + bl_idname = "operator.hock_toon_r" + bl_label = "BlenRig Select hock_toon_R" + bl_description = "hock_toon_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Tarsal_IK_R(bpy.types.Operator): - bl_idname = "operator.tarsal_ik_r" - bl_label = "BlenRig Select tarsal_ik_R" - bl_description = "tarsal_ik_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "tarsal_ik_R") - return {"FINISHED"} - -class Operator_Tarsal_Toon_R(bpy.types.Operator): - bl_idname = "operator.tarsal_toon_r" - bl_label = "BlenRig Select tarsal_toon_R" - bl_description = "tarsal_toon_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - + select_op(self, context, event, "hock_toon_R") + return {"FINISHED"} + +class Operator_Tarsal_FK_R(bpy.types.Operator): + bl_idname = "operator.tarsal_fk_r" + bl_label = "BlenRig Select tarsal_fk_R" + bl_description = "tarsal_fk_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): - select_op(self, context, event, "tarsal_toon_R") - return {"FINISHED"} + select_op(self, context, event, "tarsal_fk_R") + return {"FINISHED"} + +class Operator_Tarsal_IK_R(bpy.types.Operator): + bl_idname = "operator.tarsal_ik_r" + bl_label = "BlenRig Select tarsal_ik_R" + bl_description = "tarsal_ik_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "tarsal_ik_R") + return {"FINISHED"} + +class Operator_Tarsal_Toon_R(bpy.types.Operator): + bl_idname = "operator.tarsal_toon_r" + bl_label = "BlenRig Select tarsal_toon_R" + bl_description = "tarsal_toon_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "tarsal_toon_R") + return {"FINISHED"} #HAND_L -class Operator_Fing_2_FK_L(bpy.types.Operator): - bl_idname = "operator.fing_2_fk_l" - bl_label = "BlenRig Select fing_2_fk_L" - bl_description = "fing_2_fk_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_2_fk_L") - return {"FINISHED"} +class Operator_Fing_2_FK_L(bpy.types.Operator): + bl_idname = "operator.fing_2_fk_l" + bl_label = "BlenRig Select fing_2_fk_L" + bl_description = "fing_2_fk_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Roll_2_L(bpy.types.Operator): - bl_idname = "operator.fing_roll_2_l" - bl_label = "BlenRig Select fing_roll_2_L" - bl_description = "fing_roll_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_roll_2_L") - return {"FINISHED"} + select_op(self, context, event, "fing_2_fk_L") + return {"FINISHED"} + +class Operator_Fing_Roll_2_L(bpy.types.Operator): + bl_idname = "operator.fing_roll_2_l" + bl_label = "BlenRig Select fing_roll_2_L" + bl_description = "fing_roll_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_1_FK_L(bpy.types.Operator): - bl_idname = "operator.fing_1_fk_l" - bl_label = "BlenRig Select fing_1_fk_L" - bl_description = "fing_1_fk_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_1_fk_L") - return {"FINISHED"} + select_op(self, context, event, "fing_roll_2_L") + return {"FINISHED"} + +class Operator_Fing_1_FK_L(bpy.types.Operator): + bl_idname = "operator.fing_1_fk_l" + bl_label = "BlenRig Select fing_1_fk_L" + bl_description = "fing_1_fk_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Roll_1_L(bpy.types.Operator): - bl_idname = "operator.fing_roll_1_l" - bl_label = "BlenRig Select fing_roll_1_L" - bl_description = "fing_roll_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_roll_1_L") - return {"FINISHED"} + select_op(self, context, event, "fing_1_fk_L") + return {"FINISHED"} -class Operator_Hand_L(bpy.types.Operator): - bl_idname = "operator.hand_l" - bl_label = "BlenRig Select hand_L" - bl_description = "hand_ik_ctrl_L / hand_fk_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} +class Operator_Fing_Roll_1_L(bpy.types.Operator): + bl_idname = "operator.fing_roll_1_l" + bl_label = "BlenRig Select fing_roll_1_L" + bl_description = "fing_roll_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_roll_1_L") + return {"FINISHED"} + +class Operator_Hand_L(bpy.types.Operator): + bl_idname = "operator.hand_l" + bl_label = "BlenRig Select hand_L" + bl_description = "hand_ik_ctrl_L / hand_fk_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} def invoke(self, context, event): armobj = bpy.context.active_object arm = bpy.context.active_object.data - prop = int(bpy.context.active_object.pose.bones['properties_arm_L'].ik_arm_L) + prop = int(bpy.context.active_object.pose.bones['properties_arm_L'].ik_arm_L) if ('hand_ik_ctrl_L' and 'hand_fk_L' in armobj.pose.bones): - #Target Bone + #Target Bone if prop == 0: Bone = armobj.pose.bones["hand_ik_ctrl_L"] else: - Bone = armobj.pose.bones["hand_fk_L"] + Bone = armobj.pose.bones["hand_fk_L"] #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} + arm.bones.active = Bone.bone + return {"FINISHED"} -class Operator_Hand_Roll_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.hand_roll_ctrl_l" - bl_label = "BlenRig Select hand_roll_ctrl_L" - bl_description = "hand_roll_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "hand_roll_ctrl_L") - return {"FINISHED"} +class Operator_Hand_Roll_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.hand_roll_ctrl_l" + bl_label = "BlenRig Select hand_roll_ctrl_L" + bl_description = "hand_roll_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Hand_Sole_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.hand_sole_ctrl_l" - bl_label = "BlenRig Select hand_sole_ctrl_L" - bl_description = "hand_sole_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "hand_sole_ctrl_L") - return {"FINISHED"} + select_op(self, context, event, "hand_roll_ctrl_L") + return {"FINISHED"} + +class Operator_Hand_Sole_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.hand_sole_ctrl_l" + bl_label = "BlenRig Select hand_sole_ctrl_L" + bl_description = "hand_sole_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Hand_Sole_Pivot_Point_L(bpy.types.Operator): - bl_idname = "operator.hand_sole_pivot_point_l" - bl_label = "BlenRig Select hand_sole_pivot_point_L" - bl_description = "hand_sole_pivot_point_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "hand_sole_pivot_point_L") - return {"FINISHED"} + select_op(self, context, event, "hand_sole_ctrl_L") + return {"FINISHED"} + +class Operator_Hand_Sole_Pivot_Point_L(bpy.types.Operator): + bl_idname = "operator.hand_sole_pivot_point_l" + bl_label = "BlenRig Select hand_sole_pivot_point_L" + bl_description = "hand_sole_pivot_point_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "hand_sole_pivot_point_L") + return {"FINISHED"} #HAND_R -class Operator_Fing_2_FK_R(bpy.types.Operator): - bl_idname = "operator.fing_2_fk_r" - bl_label = "BlenRig Select fing_2_fk_R" - bl_description = "fing_2_fk_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_2_fk_R") - return {"FINISHED"} +class Operator_Fing_2_FK_R(bpy.types.Operator): + bl_idname = "operator.fing_2_fk_r" + bl_label = "BlenRig Select fing_2_fk_R" + bl_description = "fing_2_fk_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Roll_2_R(bpy.types.Operator): - bl_idname = "operator.fing_roll_2_r" - bl_label = "BlenRig Select fing_roll_2_R" - bl_description = "fing_roll_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_roll_2_R") - return {"FINISHED"} + select_op(self, context, event, "fing_2_fk_R") + return {"FINISHED"} -class Operator_Fing_1_FK_R(bpy.types.Operator): - bl_idname = "operator.fing_1_fk_r" - bl_label = "BlenRig Select fing_1_fk_R" - bl_description = "fing_1_fk_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "fing_1_fk_R") - return {"FINISHED"} +class Operator_Fing_Roll_2_R(bpy.types.Operator): + bl_idname = "operator.fing_roll_2_r" + bl_label = "BlenRig Select fing_roll_2_R" + bl_description = "fing_roll_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Fing_Roll_1_R(bpy.types.Operator): - bl_idname = "operator.fing_roll_1_r" - bl_label = "BlenRig Select fing_roll_1_R" - bl_description = "fing_roll_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "fing_roll_1_R") - return {"FINISHED"} + select_op(self, context, event, "fing_roll_2_R") + return {"FINISHED"} + +class Operator_Fing_1_FK_R(bpy.types.Operator): + bl_idname = "operator.fing_1_fk_r" + bl_label = "BlenRig Select fing_1_fk_R" + bl_description = "fing_1_fk_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Hand_R(bpy.types.Operator): - bl_idname = "operator.hand_r" - bl_label = "BlenRig Select hand_R" - bl_description = "hand_ik_ctrl_R / hand_fk_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "ankle_toon_L") - return {"FINISHED"} + select_op(self, context, event, "fing_1_fk_R") + return {"FINISHED"} + +class Operator_Fing_Roll_1_R(bpy.types.Operator): + bl_idname = "operator.fing_roll_1_r" + bl_label = "BlenRig Select fing_roll_1_R" + bl_description = "fing_roll_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "fing_roll_1_R") + return {"FINISHED"} + +class Operator_Hand_R(bpy.types.Operator): + bl_idname = "operator.hand_r" + bl_label = "BlenRig Select hand_R" + bl_description = "hand_ik_ctrl_R / hand_fk_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "ankle_toon_L") + return {"FINISHED"} def invoke(self, context, event): armobj = bpy.context.active_object arm = bpy.context.active_object.data - prop = int(bpy.context.active_object.pose.bones['properties_arm_R'].ik_arm_R) + prop = int(bpy.context.active_object.pose.bones['properties_arm_R'].ik_arm_R) if ('hand_ik_ctrl_R' and 'hand_fk_R' in armobj.pose.bones): - #Target Bone + #Target Bone if prop == 0: Bone = armobj.pose.bones["hand_ik_ctrl_R"] else: - Bone = armobj.pose.bones["hand_fk_R"] + Bone = armobj.pose.bones["hand_fk_R"] #Check if CTRL or SHIFT are pressed if event.ctrl == True or event.shift == True: #Get previously selected bones - selected = [b.name for b in bpy.context.selected_pose_bones] - #Set target bone as active + selected = [b.name for b in bpy.context.selected_pose_bones] + #Set target bone as active for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone + arm.bones.active = Bone.bone #Reselect previously selected bones for b in armobj.pose.bones: if (b.name in selected): - b.bone.select = 1 - else: + b.bone.select = 1 + else: for b in armobj.pose.bones: b.bone.select = 0 - arm.bones.active = Bone.bone - return {"FINISHED"} + arm.bones.active = Bone.bone + return {"FINISHED"} -class Operator_Hand_Roll_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.hand_roll_ctrl_r" - bl_label = "BlenRig Select hand_roll_ctrl_R" - bl_description = "hand_roll_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "hand_roll_ctrl_R") - return {"FINISHED"} +class Operator_Hand_Roll_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.hand_roll_ctrl_r" + bl_label = "BlenRig Select hand_roll_ctrl_R" + bl_description = "hand_roll_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Hand_Sole_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.hand_sole_ctrl_r" - bl_label = "BlenRig Select hand_sole_ctrl_R" - bl_description = "hand_sole_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "hand_sole_ctrl_R") - return {"FINISHED"} + select_op(self, context, event, "hand_roll_ctrl_R") + return {"FINISHED"} + +class Operator_Hand_Sole_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.hand_sole_ctrl_r" + bl_label = "BlenRig Select hand_sole_ctrl_R" + bl_description = "hand_sole_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Hand_Sole_Pivot_Point_R(bpy.types.Operator): - bl_idname = "operator.hand_sole_pivot_point_r" - bl_label = "BlenRig Select hand_sole_pivot_point_R" - bl_description = "hand_sole_pivot_point_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "hand_sole_pivot_point_R") - return {"FINISHED"} - \ No newline at end of file + select_op(self, context, event, "hand_sole_ctrl_R") + return {"FINISHED"} + +class Operator_Hand_Sole_Pivot_Point_R(bpy.types.Operator): + bl_idname = "operator.hand_sole_pivot_point_r" + bl_label = "BlenRig Select hand_sole_pivot_point_R" + bl_description = "hand_sole_pivot_point_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "hand_sole_pivot_point_R") + return {"FINISHED"} diff --git a/ops_picker_face.py b/ops_picker_face.py index f148748..8d514f8 100644 --- a/ops_picker_face.py +++ b/ops_picker_face.py @@ -4,1783 +4,1783 @@ from .ops_picker_body import select_op ######### FACE PICKER OPERATORS ########################################### -class Operator_Ear_Up_R(bpy.types.Operator): - bl_idname = "operator.ear_up_r" - bl_label = "BlenRig Select ear_up_R" - bl_description = "ear_up_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - +class Operator_Ear_Up_R(bpy.types.Operator): + bl_idname = "operator.ear_up_r" + bl_label = "BlenRig Select ear_up_R" + bl_description = "ear_up_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): - select_op(self, context, event, "ear_up_R") - return {"FINISHED"} - -class Operator_Ear_R(bpy.types.Operator): - bl_idname = "operator.ear_r" - bl_label = "BlenRig Select ear_R" - bl_description = "ear_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "ear_R") - return {"FINISHED"} - -class Operator_Ear_Low_R(bpy.types.Operator): - bl_idname = "operator.ear_low_r" - bl_label = "BlenRig Select ear_low_R" - bl_description = "ear_low_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "ear_low_R") + select_op(self, context, event, "ear_up_R") return {"FINISHED"} -class Operator_Brow_Ctrl_4_R(bpy.types.Operator): - bl_idname = "operator.brow_ctrl_4_r" - bl_label = "BlenRig Select brow_ctrl_4_R" - bl_description = "brow_ctrl_4_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "brow_ctrl_4_R") - return {"FINISHED"} +class Operator_Ear_R(bpy.types.Operator): + bl_idname = "operator.ear_r" + bl_label = "BlenRig Select ear_R" + bl_description = "ear_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Brow_Ctrl_3_R(bpy.types.Operator): - bl_idname = "operator.brow_ctrl_3_r" - bl_label = "BlenRig Select brow_ctrl_3_R" - bl_description = "brow_ctrl_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "brow_ctrl_3_R") - return {"FINISHED"} - -class Operator_Brow_Ctrl_2_R(bpy.types.Operator): - bl_idname = "operator.brow_ctrl_2_r" - bl_label = "BlenRig Select brow_ctrl_2_R" - bl_description = "brow_ctrl_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "brow_ctrl_2_R") - return {"FINISHED"} - -class Operator_Brow_Ctrl_1_R(bpy.types.Operator): - bl_idname = "operator.brow_ctrl_1_r" - bl_label = "BlenRig Select brow_ctrl_1_R" - bl_description = "brow_ctrl_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "brow_ctrl_1_R") - return {"FINISHED"} - -class Operator_Brow_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.brow_ctrl_r" - bl_label = "BlenRig Select brow_ctrl_R" - bl_description = "brow_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "brow_ctrl_R") - return {"FINISHED"} - -class Operator_Toon_Brow_R(bpy.types.Operator): - bl_idname = "operator.toon_brow_r" - bl_label = "BlenRig Select toon_brow_R" - bl_description = "toon_brow_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toon_brow_R") - return {"FINISHED"} - -class Operator_Ear_Up_L(bpy.types.Operator): - bl_idname = "operator.ear_up_l" - bl_label = "BlenRig Select ear_up_L" - bl_description = "ear_up_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "ear_up_L") - return {"FINISHED"} - -class Operator_Ear_L(bpy.types.Operator): - bl_idname = "operator.ear_l" - bl_label = "BlenRig Select ear_L" - bl_description = "ear_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "ear_L") - return {"FINISHED"} - -class Operator_Ear_Low_L(bpy.types.Operator): - bl_idname = "operator.ear_low_l" - bl_label = "BlenRig Select ear_low_L" - bl_description = "ear_low_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "ear_low_L") + select_op(self, context, event, "ear_R") return {"FINISHED"} -class Operator_Brow_Ctrl_4_L(bpy.types.Operator): - bl_idname = "operator.brow_ctrl_4_l" - bl_label = "BlenRig Select brow_ctrl_4_L" - bl_description = "brow_ctrl_4_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "brow_ctrl_4_L") - return {"FINISHED"} +class Operator_Ear_Low_R(bpy.types.Operator): + bl_idname = "operator.ear_low_r" + bl_label = "BlenRig Select ear_low_R" + bl_description = "ear_low_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Brow_Ctrl_3_L(bpy.types.Operator): - bl_idname = "operator.brow_ctrl_3_l" - bl_label = "BlenRig Select brow_ctrl_3_L" - bl_description = "brow_ctrl_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "brow_ctrl_3_L") - return {"FINISHED"} - -class Operator_Brow_Ctrl_2_L(bpy.types.Operator): - bl_idname = "operator.brow_ctrl_2_l" - bl_label = "BlenRig Select brow_ctrl_2_L" - bl_description = "brow_ctrl_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "brow_ctrl_2_L") - return {"FINISHED"} - -class Operator_Brow_Ctrl_1_L(bpy.types.Operator): - bl_idname = "operator.brow_ctrl_1_l" - bl_label = "BlenRig Select brow_ctrl_1_L" - bl_description = "brow_ctrl_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "brow_ctrl_1_L") - return {"FINISHED"} - -class Operator_Brow_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.brow_ctrl_l" - bl_label = "BlenRig Select brow_ctrl_L" - bl_description = "brow_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "brow_ctrl_L") - return {"FINISHED"} - -class Operator_Toon_Brow_L(bpy.types.Operator): - bl_idname = "operator.toon_brow_l" - bl_label = "BlenRig Select toon_brow_L" - bl_description = "toon_brow_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toon_brow_L") - return {"FINISHED"} - -class Operator_Frown_Ctrl(bpy.types.Operator): - bl_idname = "operator.frown_ctrl" - bl_label = "BlenRig Select frown_ctrl" - bl_description = "frown_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "frown_ctrl") - return {"FINISHED"} - -class Operator_Nose_Bridge_1_Ctrl(bpy.types.Operator): - bl_idname = "operator.nose_bridge_1_ctrl" - bl_label = "BlenRig Select nose_bridge_1_ctrl" - bl_description = "nose_bridge_1_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "nose_bridge_1_ctrl") - return {"FINISHED"} - -class Operator_Eyelid_Up_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.eyelid_up_ctrl_r" - bl_label = "BlenRig Select eyelid_up_ctrl_R" - bl_description = "eyelid_up_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_up_ctrl_R") - return {"FINISHED"} - -class Operator_Eyelid_Up_Ctrl_3_R(bpy.types.Operator): - bl_idname = "operator.eyelid_up_ctrl_3_r" - bl_label = "BlenRig Select eyelid_up_ctrl_3_R" - bl_description = "eyelid_up_ctrl_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_up_ctrl_3_R") - return {"FINISHED"} - -class Operator_Eyelid_Up_Ctrl_2_R(bpy.types.Operator): - bl_idname = "operator.eyelid_up_ctrl_2_r" - bl_label = "BlenRig Select eyelid_up_ctrl_2_R" - bl_description = "eyelid_up_ctrl_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_up_ctrl_2_R") - return {"FINISHED"} - -class Operator_Eyelid_Up_Ctrl_1_R(bpy.types.Operator): - bl_idname = "operator.eyelid_up_ctrl_1_r" - bl_label = "BlenRig Select eyelid_up_ctrl_1_R" - bl_description = "eyelid_up_ctrl_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_up_ctrl_1_R") - return {"FINISHED"} - -class Operator_Toon_Eye_Out_R(bpy.types.Operator): - bl_idname = "operator.toon_eye_out_r" - bl_label = "BlenRig Select toon_eye_out_R" - bl_description = "toon_eye_out_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toon_eye_out_R") - return {"FINISHED"} - -class Operator_Toon_Eye_Up_R(bpy.types.Operator): - bl_idname = "operator.toon_eye_up_r" - bl_label = "BlenRig Select toon_eye_up_R" - bl_description = "toon_eye_up_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toon_eye_up_R") - return {"FINISHED"} - -class Operator_Pupil_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.pupil_ctrl_r" - bl_label = "BlenRig Select pupil_ctrl_R" - bl_description = "pupil_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "pupil_ctrl_R") - return {"FINISHED"} - -class Operator_Eye_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.eye_ctrl_r" - bl_label = "BlenRig Select eye_ctrl_R" - bl_description = "eye_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eye_ctrl_R") - return {"FINISHED"} - -class Operator_Iris_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.iris_ctrl_r" - bl_label = "BlenRig Select iris_ctrl_R" - bl_description = "iris_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "iris_ctrl_R") - return {"FINISHED"} - -class Operator_Toon_Eye_In_R(bpy.types.Operator): - bl_idname = "operator.toon_eye_in_r" - bl_label = "BlenRig Select toon_eye_in_R" - bl_description = "toon_eye_in_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toon_eye_in_R") - return {"FINISHED"} - -class Operator_Toon_Eye_Low_R(bpy.types.Operator): - bl_idname = "operator.toon_eye_low_r" - bl_label = "BlenRig Select toon_eye_low_R" - bl_description = "toon_eye_low_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toon_eye_low_R") - return {"FINISHED"} - -class Operator_Eyelid_Ctrl_Out_R(bpy.types.Operator): - bl_idname = "operator.eyelid_ctrl_out_r" - bl_label = "BlenRig Select eyelid_ctrl_out_R" - bl_description = "eyelid_ctrl_out_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_ctrl_out_R") - return {"FINISHED"} - -class Operator_Eyelid_Low_Ctrl_3_R(bpy.types.Operator): - bl_idname = "operator.eyelid_low_ctrl_3_r" - bl_label = "BlenRig Select eyelid_low_ctrl_3_R" - bl_description = "eyelid_low_ctrl_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_low_ctrl_3_R") - return {"FINISHED"} - -class Operator_Eyelid_Low_Ctrl_2_R(bpy.types.Operator): - bl_idname = "operator.eyelid_low_ctrl_2_r" - bl_label = "BlenRig Select eyelid_low_ctrl_2_R" - bl_description = "eyelid_low_ctrl_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_low_ctrl_2_R") - return {"FINISHED"} - -class Operator_Eyelid_Low_Ctrl_1_R(bpy.types.Operator): - bl_idname = "operator.eyelid_low_ctrl_1_r" - bl_label = "BlenRig Select eyelid_low_ctrl_1_R" - bl_description = "eyelid_low_ctrl_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_low_ctrl_1_R") - return {"FINISHED"} - -class Operator_Eyelid_Ctrl_In_R(bpy.types.Operator): - bl_idname = "operator.eyelid_ctrl_in_r" - bl_label = "BlenRig Select eyelid_ctrl_in_R" - bl_description = "eyelid_ctrl_in_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_ctrl_in_R") - return {"FINISHED"} - -class Operator_Eyelid_Low_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.eyelid_low_ctrl_r" - bl_label = "BlenRig Select eyelid_low_ctrl_R" - bl_description = "eyelid_low_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_low_ctrl_R") - return {"FINISHED"} - -class Operator_Eyelid_Up_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.eyelid_up_ctrl_l" - bl_label = "BlenRig Select eyelid_up_ctrl_L" - bl_description = "eyelid_up_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_up_ctrl_L") - return {"FINISHED"} - -class Operator_Eyelid_Up_Ctrl_3_L(bpy.types.Operator): - bl_idname = "operator.eyelid_up_ctrl_3_l" - bl_label = "BlenRig Select eyelid_up_ctrl_3_L" - bl_description = "eyelid_up_ctrl_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_up_ctrl_3_L") - return {"FINISHED"} - -class Operator_Eyelid_Up_Ctrl_2_L(bpy.types.Operator): - bl_idname = "operator.eyelid_up_ctrl_2_l" - bl_label = "BlenRig Select eyelid_up_ctrl_2_L" - bl_description = "eyelid_up_ctrl_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_up_ctrl_2_L") - return {"FINISHED"} - -class Operator_Eyelid_Up_Ctrl_1_L(bpy.types.Operator): - bl_idname = "operator.eyelid_up_ctrl_1_l" - bl_label = "BlenRig Select eyelid_up_ctrl_1_L" - bl_description = "eyelid_up_ctrl_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_up_ctrl_1_L") - return {"FINISHED"} - -class Operator_Toon_Eye_Out_L(bpy.types.Operator): - bl_idname = "operator.toon_eye_out_l" - bl_label = "BlenRig Select toon_eye_out_L" - bl_description = "toon_eye_out_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toon_eye_out_L") - return {"FINISHED"} - -class Operator_Toon_Eye_Up_L(bpy.types.Operator): - bl_idname = "operator.toon_eye_up_l" - bl_label = "BlenRig Select toon_eye_up_L" - bl_description = "toon_eye_up_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toon_eye_up_L") - return {"FINISHED"} - -class Operator_Pupil_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.pupil_ctrl_l" - bl_label = "BlenRig Select pupil_ctrl_L" - bl_description = "pupil_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "pupil_ctrl_L") - return {"FINISHED"} - -class Operator_Eye_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.eye_ctrl_l" - bl_label = "BlenRig Select eye_ctrl_L" - bl_description = "eye_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eye_ctrl_L") - return {"FINISHED"} - -class Operator_Iris_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.iris_ctrl_l" - bl_label = "BlenRig Select iris_ctrl_L" - bl_description = "iris_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "iris_ctrl_L") - return {"FINISHED"} - -class Operator_Toon_Eye_In_L(bpy.types.Operator): - bl_idname = "operator.toon_eye_in_l" - bl_label = "BlenRig Select toon_eye_in_L" - bl_description = "toon_eye_in_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toon_eye_in_L") - return {"FINISHED"} - -class Operator_Toon_Eye_Low_L(bpy.types.Operator): - bl_idname = "operator.toon_eye_low_l" - bl_label = "BlenRig Select toon_eye_low_L" - bl_description = "toon_eye_low_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "toon_eye_low_L") - return {"FINISHED"} - -class Operator_Eyelid_Ctrl_Out_L(bpy.types.Operator): - bl_idname = "operator.eyelid_ctrl_out_l" - bl_label = "BlenRig Select eyelid_ctrl_out_L" - bl_description = "eyelid_ctrl_out_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_ctrl_out_L") - return {"FINISHED"} - -class Operator_Eyelid_Low_Ctrl_3_L(bpy.types.Operator): - bl_idname = "operator.eyelid_low_ctrl_3_l" - bl_label = "BlenRig Select eyelid_low_ctrl_3_L" - bl_description = "eyelid_low_ctrl_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_low_ctrl_3_L") - return {"FINISHED"} - -class Operator_Eyelid_Low_Ctrl_2_L(bpy.types.Operator): - bl_idname = "operator.eyelid_low_ctrl_2_l" - bl_label = "BlenRig Select eyelid_low_ctrl_2_L" - bl_description = "eyelid_low_ctrl_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_low_ctrl_2_L") - return {"FINISHED"} - -class Operator_Eyelid_Low_Ctrl_1_L(bpy.types.Operator): - bl_idname = "operator.eyelid_low_ctrl_1_l" - bl_label = "BlenRig Select eyelid_low_ctrl_1_L" - bl_description = "eyelid_low_ctrl_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_low_ctrl_1_L") - return {"FINISHED"} - -class Operator_Eyelid_Ctrl_In_L(bpy.types.Operator): - bl_idname = "operator.eyelid_ctrl_in_l" - bl_label = "BlenRig Select eyelid_ctrl_in_L" - bl_description = "eyelid_ctrl_in_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_ctrl_in_L") - return {"FINISHED"} - -class Operator_Eyelid_Low_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.eyelid_low_ctrl_l" - bl_label = "BlenRig Select eyelid_low_ctrl_L" - bl_description = "eyelid_low_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "eyelid_low_ctrl_L") - return {"FINISHED"} - -class Operator_Nose_Bridge_2_Ctrl(bpy.types.Operator): - bl_idname = "operator.nose_bridge_2_ctrl" - bl_label = "BlenRig Select nose_bridge_2_ctrl" - bl_description = "nose_bridge_2_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "nose_bridge_2_ctrl") - return {"FINISHED"} - -class Operator_Nose_Frown_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.nose_frown_ctrl_r" - bl_label = "BlenRig Select nose_frown_ctrl_R" - bl_description = "nose_frown_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "nose_frown_ctrl_R") - return {"FINISHED"} - -class Operator_Nose_Frown_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.nose_frown_ctrl_l" - bl_label = "BlenRig Select nose_frown_ctrl_L" - bl_description = "nose_frown_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "nose_frown_ctrl_L") - return {"FINISHED"} - -class Operator_Cheek_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.cheek_ctrl_r" - bl_label = "BlenRig Select cheek_ctrl_R" - bl_description = "cheek_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek_ctrl_R") - return {"FINISHED"} - -class Operator_Cheek_Ctrl_3_R(bpy.types.Operator): - bl_idname = "operator.cheek_ctrl_3_r" - bl_label = "BlenRig Select cheek_ctrl_3_R" - bl_description = "cheek_ctrl_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek_ctrl_3_R") - return {"FINISHED"} - -class Operator_Cheek_Ctrl_2_R(bpy.types.Operator): - bl_idname = "operator.cheek_ctrl_2_r" - bl_label = "BlenRig Select cheek_ctrl_2_R" - bl_description = "cheek_ctrl_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek_ctrl_2_R") - return {"FINISHED"} - -class Operator_Cheek_Ctrl_1_R(bpy.types.Operator): - bl_idname = "operator.cheek_ctrl_1_r" - bl_label = "BlenRig Select cheek_ctrl_1_R" - bl_description = "cheek_ctrl_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek_ctrl_1_R") - return {"FINISHED"} - -class Operator_Cheek2_Ctrl_3_R(bpy.types.Operator): - bl_idname = "operator.cheek2_ctrl_3_r" - bl_label = "BlenRig Select cheek2_ctrl_3_R" - bl_description = "cheek2_ctrl_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek2_ctrl_3_R") - return {"FINISHED"} - -class Operator_Cheek2_Ctrl_2_R(bpy.types.Operator): - bl_idname = "operator.cheek2_ctrl_2_r" - bl_label = "BlenRig Select cheek2_ctrl_2_R" - bl_description = "cheek2_ctrl_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek2_ctrl_2_R") + select_op(self, context, event, "ear_low_R") return {"FINISHED"} - -class Operator_Cheek2_Ctrl_1_R(bpy.types.Operator): - bl_idname = "operator.cheek2_ctrl_1_r" - bl_label = "BlenRig Select cheek2_ctrl_1_R" - bl_description = "cheek2_ctrl_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek2_ctrl_1_R") - return {"FINISHED"} - -class Operator_Lip_Up3_Ctrl_3_R(bpy.types.Operator): - bl_idname = "operator.lip_up3_ctrl_3_r" - bl_label = "BlenRig Select lip_up3_ctrl_3_R" - bl_description = "lip_up3_ctrl_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up3_ctrl_3_R") - return {"FINISHED"} - -class Operator_Lip_Up3_Ctrl_2_R(bpy.types.Operator): - bl_idname = "operator.lip_up3_ctrl_2_r" - bl_label = "BlenRig Select lip_up3_ctrl_2_R" - bl_description = "lip_up3_ctrl_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up3_ctrl_2_R") - return {"FINISHED"} - -class Operator_Lip_Up3_Ctrl_1_R(bpy.types.Operator): - bl_idname = "operator.lip_up3_ctrl_1_r" - bl_label = "BlenRig Select lip_up3_ctrl_1_R" - bl_description = "lip_up3_ctrl_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up3_ctrl_1_R") - return {"FINISHED"} - -class Operator_Lip_Up2_Ctrl_3_R(bpy.types.Operator): - bl_idname = "operator.lip_up2_ctrl_3_r" - bl_label = "BlenRig Select lip_up2_ctrl_3_R" - bl_description = "lip_up2_ctrl_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up2_ctrl_3_R") - return {"FINISHED"} -class Operator_Lip_Up2_Ctrl_2_R(bpy.types.Operator): - bl_idname = "operator.lip_up2_ctrl_2_r" - bl_label = "BlenRig Select lip_up2_ctrl_2_R" - bl_description = "lip_up2_ctrl_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - +class Operator_Brow_Ctrl_4_R(bpy.types.Operator): + bl_idname = "operator.brow_ctrl_4_r" + bl_label = "BlenRig Select brow_ctrl_4_R" + bl_description = "brow_ctrl_4_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): - select_op(self, context, event, "lip_up2_ctrl_2_R") - return {"FINISHED"} - -class Operator_Lip_Up2_Ctrl_1_R(bpy.types.Operator): - bl_idname = "operator.lip_up2_ctrl_1_r" - bl_label = "BlenRig Select lip_up2_ctrl_1_R" - bl_description = "lip_up2_ctrl_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up2_ctrl_1_R") - return {"FINISHED"} - -class Operator_Cheek_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.cheek_ctrl_l" - bl_label = "BlenRig Select cheek_ctrl_L" - bl_description = "cheek_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek_ctrl_L") - return {"FINISHED"} - -class Operator_Cheek_Ctrl_3_L(bpy.types.Operator): - bl_idname = "operator.cheek_ctrl_3_l" - bl_label = "BlenRig Select cheek_ctrl_3_L" - bl_description = "cheek_ctrl_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek_ctrl_3_L") - return {"FINISHED"} - -class Operator_Cheek_Ctrl_2_L(bpy.types.Operator): - bl_idname = "operator.cheek_ctrl_2_l" - bl_label = "BlenRig Select cheek_ctrl_2_L" - bl_description = "cheek_ctrl_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek_ctrl_2_L") - return {"FINISHED"} - -class Operator_Cheek_Ctrl_1_L(bpy.types.Operator): - bl_idname = "operator.cheek_ctrl_1_l" - bl_label = "BlenRig Select cheek_ctrl_1_L" - bl_description = "cheek_ctrl_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek_ctrl_1_L") - return {"FINISHED"} - -class Operator_Cheek2_Ctrl_3_L(bpy.types.Operator): - bl_idname = "operator.cheek2_ctrl_3_l" - bl_label = "BlenRig Select cheek2_ctrl_3_L" - bl_description = "cheek2_ctrl_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek2_ctrl_3_L") - return {"FINISHED"} - -class Operator_Cheek2_Ctrl_2_L(bpy.types.Operator): - bl_idname = "operator.cheek2_ctrl_2_l" - bl_label = "BlenRig Select cheek2_ctrl_2_L" - bl_description = "cheek2_ctrl_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek2_ctrl_2_L") + select_op(self, context, event, "brow_ctrl_4_R") return {"FINISHED"} - -class Operator_Cheek2_Ctrl_1_L(bpy.types.Operator): - bl_idname = "operator.cheek2_ctrl_1_l" - bl_label = "BlenRig Select cheek2_ctrl_1_L" - bl_description = "cheek2_ctrl_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek2_ctrl_1_L") - return {"FINISHED"} - -class Operator_Lip_Up3_Ctrl_3_L(bpy.types.Operator): - bl_idname = "operator.lip_up3_ctrl_3_l" - bl_label = "BlenRig Select lip_up3_ctrl_3_L" - bl_description = "lip_up3_ctrl_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up3_ctrl_3_L") - return {"FINISHED"} - -class Operator_Lip_Up3_Ctrl_2_L(bpy.types.Operator): - bl_idname = "operator.lip_up3_ctrl_2_l" - bl_label = "BlenRig Select lip_up3_ctrl_2_L" - bl_description = "lip_up3_ctrl_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up3_ctrl_2_L") - return {"FINISHED"} - -class Operator_Lip_Up3_Ctrl_1_L(bpy.types.Operator): - bl_idname = "operator.lip_up3_ctrl_1_l" - bl_label = "BlenRig Select lip_up3_ctrl_1_L" - bl_description = "lip_up3_ctrl_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up3_ctrl_1_L") - return {"FINISHED"} - -class Operator_Lip_Up2_Ctrl_3_L(bpy.types.Operator): - bl_idname = "operator.lip_up2_ctrl_3_l" - bl_label = "BlenRig Select lip_up2_ctrl_3_L" - bl_description = "lip_up2_ctrl_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up2_ctrl_3_L") - return {"FINISHED"} -class Operator_Lip_Up2_Ctrl_2_L(bpy.types.Operator): - bl_idname = "operator.lip_up2_ctrl_2_l" - bl_label = "BlenRig Select lip_up2_ctrl_2_L" - bl_description = "lip_up2_ctrl_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up2_ctrl_2_L") - return {"FINISHED"} - -class Operator_Lip_Up2_Ctrl_1_L(bpy.types.Operator): - bl_idname = "operator.lip_up2_ctrl_1_l" - bl_label = "BlenRig Select lip_up2_ctrl_1_L" - bl_description = "lip_up2_ctrl_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up2_ctrl_1_L") - return {"FINISHED"} - -class Operator_Nostril_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.nostril_ctrl_r" - bl_label = "BlenRig Select nostril_ctrl_R" - bl_description = "nostril_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "nostril_ctrl_R") - return {"FINISHED"} - -class Operator_Nose_Ctrl(bpy.types.Operator): - bl_idname = "operator.nose_ctrl" - bl_label = "BlenRig Select nose_ctrl" - bl_description = "nose_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "nose_ctrl") - return {"FINISHED"} - -class Operator_Nostril_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.nostril_ctrl_l" - bl_label = "BlenRig Select nostril_ctrl_L" - bl_description = "nostril_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "nostril_ctrl_L") - return {"FINISHED"} - -class Operator_Lip_Up3_Ctrl_Mid(bpy.types.Operator): - bl_idname = "operator.lip_up3_ctrl_mid" - bl_label = "BlenRig Select lip_up3_ctrl_mid" - bl_description = "lip_up3_ctrl_mid" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up3_ctrl_mid") - return {"FINISHED"} - -class Operator_Lip_Up3_Ctrl(bpy.types.Operator): - bl_idname = "operator.lip_up3_ctrl" - bl_label = "BlenRig Select lip_up3_ctrl" - bl_description = "lip_up3_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up3_ctrl") - return {"FINISHED"} - -class Operator_Lip_Up2_Ctrl_Mid(bpy.types.Operator): - bl_idname = "operator.lip_up2_ctrl_mid" - bl_label = "BlenRig Select lip_up2_ctrl_mid" - bl_description = "lip_up2_ctrl_mid" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up2_ctrl_mid") - return {"FINISHED"} - -class Operator_lip_up2_ctrl(bpy.types.Operator): - bl_idname = "operator.lip_up2_ctrl" - bl_label = "BlenRig Select lip_up2_ctrl" - bl_description = "lip_up2_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up2_ctrl") - return {"FINISHED"} - -class Operator_Cheek_Ctrl_4_R(bpy.types.Operator): - bl_idname = "operator.cheek_ctrl_4_r" - bl_label = "BlenRig Select cheek_ctrl_4_R" - bl_description = "cheek_ctrl_4_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek_ctrl_4_R") - return {"FINISHED"} - -class Operator_Cheek2_Ctrl_4_R(bpy.types.Operator): - bl_idname = "operator.cheek2_ctrl_4_r" - bl_label = "BlenRig Select cheek2_ctrl_4_R" - bl_description = "cheek2_ctrl_4_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek2_ctrl_4_R") - return {"FINISHED"} - -class Operator_Lip_Up3_Ctrl_4_R(bpy.types.Operator): - bl_idname = "operator.lip_up3_ctrl_4_r" - bl_label = "BlenRig Select lip_up3_ctrl_4_R" - bl_description = "lip_up3_ctrl_4_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up3_ctrl_4_R") - return {"FINISHED"} - -class Operator_Lip_Up2_Ctrl_4_R(bpy.types.Operator): - bl_idname = "operator.lip_up2_ctrl_4_r" - bl_label = "BlenRig Select lip_up2_ctrl_4_R" - bl_description = "lip_up2_ctrl_4_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up2_ctrl_4_R") - return {"FINISHED"} - -class Operator_Cheek_Ctrl_4_L(bpy.types.Operator): - bl_idname = "operator.cheek_ctrl_4_l" - bl_label = "BlenRig Select cheek_ctrl_4_L" - bl_description = "cheek_ctrl_4_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek_ctrl_4_L") - return {"FINISHED"} - -class Operator_Cheek2_Ctrl_4_L(bpy.types.Operator): - bl_idname = "operator.cheek2_ctrl_4_l" - bl_label = "BlenRig Select cheek2_ctrl_4_L" - bl_description = "cheek2_ctrl_4_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek2_ctrl_4_L") - return {"FINISHED"} - -class Operator_Lip_Up3_Ctrl_4_L(bpy.types.Operator): - bl_idname = "operator.lip_up3_ctrl_4_l" - bl_label = "BlenRig Select lip_up3_ctrl_4_L" - bl_description = "lip_up3_ctrl_4_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up3_ctrl_4_L") - return {"FINISHED"} - -class Operator_Lip_Up2_Ctrl_4_L(bpy.types.Operator): - bl_idname = "operator.lip_up2_ctrl_4_l" - bl_label = "BlenRig Select lip_up2_ctrl_4_L" - bl_description = "lip_up2_ctrl_4_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up2_ctrl_4_L") - return {"FINISHED"} - -class Operator_Mouth_Mstr_Up(bpy.types.Operator): - bl_idname = "operator.mouth_mstr_up" - bl_label = "BlenRig Select mouth_mstr_up" - bl_description = "mouth_mstr_up" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "mouth_mstr_up") - return {"FINISHED"} - -class Operator_Mouth_Corner_R(bpy.types.Operator): - bl_idname = "operator.mouth_corner_r" - bl_label = "BlenRig Select mouth_corner_R" - bl_description = "mouth_corner_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "mouth_corner_R") - return {"FINISHED"} +class Operator_Brow_Ctrl_3_R(bpy.types.Operator): + bl_idname = "operator.brow_ctrl_3_r" + bl_label = "BlenRig Select brow_ctrl_3_R" + bl_description = "brow_ctrl_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} -class Operator_Mouth_Corner_L(bpy.types.Operator): - bl_idname = "operator.mouth_corner_l" - bl_label = "BlenRig Select mouth_corner_L" - bl_description = "mouth_corner_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - def invoke(self, context, event): - select_op(self, context, event, "mouth_corner_L") - return {"FINISHED"} - -class Operator_Lip_Up_Ctrl(bpy.types.Operator): - bl_idname = "operator.lip_up_ctrl" - bl_label = "BlenRig Select lip_up_ctrl" - bl_description = "lip_up_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up_ctrl") - return {"FINISHED"} - -class Operator_Lip_Up_Ctrl_Collision(bpy.types.Operator): - bl_idname = "operator.lip_up_ctrl_collision" - bl_label = "BlenRig Select lip_up_ctrl_collision" - bl_description = "lip_up_ctrl_collision" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up_ctrl_collision") - return {"FINISHED"} - -class Operator_Lip_Up_Ctrl_3_R(bpy.types.Operator): - bl_idname = "operator.lip_up_ctrl_3_r" - bl_label = "BlenRig Select lip_up_ctrl_3_R" - bl_description = "lip_up_ctrl_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up_ctrl_3_R") - return {"FINISHED"} - -class Operator_Lip_Up_Ctrl_2_R(bpy.types.Operator): - bl_idname = "operator.lip_up_ctrl_2_r" - bl_label = "BlenRig Select lip_up_ctrl_2_R" - bl_description = "lip_up_ctrl_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up_ctrl_2_R") - return {"FINISHED"} - -class Operator_Lip_Up_Ctrl_1_R(bpy.types.Operator): - bl_idname = "operator.lip_up_ctrl_1_r" - bl_label = "BlenRig Select lip_up_ctrl_1_R" - bl_description = "lip_up_ctrl_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up_ctrl_1_R") - return {"FINISHED"} - -class Operator_Lip_Up_Ctrl_Mid(bpy.types.Operator): - bl_idname = "operator.lip_up_ctrl_mid" - bl_label = "BlenRig Select lip_up_ctrl_mid" - bl_description = "lip_up_ctrl_mid" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up_ctrl_mid") - return {"FINISHED"} - -class Operator_Lip_Up_Ctrl_1_L(bpy.types.Operator): - bl_idname = "operator.lip_up_ctrl_1_l" - bl_label = "BlenRig Select lip_up_ctrl_1_L" - bl_description = "lip_up_ctrl_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up_ctrl_1_L") - return {"FINISHED"} - -class Operator_Lip_Up_Ctrl_2_L(bpy.types.Operator): - bl_idname = "operator.lip_up_ctrl_2_l" - bl_label = "BlenRig Select lip_up_ctrl_2_L" - bl_description = "lip_up_ctrl_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up_ctrl_2_L") - return {"FINISHED"} - -class Operator_Lip_Up_Ctrl_3_L(bpy.types.Operator): - bl_idname = "operator.lip_up_ctrl_3_l" - bl_label = "BlenRig Select lip_up_ctrl_3_L" - bl_description = "lip_up_ctrl_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up_ctrl_3_L") - return {"FINISHED"} - -class Operator_Mouth_Up_Ctrl(bpy.types.Operator): - bl_idname = "operator.mouth_up_ctrl" - bl_label = "BlenRig Select mouth_up_ctrl" - bl_description = "mouth_up_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "mouth_up_ctrl") - return {"FINISHED"} - -class Operator_Lip_Up_Ctrl_4_R(bpy.types.Operator): - bl_idname = "operator.lip_up_ctrl_4_r" - bl_label = "BlenRig Select lip_up_ctrl_4_R" - bl_description = "lip_up_ctrl_4_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up_ctrl_4_R") - return {"FINISHED"} - -class Operator_Lip_Up_Ctrl_4_L(bpy.types.Operator): - bl_idname = "operator.lip_up_ctrl_4_l" - bl_label = "BlenRig Select lip_up_ctrl_4_L" - bl_description = "lip_up_ctrl_4_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_up_ctrl_4_L") - return {"FINISHED"} - -class Operator_Mouth_Ctrl(bpy.types.Operator): - bl_idname = "operator.mouth_ctrl" - bl_label = "BlenRig Select mouth_ctrl" - bl_description = "mouth_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "mouth_ctrl") - return {"FINISHED"} - -class Operator_Mouth_Low_Ctrl(bpy.types.Operator): - bl_idname = "operator.mouth_low_ctrl" - bl_label = "BlenRig Select mouth_low_ctrl" - bl_description = "mouth_low_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "mouth_low_ctrl") + select_op(self, context, event, "brow_ctrl_3_R") return {"FINISHED"} - -class Operator_Lip_Low_Ctrl_3_R(bpy.types.Operator): - bl_idname = "operator.lip_low_ctrl_3_r" - bl_label = "BlenRig Select lip_low_ctrl_3_R" - bl_description = "lip_low_ctrl_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - + +class Operator_Brow_Ctrl_2_R(bpy.types.Operator): + bl_idname = "operator.brow_ctrl_2_r" + bl_label = "BlenRig Select brow_ctrl_2_R" + bl_description = "brow_ctrl_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + def invoke(self, context, event): - select_op(self, context, event, "lip_low_ctrl_3_R") - return {"FINISHED"} - -class Operator_Lip_Low_Ctrl_2_R(bpy.types.Operator): - bl_idname = "operator.lip_low_ctrl_2_r" - bl_label = "BlenRig Select lip_low_ctrl_2_R" - bl_description = "lip_low_ctrl_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low_ctrl_2_R") - return {"FINISHED"} - -class Operator_Lip_Low_Ctrl_1_R(bpy.types.Operator): - bl_idname = "operator.lip_low_ctrl_1_r" - bl_label = "BlenRig Select lip_low_ctrl_1_R" - bl_description = "lip_low_ctrl_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low_ctrl_1_R") - return {"FINISHED"} - -class Operator_Lip_Low_Ctrl_Mid(bpy.types.Operator): - bl_idname = "operator.lip_low_ctrl_mid" - bl_label = "BlenRig Select lip_low_ctrl_mid" - bl_description = "lip_low_ctrl_mid" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low_ctrl_mid") - return {"FINISHED"} - -class Operator_Lip_Low_Ctrl_1_L(bpy.types.Operator): - bl_idname = "operator.lip_low_ctrl_1_l" - bl_label = "BlenRig Select lip_low_ctrl_1_L" - bl_description = "lip_low_ctrl_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low_ctrl_1_L") - return {"FINISHED"} - -class Operator_Lip_Low_Ctrl_2_L(bpy.types.Operator): - bl_idname = "operator.lip_low_ctrl_2_l" - bl_label = "BlenRig Select lip_low_ctrl_2_L" - bl_description = "lip_low_ctrl_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low_ctrl_2_L") - return {"FINISHED"} - -class Operator_Lip_Low_Ctrl_3_L(bpy.types.Operator): - bl_idname = "operator.lip_low_ctrl_3_l" - bl_label = "BlenRig Select lip_low_ctrl_3_L" - bl_description = "lip_low_ctrl_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low_ctrl_3_L") - return {"FINISHED"} - -class Operator_Lip_Low_Ctrl_Collision(bpy.types.Operator): - bl_idname = "operator.lip_low_ctrl_collision" - bl_label = "BlenRig Select lip_low_ctrl_collision" - bl_description = "lip_low_ctrl_collision" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low_ctrl_collision") - return {"FINISHED"} - -class Operator_Lip_Low_Ctrl(bpy.types.Operator): - bl_idname = "operator.lip_low_ctrl" - bl_label = "BlenRig Select lip_low_ctrl" - bl_description = "lip_low_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low_ctrl") - return {"FINISHED"} - -class Operator_Mouth_Mstr_Low(bpy.types.Operator): - bl_idname = "operator.mouth_mstr_low" - bl_label = "BlenRig Select mouth_mstr_low" - bl_description = "mouth_mstr_low" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "mouth_mstr_low") - return {"FINISHED"} - -class Operator_Mouth_Mstr_Ctrl(bpy.types.Operator): - bl_idname = "operator.mouth_mstr_ctrl" - bl_label = "BlenRig Select mouth_mstr_ctrl" - bl_description = "mouth_mstr_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "mouth_mstr_ctrl") - return {"FINISHED"} - -class Operator_Mouth_Frown_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.mouth_frown_ctrl_r" - bl_label = "BlenRig Select mouth_frown_ctrl_R" - bl_description = "mouth_frown_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "mouth_frown_ctrl_R") - return {"FINISHED"} - -class Operator_Lip_Low2_Ctrl_3_R(bpy.types.Operator): - bl_idname = "operator.lip_low2_ctrl_3_r" - bl_label = "BlenRig Select lip_low2_ctrl_3_R" - bl_description = "lip_low2_ctrl_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low2_ctrl_3_R") - return {"FINISHED"} - -class Operator_Lip_Low2_Ctrl_2_R(bpy.types.Operator): - bl_idname = "operator.lip_low2_ctrl_2_r" - bl_label = "BlenRig Select lip_low2_ctrl_2_R" - bl_description = "lip_low2_ctrl_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low2_ctrl_2_R") - return {"FINISHED"} - -class Operator_Lip_Low2_Ctrl_1_R(bpy.types.Operator): - bl_idname = "operator.lip_low2_ctrl_1_r" - bl_label = "BlenRig Select lip_low2_ctrl_1_R" - bl_description = "lip_low2_ctrl_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low2_ctrl_1_R") - return {"FINISHED"} - -class Operator_Lip_Low3_Ctrl_3_R(bpy.types.Operator): - bl_idname = "operator.lip_low3_ctrl_3_r" - bl_label = "BlenRig Select lip_low3_ctrl_3_R" - bl_description = "lip_low3_ctrl_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low3_ctrl_3_R") - return {"FINISHED"} - -class Operator_Lip_Low3_Ctrl_2_R(bpy.types.Operator): - bl_idname = "operator.lip_low3_ctrl_2_r" - bl_label = "BlenRig Select lip_low3_ctrl_2_R" - bl_description = "lip_low3_ctrl_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low3_ctrl_2_R") - return {"FINISHED"} - -class Operator_Lip_Low3_Ctrl_1_R(bpy.types.Operator): - bl_idname = "operator.lip_low3_ctrl_1_r" - bl_label = "BlenRig Select lip_low3_ctrl_1_R" - bl_description = "lip_low3_ctrl_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low3_ctrl_1_R") - return {"FINISHED"} - -class Operator_Cheek_Ctrl_5_R(bpy.types.Operator): - bl_idname = "operator.cheek_ctrl_5_r" - bl_label = "BlenRig Select cheek_ctrl_5_R" - bl_description = "cheek_ctrl_5_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek_ctrl_5_R") - return {"FINISHED"} - -class Operator_Chin_Ctrl_3_R(bpy.types.Operator): - bl_idname = "operator.chin_ctrl_3_r" - bl_label = "BlenRig Select chin_ctrl_3_R" - bl_description = "chin_ctrl_3_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "chin_ctrl_3_R") - return {"FINISHED"} - -class Operator_Chin_Ctrl_2_R(bpy.types.Operator): - bl_idname = "operator.chin_ctrl_2_r" - bl_label = "BlenRig Select chin_ctrl_2_R" - bl_description = "chin_ctrl_2_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "chin_ctrl_2_R") - return {"FINISHED"} - -class Operator_Chin_Ctrl_1_R(bpy.types.Operator): - bl_idname = "operator.chin_ctrl_1_r" - bl_label = "BlenRig Select chin_ctrl_1_R" - bl_description = "chin_ctrl_1_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "chin_ctrl_1_R") - return {"FINISHED"} - -class Operator_Mouth_Frown_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.mouth_frown_ctrl_l" - bl_label = "BlenRig Select mouth_frown_ctrl_L" - bl_description = "mouth_frown_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "mouth_frown_ctrl_L") - return {"FINISHED"} - -class Operator_Lip_Low2_Ctrl_3_L(bpy.types.Operator): - bl_idname = "operator.lip_low2_ctrl_3_l" - bl_label = "BlenRig Select lip_low2_ctrl_3_L" - bl_description = "lip_low2_ctrl_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low2_ctrl_3_L") - return {"FINISHED"} - -class Operator_Lip_Low2_Ctrl_2_L(bpy.types.Operator): - bl_idname = "operator.lip_low2_ctrl_2_l" - bl_label = "BlenRig Select lip_low2_ctrl_2_L" - bl_description = "lip_low2_ctrl_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low2_ctrl_2_L") - return {"FINISHED"} - -class Operator_Lip_Low2_Ctrl_1_L(bpy.types.Operator): - bl_idname = "operator.lip_low2_ctrl_1_l" - bl_label = "BlenRig Select lip_low2_ctrl_1_L" - bl_description = "lip_low2_ctrl_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low2_ctrl_1_L") - return {"FINISHED"} - -class Operator_Lip_Low3_Ctrl_3_L(bpy.types.Operator): - bl_idname = "operator.lip_low3_ctrl_3_l" - bl_label = "BlenRig Select lip_low3_ctrl_3_L" - bl_description = "lip_low3_ctrl_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low3_ctrl_3_L") - return {"FINISHED"} - -class Operator_Lip_Low3_Ctrl_2_L(bpy.types.Operator): - bl_idname = "operator.lip_low3_ctrl_2_l" - bl_label = "BlenRig Select lip_low3_ctrl_2_L" - bl_description = "lip_low3_ctrl_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low3_ctrl_2_L") - return {"FINISHED"} - -class Operator_Lip_Low3_Ctrl_1_L(bpy.types.Operator): - bl_idname = "operator.lip_low3_ctrl_1_l" - bl_label = "BlenRig Select lip_low3_ctrl_1_L" - bl_description = "lip_low3_ctrl_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low3_ctrl_1_L") - return {"FINISHED"} - -class Operator_Cheek_Ctrl_5_L(bpy.types.Operator): - bl_idname = "operator.cheek_ctrl_5_l" - bl_label = "BlenRig Select cheek_ctrl_5_L" - bl_description = "cheek_ctrl_5_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "cheek_ctrl_5_L") - return {"FINISHED"} - -class Operator_Chin_Ctrl_3_L(bpy.types.Operator): - bl_idname = "operator.chin_ctrl_3_l" - bl_label = "BlenRig Select chin_ctrl_3_L" - bl_description = "chin_ctrl_3_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "chin_ctrl_3_L") - return {"FINISHED"} - -class Operator_Chin_Ctrl_2_L(bpy.types.Operator): - bl_idname = "operator.chin_ctrl_2_l" - bl_label = "BlenRig Select chin_ctrl_2_L" - bl_description = "chin_ctrl_2_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "chin_ctrl_2_L") - return {"FINISHED"} - -class Operator_Chin_Ctrl_1_L(bpy.types.Operator): - bl_idname = "operator.chin_ctrl_1_l" - bl_label = "BlenRig Select chin_ctrl_1_L" - bl_description = "chin_ctrl_1_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "chin_ctrl_1_L") - return {"FINISHED"} - -class Operator_Lip_Low2_Ctrl_Mid(bpy.types.Operator): - bl_idname = "operator.lip_low2_ctrl_mid" - bl_label = "BlenRig Select lip_low2_ctrl_mid" - bl_description = "lip_low2_ctrl_mid" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low2_ctrl_mid") - return {"FINISHED"} - -class Operator_Lip_Low2_Ctrl(bpy.types.Operator): - bl_idname = "operator.lip_low2_ctrl" - bl_label = "BlenRig Select lip_low2_ctrl" - bl_description = "lip_low2_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low2_ctrl") - return {"FINISHED"} - -class Operator_Lip_Low3_Ctrl_Mid(bpy.types.Operator): - bl_idname = "operator.lip_low3_ctrl_mid" - bl_label = "BlenRig Select lip_low3_ctrl_mid" - bl_description = "lip_low3_ctrl_mid" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low3_ctrl_mid") - return {"FINISHED"} - -class Operator_Lip_Low3_Ctrl(bpy.types.Operator): - bl_idname = "operator.lip_low3_ctrl" - bl_label = "BlenRig Select lip_low3_ctrl" - bl_description = "lip_low3_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "lip_low3_ctrl") - return {"FINISHED"} - -class Operator_Chin_Ctrl_Mid(bpy.types.Operator): - bl_idname = "operator.chin_ctrl_mid" - bl_label = "BlenRig Select chin_ctrl_mid" - bl_description = "chin_ctrl_mid" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "chin_ctrl_mid") - return {"FINISHED"} - -class Operator_Chin_Ctrl(bpy.types.Operator): - bl_idname = "operator.chin_ctrl" - bl_label = "BlenRig Select chin_ctrl" - bl_description = "chin_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "chin_ctrl") - return {"FINISHED"} - -class Operator_Maxi(bpy.types.Operator): - bl_idname = "operator.maxi" - bl_label = "BlenRig Select maxi" - bl_description = "maxi" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "maxi") + select_op(self, context, event, "brow_ctrl_2_R") return {"FINISHED"} - -class Operator_Mouth_Str_Ctrl(bpy.types.Operator): - bl_idname = "operator.mouth_str_ctrl" - bl_label = "BlenRig Select mouth_str_ctrl" - bl_description = "mouth_str_ctrl" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "mouth_str_ctrl") - return {"FINISHED"} - -class Operator_Head_Mid_Stretch(bpy.types.Operator): - bl_idname = "operator.head_mid_stretch" - bl_label = "BlenRig Select head_mid_stretch" - bl_description = "head_mid_stretch" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "head_mid_stretch") - return {"FINISHED"} - -class Operator_Head_Low_Stretch(bpy.types.Operator): - bl_idname = "operator.head_low_stretch" - bl_label = "BlenRig Select head_low_stretch" - bl_description = "head_low_stretch" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "head_low_stretch") - return {"FINISHED"} - -class Operator_Teeth_Up_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.teeth_up_ctrl_r" - bl_label = "BlenRig Select teeth_up_ctrl_R" - bl_description = "teeth_up_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "teeth_up_ctrl_R") - return {"FINISHED"} - -class Operator_Teeth_Up_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.teeth_up_ctrl_l" - bl_label = "BlenRig Select teeth_up_ctrl_L" - bl_description = "teeth_up_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "teeth_up_ctrl_L") - return {"FINISHED"} - -class Operator_Teeth_Up_Ctrl_Mid_R(bpy.types.Operator): - bl_idname = "operator.teeth_up_ctrl_mid_r" - bl_label = "BlenRig Select teeth_up_ctrl_mid_R" - bl_description = "teeth_up_ctrl_mid_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "teeth_up_ctrl_mid_R") - return {"FINISHED"} - -class Operator_Teeth_Up_Ctrl_Mid_L(bpy.types.Operator): - bl_idname = "operator.teeth_up_ctrl_mid_l" - bl_label = "BlenRig Select teeth_up_ctrl_mid_L" - bl_description = "teeth_up_ctrl_mid_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "teeth_up_ctrl_mid_L") - return {"FINISHED"} - -class Operator_Teeth_Up_Ctrl_Mid(bpy.types.Operator): - bl_idname = "operator.teeth_up_ctrl_mid" - bl_label = "BlenRig Select teeth_up_ctrl_mid" - bl_description = "teeth_up_ctrl_mid" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "teeth_up_ctrl_mid") - return {"FINISHED"} - -class Operator_Teeth_Up(bpy.types.Operator): - bl_idname = "operator.teeth_up" - bl_label = "BlenRig Select teeth_up" - bl_description = "teeth_up" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "teeth_up") - return {"FINISHED"} - -class Operator_Teeth_Low_Ctrl_R(bpy.types.Operator): - bl_idname = "operator.teeth_low_ctrl_r" - bl_label = "BlenRig Select teeth_low_ctrl_R" - bl_description = "teeth_low_ctrl_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "teeth_low_ctrl_R") - return {"FINISHED"} - -class Operator_Teeth_Low_Ctrl_L(bpy.types.Operator): - bl_idname = "operator.teeth_low_ctrl_l" - bl_label = "BlenRig Select teeth_low_ctrl_L" - bl_description = "teeth_low_ctrl_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "teeth_low_ctrl_L") - return {"FINISHED"} - -class Operator_Teeth_Low_Ctrl_Mid_R(bpy.types.Operator): - bl_idname = "operator.teeth_low_ctrl_mid_r" - bl_label = "BlenRig Select teeth_low_ctrl_mid_R" - bl_description = "teeth_low_ctrl_mid_R" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "teeth_low_ctrl_mid_R") - return {"FINISHED"} - -class Operator_Teeth_Low_Ctrl_Mid_L(bpy.types.Operator): - bl_idname = "operator.teeth_low_ctrl_mid_l" - bl_label = "BlenRig Select teeth_low_ctrl_mid_L" - bl_description = "teeth_low_ctrl_mid_L" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "teeth_low_ctrl_mid_L") - return {"FINISHED"} - -class Operator_Teeth_Low_Ctrl_Mid(bpy.types.Operator): - bl_idname = "operator.teeth_low_ctrl_mid" - bl_label = "BlenRig Select teeth_low_ctrl_mid" - bl_description = "teeth_low_ctrl_mid" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "teeth_low_ctrl_mid") - return {"FINISHED"} - -class Operator_Teeth_Low(bpy.types.Operator): - bl_idname = "operator.teeth_low" - bl_label = "BlenRig Select teeth_low" - bl_description = "teeth_low" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "teeth_low") - return {"FINISHED"} -class Operator_Uvula_1(bpy.types.Operator): - bl_idname = "operator.uvula_1" - bl_label = "BlenRig Select uvula_1" - bl_description = "uvula_1" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "uvula_1") - return {"FINISHED"} - -class Operator_Uvula_2(bpy.types.Operator): - bl_idname = "operator.uvula_2" - bl_label = "BlenRig Select uvula_2" - bl_description = "uvula_2" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "uvula_2") - return {"FINISHED"} - -class Operator_Tongue_1_FK(bpy.types.Operator): - bl_idname = "operator.tongue_1_fk" - bl_label = "BlenRig Select tongue_1_fk" - bl_description = "tongue_1_fk" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "tongue_1_fk") - return {"FINISHED"} - -class Operator_Tongue_2_FK(bpy.types.Operator): - bl_idname = "operator.tongue_2_fk" - bl_label = "BlenRig Select tongue_2_fk" - bl_description = "tongue_2_fk" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "tongue_2_fk") - return {"FINISHED"} - -class Operator_Tongue_1_IK(bpy.types.Operator): - bl_idname = "operator.tongue_1_ik" - bl_label = "BlenRig Select tongue_1_ik" - bl_description = "tongue_1_ik" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "tongue_1_ik") - return {"FINISHED"} - -class Operator_Tongue_2_IK(bpy.types.Operator): - bl_idname = "operator.tongue_2_ik" - bl_label = "BlenRig Select tongue_2_ik" - bl_description = "tongue_2_ik" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "tongue_2_ik") - return {"FINISHED"} - -class Operator_Tongue_3_IK(bpy.types.Operator): - bl_idname = "operator.tongue_3_ik" - bl_label = "BlenRig Select tongue_3_ik" - bl_description = "tongue_3_ik" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "tongue_3_ik") - return {"FINISHED"} - -class Operator_Tongue_Mstr(bpy.types.Operator): - bl_idname = "operator.tongue_mstr" - bl_label = "BlenRig Select tongue_mstr" - bl_description = "tongue_mstr" - bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} - - def invoke(self, context, event): - select_op(self, context, event, "tongue_mstr") - return {"FINISHED"} +class Operator_Brow_Ctrl_1_R(bpy.types.Operator): + bl_idname = "operator.brow_ctrl_1_r" + bl_label = "BlenRig Select brow_ctrl_1_R" + bl_description = "brow_ctrl_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "brow_ctrl_1_R") + return {"FINISHED"} + +class Operator_Brow_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.brow_ctrl_r" + bl_label = "BlenRig Select brow_ctrl_R" + bl_description = "brow_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "brow_ctrl_R") + return {"FINISHED"} + +class Operator_Toon_Brow_R(bpy.types.Operator): + bl_idname = "operator.toon_brow_r" + bl_label = "BlenRig Select toon_brow_R" + bl_description = "toon_brow_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toon_brow_R") + return {"FINISHED"} + +class Operator_Ear_Up_L(bpy.types.Operator): + bl_idname = "operator.ear_up_l" + bl_label = "BlenRig Select ear_up_L" + bl_description = "ear_up_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "ear_up_L") + return {"FINISHED"} + +class Operator_Ear_L(bpy.types.Operator): + bl_idname = "operator.ear_l" + bl_label = "BlenRig Select ear_L" + bl_description = "ear_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "ear_L") + return {"FINISHED"} + +class Operator_Ear_Low_L(bpy.types.Operator): + bl_idname = "operator.ear_low_l" + bl_label = "BlenRig Select ear_low_L" + bl_description = "ear_low_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "ear_low_L") + return {"FINISHED"} + +class Operator_Brow_Ctrl_4_L(bpy.types.Operator): + bl_idname = "operator.brow_ctrl_4_l" + bl_label = "BlenRig Select brow_ctrl_4_L" + bl_description = "brow_ctrl_4_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "brow_ctrl_4_L") + return {"FINISHED"} + +class Operator_Brow_Ctrl_3_L(bpy.types.Operator): + bl_idname = "operator.brow_ctrl_3_l" + bl_label = "BlenRig Select brow_ctrl_3_L" + bl_description = "brow_ctrl_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "brow_ctrl_3_L") + return {"FINISHED"} + +class Operator_Brow_Ctrl_2_L(bpy.types.Operator): + bl_idname = "operator.brow_ctrl_2_l" + bl_label = "BlenRig Select brow_ctrl_2_L" + bl_description = "brow_ctrl_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "brow_ctrl_2_L") + return {"FINISHED"} + +class Operator_Brow_Ctrl_1_L(bpy.types.Operator): + bl_idname = "operator.brow_ctrl_1_l" + bl_label = "BlenRig Select brow_ctrl_1_L" + bl_description = "brow_ctrl_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "brow_ctrl_1_L") + return {"FINISHED"} + +class Operator_Brow_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.brow_ctrl_l" + bl_label = "BlenRig Select brow_ctrl_L" + bl_description = "brow_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "brow_ctrl_L") + return {"FINISHED"} + +class Operator_Toon_Brow_L(bpy.types.Operator): + bl_idname = "operator.toon_brow_l" + bl_label = "BlenRig Select toon_brow_L" + bl_description = "toon_brow_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toon_brow_L") + return {"FINISHED"} + +class Operator_Frown_Ctrl(bpy.types.Operator): + bl_idname = "operator.frown_ctrl" + bl_label = "BlenRig Select frown_ctrl" + bl_description = "frown_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "frown_ctrl") + return {"FINISHED"} + +class Operator_Nose_Bridge_1_Ctrl(bpy.types.Operator): + bl_idname = "operator.nose_bridge_1_ctrl" + bl_label = "BlenRig Select nose_bridge_1_ctrl" + bl_description = "nose_bridge_1_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "nose_bridge_1_ctrl") + return {"FINISHED"} + +class Operator_Eyelid_Up_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.eyelid_up_ctrl_r" + bl_label = "BlenRig Select eyelid_up_ctrl_R" + bl_description = "eyelid_up_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_up_ctrl_R") + return {"FINISHED"} + +class Operator_Eyelid_Up_Ctrl_3_R(bpy.types.Operator): + bl_idname = "operator.eyelid_up_ctrl_3_r" + bl_label = "BlenRig Select eyelid_up_ctrl_3_R" + bl_description = "eyelid_up_ctrl_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_up_ctrl_3_R") + return {"FINISHED"} + +class Operator_Eyelid_Up_Ctrl_2_R(bpy.types.Operator): + bl_idname = "operator.eyelid_up_ctrl_2_r" + bl_label = "BlenRig Select eyelid_up_ctrl_2_R" + bl_description = "eyelid_up_ctrl_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_up_ctrl_2_R") + return {"FINISHED"} + +class Operator_Eyelid_Up_Ctrl_1_R(bpy.types.Operator): + bl_idname = "operator.eyelid_up_ctrl_1_r" + bl_label = "BlenRig Select eyelid_up_ctrl_1_R" + bl_description = "eyelid_up_ctrl_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_up_ctrl_1_R") + return {"FINISHED"} + +class Operator_Toon_Eye_Out_R(bpy.types.Operator): + bl_idname = "operator.toon_eye_out_r" + bl_label = "BlenRig Select toon_eye_out_R" + bl_description = "toon_eye_out_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toon_eye_out_R") + return {"FINISHED"} + +class Operator_Toon_Eye_Up_R(bpy.types.Operator): + bl_idname = "operator.toon_eye_up_r" + bl_label = "BlenRig Select toon_eye_up_R" + bl_description = "toon_eye_up_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toon_eye_up_R") + return {"FINISHED"} + +class Operator_Pupil_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.pupil_ctrl_r" + bl_label = "BlenRig Select pupil_ctrl_R" + bl_description = "pupil_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "pupil_ctrl_R") + return {"FINISHED"} + +class Operator_Eye_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.eye_ctrl_r" + bl_label = "BlenRig Select eye_ctrl_R" + bl_description = "eye_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eye_ctrl_R") + return {"FINISHED"} + +class Operator_Iris_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.iris_ctrl_r" + bl_label = "BlenRig Select iris_ctrl_R" + bl_description = "iris_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "iris_ctrl_R") + return {"FINISHED"} + +class Operator_Toon_Eye_In_R(bpy.types.Operator): + bl_idname = "operator.toon_eye_in_r" + bl_label = "BlenRig Select toon_eye_in_R" + bl_description = "toon_eye_in_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toon_eye_in_R") + return {"FINISHED"} + +class Operator_Toon_Eye_Low_R(bpy.types.Operator): + bl_idname = "operator.toon_eye_low_r" + bl_label = "BlenRig Select toon_eye_low_R" + bl_description = "toon_eye_low_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toon_eye_low_R") + return {"FINISHED"} + +class Operator_Eyelid_Ctrl_Out_R(bpy.types.Operator): + bl_idname = "operator.eyelid_ctrl_out_r" + bl_label = "BlenRig Select eyelid_ctrl_out_R" + bl_description = "eyelid_ctrl_out_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_ctrl_out_R") + return {"FINISHED"} + +class Operator_Eyelid_Low_Ctrl_3_R(bpy.types.Operator): + bl_idname = "operator.eyelid_low_ctrl_3_r" + bl_label = "BlenRig Select eyelid_low_ctrl_3_R" + bl_description = "eyelid_low_ctrl_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_low_ctrl_3_R") + return {"FINISHED"} + +class Operator_Eyelid_Low_Ctrl_2_R(bpy.types.Operator): + bl_idname = "operator.eyelid_low_ctrl_2_r" + bl_label = "BlenRig Select eyelid_low_ctrl_2_R" + bl_description = "eyelid_low_ctrl_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_low_ctrl_2_R") + return {"FINISHED"} + +class Operator_Eyelid_Low_Ctrl_1_R(bpy.types.Operator): + bl_idname = "operator.eyelid_low_ctrl_1_r" + bl_label = "BlenRig Select eyelid_low_ctrl_1_R" + bl_description = "eyelid_low_ctrl_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_low_ctrl_1_R") + return {"FINISHED"} + +class Operator_Eyelid_Ctrl_In_R(bpy.types.Operator): + bl_idname = "operator.eyelid_ctrl_in_r" + bl_label = "BlenRig Select eyelid_ctrl_in_R" + bl_description = "eyelid_ctrl_in_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_ctrl_in_R") + return {"FINISHED"} + +class Operator_Eyelid_Low_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.eyelid_low_ctrl_r" + bl_label = "BlenRig Select eyelid_low_ctrl_R" + bl_description = "eyelid_low_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_low_ctrl_R") + return {"FINISHED"} + +class Operator_Eyelid_Up_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.eyelid_up_ctrl_l" + bl_label = "BlenRig Select eyelid_up_ctrl_L" + bl_description = "eyelid_up_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_up_ctrl_L") + return {"FINISHED"} + +class Operator_Eyelid_Up_Ctrl_3_L(bpy.types.Operator): + bl_idname = "operator.eyelid_up_ctrl_3_l" + bl_label = "BlenRig Select eyelid_up_ctrl_3_L" + bl_description = "eyelid_up_ctrl_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_up_ctrl_3_L") + return {"FINISHED"} + +class Operator_Eyelid_Up_Ctrl_2_L(bpy.types.Operator): + bl_idname = "operator.eyelid_up_ctrl_2_l" + bl_label = "BlenRig Select eyelid_up_ctrl_2_L" + bl_description = "eyelid_up_ctrl_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_up_ctrl_2_L") + return {"FINISHED"} + +class Operator_Eyelid_Up_Ctrl_1_L(bpy.types.Operator): + bl_idname = "operator.eyelid_up_ctrl_1_l" + bl_label = "BlenRig Select eyelid_up_ctrl_1_L" + bl_description = "eyelid_up_ctrl_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_up_ctrl_1_L") + return {"FINISHED"} + +class Operator_Toon_Eye_Out_L(bpy.types.Operator): + bl_idname = "operator.toon_eye_out_l" + bl_label = "BlenRig Select toon_eye_out_L" + bl_description = "toon_eye_out_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toon_eye_out_L") + return {"FINISHED"} + +class Operator_Toon_Eye_Up_L(bpy.types.Operator): + bl_idname = "operator.toon_eye_up_l" + bl_label = "BlenRig Select toon_eye_up_L" + bl_description = "toon_eye_up_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toon_eye_up_L") + return {"FINISHED"} + +class Operator_Pupil_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.pupil_ctrl_l" + bl_label = "BlenRig Select pupil_ctrl_L" + bl_description = "pupil_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "pupil_ctrl_L") + return {"FINISHED"} + +class Operator_Eye_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.eye_ctrl_l" + bl_label = "BlenRig Select eye_ctrl_L" + bl_description = "eye_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eye_ctrl_L") + return {"FINISHED"} + +class Operator_Iris_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.iris_ctrl_l" + bl_label = "BlenRig Select iris_ctrl_L" + bl_description = "iris_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "iris_ctrl_L") + return {"FINISHED"} + +class Operator_Toon_Eye_In_L(bpy.types.Operator): + bl_idname = "operator.toon_eye_in_l" + bl_label = "BlenRig Select toon_eye_in_L" + bl_description = "toon_eye_in_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toon_eye_in_L") + return {"FINISHED"} + +class Operator_Toon_Eye_Low_L(bpy.types.Operator): + bl_idname = "operator.toon_eye_low_l" + bl_label = "BlenRig Select toon_eye_low_L" + bl_description = "toon_eye_low_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "toon_eye_low_L") + return {"FINISHED"} + +class Operator_Eyelid_Ctrl_Out_L(bpy.types.Operator): + bl_idname = "operator.eyelid_ctrl_out_l" + bl_label = "BlenRig Select eyelid_ctrl_out_L" + bl_description = "eyelid_ctrl_out_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_ctrl_out_L") + return {"FINISHED"} + +class Operator_Eyelid_Low_Ctrl_3_L(bpy.types.Operator): + bl_idname = "operator.eyelid_low_ctrl_3_l" + bl_label = "BlenRig Select eyelid_low_ctrl_3_L" + bl_description = "eyelid_low_ctrl_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_low_ctrl_3_L") + return {"FINISHED"} + +class Operator_Eyelid_Low_Ctrl_2_L(bpy.types.Operator): + bl_idname = "operator.eyelid_low_ctrl_2_l" + bl_label = "BlenRig Select eyelid_low_ctrl_2_L" + bl_description = "eyelid_low_ctrl_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_low_ctrl_2_L") + return {"FINISHED"} + +class Operator_Eyelid_Low_Ctrl_1_L(bpy.types.Operator): + bl_idname = "operator.eyelid_low_ctrl_1_l" + bl_label = "BlenRig Select eyelid_low_ctrl_1_L" + bl_description = "eyelid_low_ctrl_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_low_ctrl_1_L") + return {"FINISHED"} + +class Operator_Eyelid_Ctrl_In_L(bpy.types.Operator): + bl_idname = "operator.eyelid_ctrl_in_l" + bl_label = "BlenRig Select eyelid_ctrl_in_L" + bl_description = "eyelid_ctrl_in_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_ctrl_in_L") + return {"FINISHED"} + +class Operator_Eyelid_Low_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.eyelid_low_ctrl_l" + bl_label = "BlenRig Select eyelid_low_ctrl_L" + bl_description = "eyelid_low_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "eyelid_low_ctrl_L") + return {"FINISHED"} + +class Operator_Nose_Bridge_2_Ctrl(bpy.types.Operator): + bl_idname = "operator.nose_bridge_2_ctrl" + bl_label = "BlenRig Select nose_bridge_2_ctrl" + bl_description = "nose_bridge_2_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "nose_bridge_2_ctrl") + return {"FINISHED"} + +class Operator_Nose_Frown_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.nose_frown_ctrl_r" + bl_label = "BlenRig Select nose_frown_ctrl_R" + bl_description = "nose_frown_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "nose_frown_ctrl_R") + return {"FINISHED"} + +class Operator_Nose_Frown_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.nose_frown_ctrl_l" + bl_label = "BlenRig Select nose_frown_ctrl_L" + bl_description = "nose_frown_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "nose_frown_ctrl_L") + return {"FINISHED"} + +class Operator_Cheek_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.cheek_ctrl_r" + bl_label = "BlenRig Select cheek_ctrl_R" + bl_description = "cheek_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek_ctrl_R") + return {"FINISHED"} + +class Operator_Cheek_Ctrl_3_R(bpy.types.Operator): + bl_idname = "operator.cheek_ctrl_3_r" + bl_label = "BlenRig Select cheek_ctrl_3_R" + bl_description = "cheek_ctrl_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek_ctrl_3_R") + return {"FINISHED"} + +class Operator_Cheek_Ctrl_2_R(bpy.types.Operator): + bl_idname = "operator.cheek_ctrl_2_r" + bl_label = "BlenRig Select cheek_ctrl_2_R" + bl_description = "cheek_ctrl_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek_ctrl_2_R") + return {"FINISHED"} + +class Operator_Cheek_Ctrl_1_R(bpy.types.Operator): + bl_idname = "operator.cheek_ctrl_1_r" + bl_label = "BlenRig Select cheek_ctrl_1_R" + bl_description = "cheek_ctrl_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek_ctrl_1_R") + return {"FINISHED"} + +class Operator_Cheek2_Ctrl_3_R(bpy.types.Operator): + bl_idname = "operator.cheek2_ctrl_3_r" + bl_label = "BlenRig Select cheek2_ctrl_3_R" + bl_description = "cheek2_ctrl_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek2_ctrl_3_R") + return {"FINISHED"} + +class Operator_Cheek2_Ctrl_2_R(bpy.types.Operator): + bl_idname = "operator.cheek2_ctrl_2_r" + bl_label = "BlenRig Select cheek2_ctrl_2_R" + bl_description = "cheek2_ctrl_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek2_ctrl_2_R") + return {"FINISHED"} + +class Operator_Cheek2_Ctrl_1_R(bpy.types.Operator): + bl_idname = "operator.cheek2_ctrl_1_r" + bl_label = "BlenRig Select cheek2_ctrl_1_R" + bl_description = "cheek2_ctrl_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek2_ctrl_1_R") + return {"FINISHED"} + +class Operator_Lip_Up3_Ctrl_3_R(bpy.types.Operator): + bl_idname = "operator.lip_up3_ctrl_3_r" + bl_label = "BlenRig Select lip_up3_ctrl_3_R" + bl_description = "lip_up3_ctrl_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up3_ctrl_3_R") + return {"FINISHED"} + +class Operator_Lip_Up3_Ctrl_2_R(bpy.types.Operator): + bl_idname = "operator.lip_up3_ctrl_2_r" + bl_label = "BlenRig Select lip_up3_ctrl_2_R" + bl_description = "lip_up3_ctrl_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up3_ctrl_2_R") + return {"FINISHED"} + +class Operator_Lip_Up3_Ctrl_1_R(bpy.types.Operator): + bl_idname = "operator.lip_up3_ctrl_1_r" + bl_label = "BlenRig Select lip_up3_ctrl_1_R" + bl_description = "lip_up3_ctrl_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up3_ctrl_1_R") + return {"FINISHED"} + +class Operator_Lip_Up2_Ctrl_3_R(bpy.types.Operator): + bl_idname = "operator.lip_up2_ctrl_3_r" + bl_label = "BlenRig Select lip_up2_ctrl_3_R" + bl_description = "lip_up2_ctrl_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up2_ctrl_3_R") + return {"FINISHED"} + +class Operator_Lip_Up2_Ctrl_2_R(bpy.types.Operator): + bl_idname = "operator.lip_up2_ctrl_2_r" + bl_label = "BlenRig Select lip_up2_ctrl_2_R" + bl_description = "lip_up2_ctrl_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up2_ctrl_2_R") + return {"FINISHED"} + +class Operator_Lip_Up2_Ctrl_1_R(bpy.types.Operator): + bl_idname = "operator.lip_up2_ctrl_1_r" + bl_label = "BlenRig Select lip_up2_ctrl_1_R" + bl_description = "lip_up2_ctrl_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up2_ctrl_1_R") + return {"FINISHED"} + +class Operator_Cheek_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.cheek_ctrl_l" + bl_label = "BlenRig Select cheek_ctrl_L" + bl_description = "cheek_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek_ctrl_L") + return {"FINISHED"} + +class Operator_Cheek_Ctrl_3_L(bpy.types.Operator): + bl_idname = "operator.cheek_ctrl_3_l" + bl_label = "BlenRig Select cheek_ctrl_3_L" + bl_description = "cheek_ctrl_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek_ctrl_3_L") + return {"FINISHED"} + +class Operator_Cheek_Ctrl_2_L(bpy.types.Operator): + bl_idname = "operator.cheek_ctrl_2_l" + bl_label = "BlenRig Select cheek_ctrl_2_L" + bl_description = "cheek_ctrl_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek_ctrl_2_L") + return {"FINISHED"} + +class Operator_Cheek_Ctrl_1_L(bpy.types.Operator): + bl_idname = "operator.cheek_ctrl_1_l" + bl_label = "BlenRig Select cheek_ctrl_1_L" + bl_description = "cheek_ctrl_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek_ctrl_1_L") + return {"FINISHED"} + +class Operator_Cheek2_Ctrl_3_L(bpy.types.Operator): + bl_idname = "operator.cheek2_ctrl_3_l" + bl_label = "BlenRig Select cheek2_ctrl_3_L" + bl_description = "cheek2_ctrl_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek2_ctrl_3_L") + return {"FINISHED"} + +class Operator_Cheek2_Ctrl_2_L(bpy.types.Operator): + bl_idname = "operator.cheek2_ctrl_2_l" + bl_label = "BlenRig Select cheek2_ctrl_2_L" + bl_description = "cheek2_ctrl_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek2_ctrl_2_L") + return {"FINISHED"} + +class Operator_Cheek2_Ctrl_1_L(bpy.types.Operator): + bl_idname = "operator.cheek2_ctrl_1_l" + bl_label = "BlenRig Select cheek2_ctrl_1_L" + bl_description = "cheek2_ctrl_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek2_ctrl_1_L") + return {"FINISHED"} + +class Operator_Lip_Up3_Ctrl_3_L(bpy.types.Operator): + bl_idname = "operator.lip_up3_ctrl_3_l" + bl_label = "BlenRig Select lip_up3_ctrl_3_L" + bl_description = "lip_up3_ctrl_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up3_ctrl_3_L") + return {"FINISHED"} + +class Operator_Lip_Up3_Ctrl_2_L(bpy.types.Operator): + bl_idname = "operator.lip_up3_ctrl_2_l" + bl_label = "BlenRig Select lip_up3_ctrl_2_L" + bl_description = "lip_up3_ctrl_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up3_ctrl_2_L") + return {"FINISHED"} + +class Operator_Lip_Up3_Ctrl_1_L(bpy.types.Operator): + bl_idname = "operator.lip_up3_ctrl_1_l" + bl_label = "BlenRig Select lip_up3_ctrl_1_L" + bl_description = "lip_up3_ctrl_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up3_ctrl_1_L") + return {"FINISHED"} + +class Operator_Lip_Up2_Ctrl_3_L(bpy.types.Operator): + bl_idname = "operator.lip_up2_ctrl_3_l" + bl_label = "BlenRig Select lip_up2_ctrl_3_L" + bl_description = "lip_up2_ctrl_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up2_ctrl_3_L") + return {"FINISHED"} + +class Operator_Lip_Up2_Ctrl_2_L(bpy.types.Operator): + bl_idname = "operator.lip_up2_ctrl_2_l" + bl_label = "BlenRig Select lip_up2_ctrl_2_L" + bl_description = "lip_up2_ctrl_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up2_ctrl_2_L") + return {"FINISHED"} + +class Operator_Lip_Up2_Ctrl_1_L(bpy.types.Operator): + bl_idname = "operator.lip_up2_ctrl_1_l" + bl_label = "BlenRig Select lip_up2_ctrl_1_L" + bl_description = "lip_up2_ctrl_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up2_ctrl_1_L") + return {"FINISHED"} + +class Operator_Nostril_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.nostril_ctrl_r" + bl_label = "BlenRig Select nostril_ctrl_R" + bl_description = "nostril_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "nostril_ctrl_R") + return {"FINISHED"} + +class Operator_Nose_Ctrl(bpy.types.Operator): + bl_idname = "operator.nose_ctrl" + bl_label = "BlenRig Select nose_ctrl" + bl_description = "nose_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "nose_ctrl") + return {"FINISHED"} + +class Operator_Nostril_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.nostril_ctrl_l" + bl_label = "BlenRig Select nostril_ctrl_L" + bl_description = "nostril_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "nostril_ctrl_L") + return {"FINISHED"} + +class Operator_Lip_Up3_Ctrl_Mid(bpy.types.Operator): + bl_idname = "operator.lip_up3_ctrl_mid" + bl_label = "BlenRig Select lip_up3_ctrl_mid" + bl_description = "lip_up3_ctrl_mid" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up3_ctrl_mid") + return {"FINISHED"} + +class Operator_Lip_Up3_Ctrl(bpy.types.Operator): + bl_idname = "operator.lip_up3_ctrl" + bl_label = "BlenRig Select lip_up3_ctrl" + bl_description = "lip_up3_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up3_ctrl") + return {"FINISHED"} + +class Operator_Lip_Up2_Ctrl_Mid(bpy.types.Operator): + bl_idname = "operator.lip_up2_ctrl_mid" + bl_label = "BlenRig Select lip_up2_ctrl_mid" + bl_description = "lip_up2_ctrl_mid" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up2_ctrl_mid") + return {"FINISHED"} + +class Operator_lip_up2_ctrl(bpy.types.Operator): + bl_idname = "operator.lip_up2_ctrl" + bl_label = "BlenRig Select lip_up2_ctrl" + bl_description = "lip_up2_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up2_ctrl") + return {"FINISHED"} + +class Operator_Cheek_Ctrl_4_R(bpy.types.Operator): + bl_idname = "operator.cheek_ctrl_4_r" + bl_label = "BlenRig Select cheek_ctrl_4_R" + bl_description = "cheek_ctrl_4_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek_ctrl_4_R") + return {"FINISHED"} + +class Operator_Cheek2_Ctrl_4_R(bpy.types.Operator): + bl_idname = "operator.cheek2_ctrl_4_r" + bl_label = "BlenRig Select cheek2_ctrl_4_R" + bl_description = "cheek2_ctrl_4_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek2_ctrl_4_R") + return {"FINISHED"} + +class Operator_Lip_Up3_Ctrl_4_R(bpy.types.Operator): + bl_idname = "operator.lip_up3_ctrl_4_r" + bl_label = "BlenRig Select lip_up3_ctrl_4_R" + bl_description = "lip_up3_ctrl_4_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up3_ctrl_4_R") + return {"FINISHED"} + +class Operator_Lip_Up2_Ctrl_4_R(bpy.types.Operator): + bl_idname = "operator.lip_up2_ctrl_4_r" + bl_label = "BlenRig Select lip_up2_ctrl_4_R" + bl_description = "lip_up2_ctrl_4_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up2_ctrl_4_R") + return {"FINISHED"} + +class Operator_Cheek_Ctrl_4_L(bpy.types.Operator): + bl_idname = "operator.cheek_ctrl_4_l" + bl_label = "BlenRig Select cheek_ctrl_4_L" + bl_description = "cheek_ctrl_4_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek_ctrl_4_L") + return {"FINISHED"} + +class Operator_Cheek2_Ctrl_4_L(bpy.types.Operator): + bl_idname = "operator.cheek2_ctrl_4_l" + bl_label = "BlenRig Select cheek2_ctrl_4_L" + bl_description = "cheek2_ctrl_4_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek2_ctrl_4_L") + return {"FINISHED"} + +class Operator_Lip_Up3_Ctrl_4_L(bpy.types.Operator): + bl_idname = "operator.lip_up3_ctrl_4_l" + bl_label = "BlenRig Select lip_up3_ctrl_4_L" + bl_description = "lip_up3_ctrl_4_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up3_ctrl_4_L") + return {"FINISHED"} + +class Operator_Lip_Up2_Ctrl_4_L(bpy.types.Operator): + bl_idname = "operator.lip_up2_ctrl_4_l" + bl_label = "BlenRig Select lip_up2_ctrl_4_L" + bl_description = "lip_up2_ctrl_4_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up2_ctrl_4_L") + return {"FINISHED"} + +class Operator_Mouth_Mstr_Up(bpy.types.Operator): + bl_idname = "operator.mouth_mstr_up" + bl_label = "BlenRig Select mouth_mstr_up" + bl_description = "mouth_mstr_up" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "mouth_mstr_up") + return {"FINISHED"} + +class Operator_Mouth_Corner_R(bpy.types.Operator): + bl_idname = "operator.mouth_corner_r" + bl_label = "BlenRig Select mouth_corner_R" + bl_description = "mouth_corner_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "mouth_corner_R") + return {"FINISHED"} + +class Operator_Mouth_Corner_L(bpy.types.Operator): + bl_idname = "operator.mouth_corner_l" + bl_label = "BlenRig Select mouth_corner_L" + bl_description = "mouth_corner_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "mouth_corner_L") + return {"FINISHED"} + +class Operator_Lip_Up_Ctrl(bpy.types.Operator): + bl_idname = "operator.lip_up_ctrl" + bl_label = "BlenRig Select lip_up_ctrl" + bl_description = "lip_up_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up_ctrl") + return {"FINISHED"} + +class Operator_Lip_Up_Ctrl_Collision(bpy.types.Operator): + bl_idname = "operator.lip_up_ctrl_collision" + bl_label = "BlenRig Select lip_up_ctrl_collision" + bl_description = "lip_up_ctrl_collision" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up_ctrl_collision") + return {"FINISHED"} + +class Operator_Lip_Up_Ctrl_3_R(bpy.types.Operator): + bl_idname = "operator.lip_up_ctrl_3_r" + bl_label = "BlenRig Select lip_up_ctrl_3_R" + bl_description = "lip_up_ctrl_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up_ctrl_3_R") + return {"FINISHED"} + +class Operator_Lip_Up_Ctrl_2_R(bpy.types.Operator): + bl_idname = "operator.lip_up_ctrl_2_r" + bl_label = "BlenRig Select lip_up_ctrl_2_R" + bl_description = "lip_up_ctrl_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up_ctrl_2_R") + return {"FINISHED"} + +class Operator_Lip_Up_Ctrl_1_R(bpy.types.Operator): + bl_idname = "operator.lip_up_ctrl_1_r" + bl_label = "BlenRig Select lip_up_ctrl_1_R" + bl_description = "lip_up_ctrl_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up_ctrl_1_R") + return {"FINISHED"} + +class Operator_Lip_Up_Ctrl_Mid(bpy.types.Operator): + bl_idname = "operator.lip_up_ctrl_mid" + bl_label = "BlenRig Select lip_up_ctrl_mid" + bl_description = "lip_up_ctrl_mid" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up_ctrl_mid") + return {"FINISHED"} + +class Operator_Lip_Up_Ctrl_1_L(bpy.types.Operator): + bl_idname = "operator.lip_up_ctrl_1_l" + bl_label = "BlenRig Select lip_up_ctrl_1_L" + bl_description = "lip_up_ctrl_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up_ctrl_1_L") + return {"FINISHED"} + +class Operator_Lip_Up_Ctrl_2_L(bpy.types.Operator): + bl_idname = "operator.lip_up_ctrl_2_l" + bl_label = "BlenRig Select lip_up_ctrl_2_L" + bl_description = "lip_up_ctrl_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up_ctrl_2_L") + return {"FINISHED"} + +class Operator_Lip_Up_Ctrl_3_L(bpy.types.Operator): + bl_idname = "operator.lip_up_ctrl_3_l" + bl_label = "BlenRig Select lip_up_ctrl_3_L" + bl_description = "lip_up_ctrl_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up_ctrl_3_L") + return {"FINISHED"} + +class Operator_Mouth_Up_Ctrl(bpy.types.Operator): + bl_idname = "operator.mouth_up_ctrl" + bl_label = "BlenRig Select mouth_up_ctrl" + bl_description = "mouth_up_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "mouth_up_ctrl") + return {"FINISHED"} + +class Operator_Lip_Up_Ctrl_4_R(bpy.types.Operator): + bl_idname = "operator.lip_up_ctrl_4_r" + bl_label = "BlenRig Select lip_up_ctrl_4_R" + bl_description = "lip_up_ctrl_4_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up_ctrl_4_R") + return {"FINISHED"} + +class Operator_Lip_Up_Ctrl_4_L(bpy.types.Operator): + bl_idname = "operator.lip_up_ctrl_4_l" + bl_label = "BlenRig Select lip_up_ctrl_4_L" + bl_description = "lip_up_ctrl_4_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_up_ctrl_4_L") + return {"FINISHED"} + +class Operator_Mouth_Ctrl(bpy.types.Operator): + bl_idname = "operator.mouth_ctrl" + bl_label = "BlenRig Select mouth_ctrl" + bl_description = "mouth_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "mouth_ctrl") + return {"FINISHED"} + +class Operator_Mouth_Low_Ctrl(bpy.types.Operator): + bl_idname = "operator.mouth_low_ctrl" + bl_label = "BlenRig Select mouth_low_ctrl" + bl_description = "mouth_low_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "mouth_low_ctrl") + return {"FINISHED"} + +class Operator_Lip_Low_Ctrl_3_R(bpy.types.Operator): + bl_idname = "operator.lip_low_ctrl_3_r" + bl_label = "BlenRig Select lip_low_ctrl_3_R" + bl_description = "lip_low_ctrl_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low_ctrl_3_R") + return {"FINISHED"} + +class Operator_Lip_Low_Ctrl_2_R(bpy.types.Operator): + bl_idname = "operator.lip_low_ctrl_2_r" + bl_label = "BlenRig Select lip_low_ctrl_2_R" + bl_description = "lip_low_ctrl_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low_ctrl_2_R") + return {"FINISHED"} + +class Operator_Lip_Low_Ctrl_1_R(bpy.types.Operator): + bl_idname = "operator.lip_low_ctrl_1_r" + bl_label = "BlenRig Select lip_low_ctrl_1_R" + bl_description = "lip_low_ctrl_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low_ctrl_1_R") + return {"FINISHED"} + +class Operator_Lip_Low_Ctrl_Mid(bpy.types.Operator): + bl_idname = "operator.lip_low_ctrl_mid" + bl_label = "BlenRig Select lip_low_ctrl_mid" + bl_description = "lip_low_ctrl_mid" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low_ctrl_mid") + return {"FINISHED"} + +class Operator_Lip_Low_Ctrl_1_L(bpy.types.Operator): + bl_idname = "operator.lip_low_ctrl_1_l" + bl_label = "BlenRig Select lip_low_ctrl_1_L" + bl_description = "lip_low_ctrl_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low_ctrl_1_L") + return {"FINISHED"} + +class Operator_Lip_Low_Ctrl_2_L(bpy.types.Operator): + bl_idname = "operator.lip_low_ctrl_2_l" + bl_label = "BlenRig Select lip_low_ctrl_2_L" + bl_description = "lip_low_ctrl_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low_ctrl_2_L") + return {"FINISHED"} + +class Operator_Lip_Low_Ctrl_3_L(bpy.types.Operator): + bl_idname = "operator.lip_low_ctrl_3_l" + bl_label = "BlenRig Select lip_low_ctrl_3_L" + bl_description = "lip_low_ctrl_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low_ctrl_3_L") + return {"FINISHED"} + +class Operator_Lip_Low_Ctrl_Collision(bpy.types.Operator): + bl_idname = "operator.lip_low_ctrl_collision" + bl_label = "BlenRig Select lip_low_ctrl_collision" + bl_description = "lip_low_ctrl_collision" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low_ctrl_collision") + return {"FINISHED"} + +class Operator_Lip_Low_Ctrl(bpy.types.Operator): + bl_idname = "operator.lip_low_ctrl" + bl_label = "BlenRig Select lip_low_ctrl" + bl_description = "lip_low_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low_ctrl") + return {"FINISHED"} + +class Operator_Mouth_Mstr_Low(bpy.types.Operator): + bl_idname = "operator.mouth_mstr_low" + bl_label = "BlenRig Select mouth_mstr_low" + bl_description = "mouth_mstr_low" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "mouth_mstr_low") + return {"FINISHED"} + +class Operator_Mouth_Mstr_Ctrl(bpy.types.Operator): + bl_idname = "operator.mouth_mstr_ctrl" + bl_label = "BlenRig Select mouth_mstr_ctrl" + bl_description = "mouth_mstr_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "mouth_mstr_ctrl") + return {"FINISHED"} + +class Operator_Mouth_Frown_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.mouth_frown_ctrl_r" + bl_label = "BlenRig Select mouth_frown_ctrl_R" + bl_description = "mouth_frown_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "mouth_frown_ctrl_R") + return {"FINISHED"} + +class Operator_Lip_Low2_Ctrl_3_R(bpy.types.Operator): + bl_idname = "operator.lip_low2_ctrl_3_r" + bl_label = "BlenRig Select lip_low2_ctrl_3_R" + bl_description = "lip_low2_ctrl_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low2_ctrl_3_R") + return {"FINISHED"} + +class Operator_Lip_Low2_Ctrl_2_R(bpy.types.Operator): + bl_idname = "operator.lip_low2_ctrl_2_r" + bl_label = "BlenRig Select lip_low2_ctrl_2_R" + bl_description = "lip_low2_ctrl_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low2_ctrl_2_R") + return {"FINISHED"} + +class Operator_Lip_Low2_Ctrl_1_R(bpy.types.Operator): + bl_idname = "operator.lip_low2_ctrl_1_r" + bl_label = "BlenRig Select lip_low2_ctrl_1_R" + bl_description = "lip_low2_ctrl_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low2_ctrl_1_R") + return {"FINISHED"} + +class Operator_Lip_Low3_Ctrl_3_R(bpy.types.Operator): + bl_idname = "operator.lip_low3_ctrl_3_r" + bl_label = "BlenRig Select lip_low3_ctrl_3_R" + bl_description = "lip_low3_ctrl_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low3_ctrl_3_R") + return {"FINISHED"} + +class Operator_Lip_Low3_Ctrl_2_R(bpy.types.Operator): + bl_idname = "operator.lip_low3_ctrl_2_r" + bl_label = "BlenRig Select lip_low3_ctrl_2_R" + bl_description = "lip_low3_ctrl_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low3_ctrl_2_R") + return {"FINISHED"} + +class Operator_Lip_Low3_Ctrl_1_R(bpy.types.Operator): + bl_idname = "operator.lip_low3_ctrl_1_r" + bl_label = "BlenRig Select lip_low3_ctrl_1_R" + bl_description = "lip_low3_ctrl_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low3_ctrl_1_R") + return {"FINISHED"} + +class Operator_Cheek_Ctrl_5_R(bpy.types.Operator): + bl_idname = "operator.cheek_ctrl_5_r" + bl_label = "BlenRig Select cheek_ctrl_5_R" + bl_description = "cheek_ctrl_5_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek_ctrl_5_R") + return {"FINISHED"} + +class Operator_Chin_Ctrl_3_R(bpy.types.Operator): + bl_idname = "operator.chin_ctrl_3_r" + bl_label = "BlenRig Select chin_ctrl_3_R" + bl_description = "chin_ctrl_3_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "chin_ctrl_3_R") + return {"FINISHED"} + +class Operator_Chin_Ctrl_2_R(bpy.types.Operator): + bl_idname = "operator.chin_ctrl_2_r" + bl_label = "BlenRig Select chin_ctrl_2_R" + bl_description = "chin_ctrl_2_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "chin_ctrl_2_R") + return {"FINISHED"} + +class Operator_Chin_Ctrl_1_R(bpy.types.Operator): + bl_idname = "operator.chin_ctrl_1_r" + bl_label = "BlenRig Select chin_ctrl_1_R" + bl_description = "chin_ctrl_1_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "chin_ctrl_1_R") + return {"FINISHED"} + +class Operator_Mouth_Frown_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.mouth_frown_ctrl_l" + bl_label = "BlenRig Select mouth_frown_ctrl_L" + bl_description = "mouth_frown_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "mouth_frown_ctrl_L") + return {"FINISHED"} + +class Operator_Lip_Low2_Ctrl_3_L(bpy.types.Operator): + bl_idname = "operator.lip_low2_ctrl_3_l" + bl_label = "BlenRig Select lip_low2_ctrl_3_L" + bl_description = "lip_low2_ctrl_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low2_ctrl_3_L") + return {"FINISHED"} + +class Operator_Lip_Low2_Ctrl_2_L(bpy.types.Operator): + bl_idname = "operator.lip_low2_ctrl_2_l" + bl_label = "BlenRig Select lip_low2_ctrl_2_L" + bl_description = "lip_low2_ctrl_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low2_ctrl_2_L") + return {"FINISHED"} + +class Operator_Lip_Low2_Ctrl_1_L(bpy.types.Operator): + bl_idname = "operator.lip_low2_ctrl_1_l" + bl_label = "BlenRig Select lip_low2_ctrl_1_L" + bl_description = "lip_low2_ctrl_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low2_ctrl_1_L") + return {"FINISHED"} + +class Operator_Lip_Low3_Ctrl_3_L(bpy.types.Operator): + bl_idname = "operator.lip_low3_ctrl_3_l" + bl_label = "BlenRig Select lip_low3_ctrl_3_L" + bl_description = "lip_low3_ctrl_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low3_ctrl_3_L") + return {"FINISHED"} + +class Operator_Lip_Low3_Ctrl_2_L(bpy.types.Operator): + bl_idname = "operator.lip_low3_ctrl_2_l" + bl_label = "BlenRig Select lip_low3_ctrl_2_L" + bl_description = "lip_low3_ctrl_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low3_ctrl_2_L") + return {"FINISHED"} + +class Operator_Lip_Low3_Ctrl_1_L(bpy.types.Operator): + bl_idname = "operator.lip_low3_ctrl_1_l" + bl_label = "BlenRig Select lip_low3_ctrl_1_L" + bl_description = "lip_low3_ctrl_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low3_ctrl_1_L") + return {"FINISHED"} + +class Operator_Cheek_Ctrl_5_L(bpy.types.Operator): + bl_idname = "operator.cheek_ctrl_5_l" + bl_label = "BlenRig Select cheek_ctrl_5_L" + bl_description = "cheek_ctrl_5_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "cheek_ctrl_5_L") + return {"FINISHED"} + +class Operator_Chin_Ctrl_3_L(bpy.types.Operator): + bl_idname = "operator.chin_ctrl_3_l" + bl_label = "BlenRig Select chin_ctrl_3_L" + bl_description = "chin_ctrl_3_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "chin_ctrl_3_L") + return {"FINISHED"} + +class Operator_Chin_Ctrl_2_L(bpy.types.Operator): + bl_idname = "operator.chin_ctrl_2_l" + bl_label = "BlenRig Select chin_ctrl_2_L" + bl_description = "chin_ctrl_2_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "chin_ctrl_2_L") + return {"FINISHED"} + +class Operator_Chin_Ctrl_1_L(bpy.types.Operator): + bl_idname = "operator.chin_ctrl_1_l" + bl_label = "BlenRig Select chin_ctrl_1_L" + bl_description = "chin_ctrl_1_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "chin_ctrl_1_L") + return {"FINISHED"} + +class Operator_Lip_Low2_Ctrl_Mid(bpy.types.Operator): + bl_idname = "operator.lip_low2_ctrl_mid" + bl_label = "BlenRig Select lip_low2_ctrl_mid" + bl_description = "lip_low2_ctrl_mid" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low2_ctrl_mid") + return {"FINISHED"} + +class Operator_Lip_Low2_Ctrl(bpy.types.Operator): + bl_idname = "operator.lip_low2_ctrl" + bl_label = "BlenRig Select lip_low2_ctrl" + bl_description = "lip_low2_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low2_ctrl") + return {"FINISHED"} + +class Operator_Lip_Low3_Ctrl_Mid(bpy.types.Operator): + bl_idname = "operator.lip_low3_ctrl_mid" + bl_label = "BlenRig Select lip_low3_ctrl_mid" + bl_description = "lip_low3_ctrl_mid" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low3_ctrl_mid") + return {"FINISHED"} + +class Operator_Lip_Low3_Ctrl(bpy.types.Operator): + bl_idname = "operator.lip_low3_ctrl" + bl_label = "BlenRig Select lip_low3_ctrl" + bl_description = "lip_low3_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "lip_low3_ctrl") + return {"FINISHED"} + +class Operator_Chin_Ctrl_Mid(bpy.types.Operator): + bl_idname = "operator.chin_ctrl_mid" + bl_label = "BlenRig Select chin_ctrl_mid" + bl_description = "chin_ctrl_mid" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "chin_ctrl_mid") + return {"FINISHED"} + +class Operator_Chin_Ctrl(bpy.types.Operator): + bl_idname = "operator.chin_ctrl" + bl_label = "BlenRig Select chin_ctrl" + bl_description = "chin_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "chin_ctrl") + return {"FINISHED"} + +class Operator_Maxi(bpy.types.Operator): + bl_idname = "operator.maxi" + bl_label = "BlenRig Select maxi" + bl_description = "maxi" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "maxi") + return {"FINISHED"} + +class Operator_Mouth_Str_Ctrl(bpy.types.Operator): + bl_idname = "operator.mouth_str_ctrl" + bl_label = "BlenRig Select mouth_str_ctrl" + bl_description = "mouth_str_ctrl" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "mouth_str_ctrl") + return {"FINISHED"} + +class Operator_Head_Mid_Stretch(bpy.types.Operator): + bl_idname = "operator.head_mid_stretch" + bl_label = "BlenRig Select head_mid_stretch" + bl_description = "head_mid_stretch" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "head_mid_stretch") + return {"FINISHED"} + +class Operator_Head_Low_Stretch(bpy.types.Operator): + bl_idname = "operator.head_low_stretch" + bl_label = "BlenRig Select head_low_stretch" + bl_description = "head_low_stretch" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "head_low_stretch") + return {"FINISHED"} + +class Operator_Teeth_Up_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.teeth_up_ctrl_r" + bl_label = "BlenRig Select teeth_up_ctrl_R" + bl_description = "teeth_up_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "teeth_up_ctrl_R") + return {"FINISHED"} + +class Operator_Teeth_Up_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.teeth_up_ctrl_l" + bl_label = "BlenRig Select teeth_up_ctrl_L" + bl_description = "teeth_up_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "teeth_up_ctrl_L") + return {"FINISHED"} + +class Operator_Teeth_Up_Ctrl_Mid_R(bpy.types.Operator): + bl_idname = "operator.teeth_up_ctrl_mid_r" + bl_label = "BlenRig Select teeth_up_ctrl_mid_R" + bl_description = "teeth_up_ctrl_mid_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "teeth_up_ctrl_mid_R") + return {"FINISHED"} + +class Operator_Teeth_Up_Ctrl_Mid_L(bpy.types.Operator): + bl_idname = "operator.teeth_up_ctrl_mid_l" + bl_label = "BlenRig Select teeth_up_ctrl_mid_L" + bl_description = "teeth_up_ctrl_mid_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "teeth_up_ctrl_mid_L") + return {"FINISHED"} + +class Operator_Teeth_Up_Ctrl_Mid(bpy.types.Operator): + bl_idname = "operator.teeth_up_ctrl_mid" + bl_label = "BlenRig Select teeth_up_ctrl_mid" + bl_description = "teeth_up_ctrl_mid" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "teeth_up_ctrl_mid") + return {"FINISHED"} + +class Operator_Teeth_Up(bpy.types.Operator): + bl_idname = "operator.teeth_up" + bl_label = "BlenRig Select teeth_up" + bl_description = "teeth_up" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "teeth_up") + return {"FINISHED"} + +class Operator_Teeth_Low_Ctrl_R(bpy.types.Operator): + bl_idname = "operator.teeth_low_ctrl_r" + bl_label = "BlenRig Select teeth_low_ctrl_R" + bl_description = "teeth_low_ctrl_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "teeth_low_ctrl_R") + return {"FINISHED"} + +class Operator_Teeth_Low_Ctrl_L(bpy.types.Operator): + bl_idname = "operator.teeth_low_ctrl_l" + bl_label = "BlenRig Select teeth_low_ctrl_L" + bl_description = "teeth_low_ctrl_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "teeth_low_ctrl_L") + return {"FINISHED"} + +class Operator_Teeth_Low_Ctrl_Mid_R(bpy.types.Operator): + bl_idname = "operator.teeth_low_ctrl_mid_r" + bl_label = "BlenRig Select teeth_low_ctrl_mid_R" + bl_description = "teeth_low_ctrl_mid_R" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "teeth_low_ctrl_mid_R") + return {"FINISHED"} + +class Operator_Teeth_Low_Ctrl_Mid_L(bpy.types.Operator): + bl_idname = "operator.teeth_low_ctrl_mid_l" + bl_label = "BlenRig Select teeth_low_ctrl_mid_L" + bl_description = "teeth_low_ctrl_mid_L" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "teeth_low_ctrl_mid_L") + return {"FINISHED"} + +class Operator_Teeth_Low_Ctrl_Mid(bpy.types.Operator): + bl_idname = "operator.teeth_low_ctrl_mid" + bl_label = "BlenRig Select teeth_low_ctrl_mid" + bl_description = "teeth_low_ctrl_mid" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "teeth_low_ctrl_mid") + return {"FINISHED"} + +class Operator_Teeth_Low(bpy.types.Operator): + bl_idname = "operator.teeth_low" + bl_label = "BlenRig Select teeth_low" + bl_description = "teeth_low" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "teeth_low") + return {"FINISHED"} + +class Operator_Uvula_1(bpy.types.Operator): + bl_idname = "operator.uvula_1" + bl_label = "BlenRig Select uvula_1" + bl_description = "uvula_1" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "uvula_1") + return {"FINISHED"} + +class Operator_Uvula_2(bpy.types.Operator): + bl_idname = "operator.uvula_2" + bl_label = "BlenRig Select uvula_2" + bl_description = "uvula_2" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "uvula_2") + return {"FINISHED"} + +class Operator_Tongue_1_FK(bpy.types.Operator): + bl_idname = "operator.tongue_1_fk" + bl_label = "BlenRig Select tongue_1_fk" + bl_description = "tongue_1_fk" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "tongue_1_fk") + return {"FINISHED"} + +class Operator_Tongue_2_FK(bpy.types.Operator): + bl_idname = "operator.tongue_2_fk" + bl_label = "BlenRig Select tongue_2_fk" + bl_description = "tongue_2_fk" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "tongue_2_fk") + return {"FINISHED"} + +class Operator_Tongue_1_IK(bpy.types.Operator): + bl_idname = "operator.tongue_1_ik" + bl_label = "BlenRig Select tongue_1_ik" + bl_description = "tongue_1_ik" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "tongue_1_ik") + return {"FINISHED"} + +class Operator_Tongue_2_IK(bpy.types.Operator): + bl_idname = "operator.tongue_2_ik" + bl_label = "BlenRig Select tongue_2_ik" + bl_description = "tongue_2_ik" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "tongue_2_ik") + return {"FINISHED"} + +class Operator_Tongue_3_IK(bpy.types.Operator): + bl_idname = "operator.tongue_3_ik" + bl_label = "BlenRig Select tongue_3_ik" + bl_description = "tongue_3_ik" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "tongue_3_ik") + return {"FINISHED"} + +class Operator_Tongue_Mstr(bpy.types.Operator): + bl_idname = "operator.tongue_mstr" + bl_label = "BlenRig Select tongue_mstr" + bl_description = "tongue_mstr" + bl_options = {'REGISTER', 'UNDO', 'INTERNAL'} + + def invoke(self, context, event): + select_op(self, context, event, "tongue_mstr") + return {"FINISHED"} diff --git a/ops_rig_updater.py b/ops_rig_updater.py index eb17909..af6ef5d 100644 --- a/ops_rig_updater.py +++ b/ops_rig_updater.py @@ -4,10 +4,10 @@ import bpy # Biped -class Operator_Biped_Updater(bpy.types.Operator): - bl_idname = "blenrig5.biped_updater" - bl_label = "BlenRig 5 Biped Rig Updater" - bl_description = "Update BlenRig 5 biped rig to the latest version" +class Operator_Biped_Updater(bpy.types.Operator): + bl_idname = "blenrig5.biped_updater" + bl_label = "BlenRig 5 Biped Rig Updater" + bl_description = "Update BlenRig 5 biped rig to the latest version" bl_options = {'REGISTER', 'UNDO'} @classmethod @@ -19,7 +19,7 @@ class Operator_Biped_Updater(bpy.types.Operator): if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': for propb in bpy.context.active_object.data.items(): if propb[0] == 'rig_type' and propb[1] == 'Biped': - return True + return True def execute(self, context): arm = bpy.context.active_object @@ -29,7 +29,7 @@ class Operator_Biped_Updater(bpy.types.Operator): from .blenrig_biped.updates.update_1001 import (biped_update_1001) # Apply biped_update_1001(self, context) - + #### Update 0.005 #### if arm.data['rig_version'] < 1.005: # Load Update Functions @@ -45,7 +45,7 @@ class Operator_Biped_Updater(bpy.types.Operator): biped_update_1005_functions_script, biped_update_1005_layer_scheme, biped_update_1005_update_version - ) + ) # Apply biped_update_1005_drivers(self, context) biped_update_1005_locks(self, context) @@ -58,7 +58,7 @@ class Operator_Biped_Updater(bpy.types.Operator): biped_update_1005_functions_script(self, context) biped_update_1005_layer_scheme(self, context) biped_update_1005_update_version(self, context) - + else: - self.report({'INFO'}, 'Armature already up to date') - return {"FINISHED"} \ No newline at end of file + self.report({'INFO'}, 'Armature already up to date') + return {"FINISHED"} \ No newline at end of file diff --git a/ops_snapping.py b/ops_snapping.py index 1a39453..ebfba42 100644 --- a/ops_snapping.py +++ b/ops_snapping.py @@ -5,7 +5,7 @@ import bpy #Selected and Active Bones Transforms Copy Function def sel_act_bones(b1, b2, copy_op): #args will be replaced by the actual bone names - + arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones @@ -19,91 +19,87 @@ def sel_act_bones(b1, b2, copy_op): #args will be replaced by the actual bone na if copy_operator[0] == copy_op: bpy.ops.pose.copy_pose_vis_rot() elif copy_operator[1] == copy_op: - bpy.ops.pose.copy_pose_vis_loc() + bpy.ops.pose.copy_pose_vis_loc() elif copy_operator[2] == copy_op: - bpy.ops.pose.copy_pose_vis_sca() + bpy.ops.pose.copy_pose_vis_sca() elif copy_operator[3] == copy_op: - bpy.ops.pose.copy_pose_vis_loc() - bpy.ops.pose.copy_pose_vis_rot() + bpy.ops.pose.copy_pose_vis_loc() + bpy.ops.pose.copy_pose_vis_rot() elif copy_operator[4] == copy_op: - bpy.ops.pose.copy_pose_vis_loc() - bpy.ops.pose.copy_pose_vis_rot() - bpy.ops.pose.copy_pose_vis_sca() + bpy.ops.pose.copy_pose_vis_loc() + bpy.ops.pose.copy_pose_vis_rot() + bpy.ops.pose.copy_pose_vis_sca() Bone1.bone.select = 0 Bone2.bone.select = 0 ##### TORSO ##### -class Operator_Torso_Snap_IK_FK(bpy.types.Operator): - - bl_idname = "torso_snap.ik_fk" - bl_label = "BlenRig Torso Snap IK FK" - bl_description = "Prepare seamless switch to FK" - bl_options = {'REGISTER', 'UNDO',} +class Operator_Torso_Snap_IK_FK(bpy.types.Operator): + + bl_idname = "torso_snap.ik_fk" + bl_label = "BlenRig Torso Snap IK FK" + bl_description = "Prepare seamless switch to FK" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if context.active_object is not None: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') - else: - return False - - def execute(self, context): + + def execute(self, context): arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones - + # for b in p_bones: # if ('properties_torso' == b.name): # prop = int(b.ik_torso) # prop_inv = int(b.inv_torso) # if prop != 0 or prop_inv != 0: -# self.report({'ERROR'}, 'Only works in IK mode') -# return {"CANCELLED"} - +# self.report({'ERROR'}, 'Only works in IK mode') +# return {"CANCELLED"} + check_bones = ['spine_1_fk', 'spine_1_ik', 'spine_2_fk', 'spine_2_ik', 'spine_3_fk', 'spine_3_ik', 'torso_fk_ctrl'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - sel_act_bones('spine_1_fk', 'spine_1_ik', 'loc_rot') - sel_act_bones('spine_2_fk', 'spine_2_ik', 'loc_rot') - sel_act_bones('spine_3_fk', 'spine_3_ik', 'loc_rot') + b.bone.hide = False + + arm_data.layers[30] = True + sel_act_bones('spine_1_fk', 'spine_1_ik', 'loc_rot') + sel_act_bones('spine_2_fk', 'spine_2_ik', 'loc_rot') + sel_act_bones('spine_3_fk', 'spine_3_ik', 'loc_rot') p_bones['torso_fk_ctrl'].bone.select = 1 - bpy.ops.pose.rot_clear() - - for b in p_bones: + bpy.ops.pose.rot_clear() + + for b in p_bones: b.bone.select = 0 select_bones = ['spine_1_fk', 'spine_2_fk', 'spine_3_fk', 'torso_fk_ctrl'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - return {"FINISHED"} + b.bone.select = 1 + arm_data.layers[30] = False -class Operator_Torso_Snap_FK_IK(bpy.types.Operator): - - bl_idname = "torso_snap.fk_ik" - bl_label = "BlenRig Torso Snap FK IK" - bl_description = "Prepare seamless switch to IK" - bl_options = {'REGISTER', 'UNDO',} + return {"FINISHED"} + +class Operator_Torso_Snap_FK_IK(bpy.types.Operator): + + bl_idname = "torso_snap.fk_ik" + bl_label = "BlenRig Torso Snap FK IK" + bl_description = "Prepare seamless switch to IK" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if context.active_object is not None: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') - else: - return False - - def execute(self, context): + + def execute(self, context): arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones @@ -113,56 +109,54 @@ class Operator_Torso_Snap_FK_IK(bpy.types.Operator): # prop = int(b.ik_torso) # prop_inv = int(b.inv_torso) # if prop != 1 or prop_inv != 0: -# self.report({'ERROR'}, 'Only works in FK mode') -# return {"CANCELLED"} - +# self.report({'ERROR'}, 'Only works in FK mode') +# return {"CANCELLED"} + check_bones = ['torso_ik_ctrl', 'snap_torso_fk_ctrl', 'spine_4_ik_ctrl', 'neck_1_fk', 'spine_3_ik_ctrl', 'spine_3_fk', 'spine_2_ik_ctrl', 'spine_2_fk', 'spine_1_ik_ctrl', 'spine_1_fk'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - sel_act_bones('torso_ik_ctrl', 'snap_torso_fk_ctrl', 'loc_rot') - sel_act_bones('spine_4_ik_ctrl', 'neck_1_fk', 'loc') - sel_act_bones('spine_3_ik_ctrl', 'spine_3_fk', 'loc') - sel_act_bones('spine_2_ik_ctrl', 'spine_2_fk', 'loc_rot') - sel_act_bones('spine_1_ik_ctrl', 'spine_1_fk', 'rot') + b.bone.hide = False + + arm_data.layers[30] = True + sel_act_bones('torso_ik_ctrl', 'snap_torso_fk_ctrl', 'loc_rot') + sel_act_bones('spine_4_ik_ctrl', 'neck_1_fk', 'loc') + sel_act_bones('spine_3_ik_ctrl', 'spine_3_fk', 'loc') + sel_act_bones('spine_2_ik_ctrl', 'spine_2_fk', 'loc_rot') + sel_act_bones('spine_1_ik_ctrl', 'spine_1_fk', 'rot') p_bones['spine_4_ik_ctrl'].bone.select = 1 - bpy.ops.pose.rot_clear() + bpy.ops.pose.rot_clear() p_bones['spine_3_ik_ctrl'].bone.select = 1 - bpy.ops.pose.rot_clear() - - for b in p_bones: + bpy.ops.pose.rot_clear() + + for b in p_bones: b.bone.select = 0 select_bones = ['spine_1_ik_ctrl', 'spine_2_ik_ctrl', 'spine_3_ik_ctrl', 'spine_4_ik_ctrl', 'torso_ik_ctrl'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - return {"FINISHED"} + b.bone.select = 1 + arm_data.layers[30] = False -class Operator_Torso_Snap_INV_UP(bpy.types.Operator): - - bl_idname = "torso_snap.inv_up" - bl_label = "BlenRig Torso Snap INV UP" - bl_description = "Prepare seamless switch to Invert torso" - bl_options = {'REGISTER', 'UNDO',} + return {"FINISHED"} + +class Operator_Torso_Snap_INV_UP(bpy.types.Operator): + + bl_idname = "torso_snap.inv_up" + bl_label = "BlenRig Torso Snap INV UP" + bl_description = "Prepare seamless switch to Invert torso" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if context.active_object is not None: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') - else: - return False - - def execute(self, context): + + def execute(self, context): arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones @@ -171,63 +165,61 @@ class Operator_Torso_Snap_INV_UP(bpy.types.Operator): # if ('properties_torso' == b.name): # prop_inv = int(b.inv_torso) # if prop_inv != 1: -# self.report({'ERROR'}, 'Only works in FK/IK mode') -# return {"CANCELLED"} - +# self.report({'ERROR'}, 'Only works in FK/IK mode') +# return {"CANCELLED"} + check_bones = ['pelvis_ctrl', 'snap_pelvis_ctrl_inv', 'spine_1_fk', 'snap_spine_1_fk_inv', 'spine_2_fk', 'snap_spine_2_fk_inv', 'spine_3_fk', 'spine_3_inv', 'spine_2_ik_ctrl', 'spine_3_ik_ctrl', 'spine_4_ik_ctrl', 'torso_ik_ctrl', 'torso_fk_ctrl', 'neck_1_fk'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - sel_act_bones('pelvis_ctrl', 'snap_pelvis_ctrl_inv', 'loc_rot') - sel_act_bones('spine_1_fk', 'snap_spine_1_fk_inv', 'loc_rot') - sel_act_bones('spine_2_fk', 'snap_spine_2_fk_inv', 'loc_rot') + b.bone.hide = False + + arm_data.layers[30] = True + sel_act_bones('pelvis_ctrl', 'snap_pelvis_ctrl_inv', 'loc_rot') + sel_act_bones('spine_1_fk', 'snap_spine_1_fk_inv', 'loc_rot') + sel_act_bones('spine_2_fk', 'snap_spine_2_fk_inv', 'loc_rot') sel_act_bones('spine_3_fk', 'spine_3_inv', 'loc_rot') - sel_act_bones('torso_ik_ctrl', 'snap_torso_fk_ctrl', 'loc_rot') - sel_act_bones('spine_4_ik_ctrl', 'neck_1_fk', 'loc') - sel_act_bones('spine_3_ik_ctrl', 'spine_3_fk', 'loc') - sel_act_bones('spine_2_ik_ctrl', 'spine_2_fk', 'loc_rot') - sel_act_bones('spine_1_ik_ctrl', 'spine_1_fk', 'rot') + sel_act_bones('torso_ik_ctrl', 'snap_torso_fk_ctrl', 'loc_rot') + sel_act_bones('spine_4_ik_ctrl', 'neck_1_fk', 'loc') + sel_act_bones('spine_3_ik_ctrl', 'spine_3_fk', 'loc') + sel_act_bones('spine_2_ik_ctrl', 'spine_2_fk', 'loc_rot') + sel_act_bones('spine_1_ik_ctrl', 'spine_1_fk', 'rot') p_bones['spine_4_ik_ctrl'].bone.select = 1 - bpy.ops.pose.rot_clear() + bpy.ops.pose.rot_clear() p_bones['spine_3_ik_ctrl'].bone.select = 1 - bpy.ops.pose.rot_clear() + bpy.ops.pose.rot_clear() p_bones['torso_fk_ctrl'].bone.select = 1 - bpy.ops.pose.rot_clear() - - for b in p_bones: + bpy.ops.pose.rot_clear() + + for b in p_bones: b.bone.select = 0 select_bones = ['pelvis_ctrl', 'spine_1_fk', 'spine_2_fk', 'spine_3_fk','spine_2_ik_ctrl', 'spine_3_ik_ctrl', 'spine_4_ik_ctrl', 'torso_ik_ctrl', 'torso_fk_ctrl'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - return {"FINISHED"} + b.bone.select = 1 + arm_data.layers[30] = False + + return {"FINISHED"} -class Operator_Torso_Snap_UP_INV(bpy.types.Operator): - - bl_idname = "torso_snap.up_inv" - bl_label = "BlenRig Torso Snap UP INV" - bl_description = "Prepare seamless switch to FK or IK Torso" - bl_options = {'REGISTER', 'UNDO',} +class Operator_Torso_Snap_UP_INV(bpy.types.Operator): + + bl_idname = "torso_snap.up_inv" + bl_label = "BlenRig Torso Snap UP INV" + bl_description = "Prepare seamless switch to FK or IK Torso" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if context.active_object is not None: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') - else: - return False - - def execute(self, context): + + def execute(self, context): arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones @@ -237,111 +229,107 @@ class Operator_Torso_Snap_UP_INV(bpy.types.Operator): # prop = int(b.ik_torso) # prop_inv = int(b.inv_torso) # if prop_inv != 0: -# self.report({'ERROR'}, 'Only works in invert mode') -# return {"CANCELLED"} - +# self.report({'ERROR'}, 'Only works in invert mode') +# return {"CANCELLED"} + check_bones = ['spine_3_inv_ctrl', 'snap_torso_ctrl_inv_loc', 'spine_3_inv', 'spine_3_fk', 'spine_2_inv', 'snap_spine_2_inv_fk', 'spine_1_inv', 'snap_spine_1_inv_fk', 'pelvis_inv', 'pelvis', 'torso_inv_ctrl'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - sel_act_bones('spine_3_inv_ctrl', 'snap_torso_ctrl_inv_loc', 'loc_rot') - sel_act_bones('spine_3_inv', 'spine_3_fk', 'loc_rot') - sel_act_bones('spine_2_inv', 'snap_spine_2_inv_fk', 'loc_rot') - sel_act_bones('spine_1_inv', 'snap_spine_1_inv_fk', 'loc_rot') - sel_act_bones('pelvis_inv', 'pelvis', 'loc_rot') + b.bone.hide = False + + arm_data.layers[30] = True + sel_act_bones('spine_3_inv_ctrl', 'snap_torso_ctrl_inv_loc', 'loc_rot') + sel_act_bones('spine_3_inv', 'spine_3_fk', 'loc_rot') + sel_act_bones('spine_2_inv', 'snap_spine_2_inv_fk', 'loc_rot') + sel_act_bones('spine_1_inv', 'snap_spine_1_inv_fk', 'loc_rot') + sel_act_bones('pelvis_inv', 'pelvis', 'loc_rot') p_bones['torso_inv_ctrl'].bone.select = 1 - bpy.ops.pose.rot_clear() - - for b in p_bones: + bpy.ops.pose.rot_clear() + + for b in p_bones: b.bone.select = 0 select_bones = ['pelvis_inv', 'spine_1_inv', 'spine_2_inv', 'spine_3_inv', 'torso_inv_ctrl'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - return {"FINISHED"} + b.bone.select = 1 + arm_data.layers[30] = False + + return {"FINISHED"} ##### HEAD ##### - -class Operator_Head_Snap_IK_FK(bpy.types.Operator): - - bl_idname = "head_snap.ik_fk" - bl_label = "BlenRig Head Snap IK FK" - bl_description = "Prepare seamless switch to FK" - bl_options = {'REGISTER', 'UNDO',} + +class Operator_Head_Snap_IK_FK(bpy.types.Operator): + + bl_idname = "head_snap.ik_fk" + bl_label = "BlenRig Head Snap IK FK" + bl_description = "Prepare seamless switch to FK" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if context.active_object is not None: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') - else: - return False - - def execute(self, context): + + def execute(self, context): arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones - + # for b in p_bones: # if ('properties_head' == b.name): # prop = int(b.ik_head) # if prop != 0: -# self.report({'ERROR'}, 'Only works in IK mode') -# return {"CANCELLED"} - +# self.report({'ERROR'}, 'Only works in IK mode') +# return {"CANCELLED"} + check_bones = ['neck_1_fk', 'neck_1_ik', 'neck_2_fk', 'neck_2_ik', 'neck_3_fk', 'neck_3_ik', 'neck_fk_ctrl'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - sel_act_bones('neck_1_fk', 'neck_1_ik', 'loc_rot') - sel_act_bones('neck_2_fk', 'neck_2_ik', 'loc_rot') - sel_act_bones('neck_3_fk', 'neck_3_ik', 'loc_rot') + b.bone.hide = False + + arm_data.layers[30] = True + sel_act_bones('neck_1_fk', 'neck_1_ik', 'loc_rot') + sel_act_bones('neck_2_fk', 'neck_2_ik', 'loc_rot') + sel_act_bones('neck_3_fk', 'neck_3_ik', 'loc_rot') p_bones['neck_fk_ctrl'].bone.select = 1 - bpy.ops.pose.rot_clear() - - for b in p_bones: + bpy.ops.pose.rot_clear() + + for b in p_bones: b.bone.select = 0 select_bones = ['neck_1_fk', 'neck_2_fk', 'neck_3_fk', 'neck_fk_ctrl'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - return {"FINISHED"} + b.bone.select = 1 + arm_data.layers[30] = False -class Operator_Head_Snap_FK_IK(bpy.types.Operator): - - bl_idname = "head_snap.fk_ik" - bl_label = "BlenRig Head Snap FK IK" - bl_description = "Prepare seamless switch to IK" - bl_options = {'REGISTER', 'UNDO',} + return {"FINISHED"} + +class Operator_Head_Snap_FK_IK(bpy.types.Operator): + + bl_idname = "head_snap.fk_ik" + bl_label = "BlenRig Head Snap FK IK" + bl_description = "Prepare seamless switch to IK" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if context.active_object is not None: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') - else: - return False - - def execute(self, context): + + def execute(self, context): arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones @@ -350,853 +338,837 @@ class Operator_Head_Snap_FK_IK(bpy.types.Operator): # if ('properties_head' == b.name): # prop = int(b.ik_head) # if prop != 1: -# self.report({'ERROR'}, 'Only works in FK mode') -# return {"CANCELLED"} - +# self.report({'ERROR'}, 'Only works in FK mode') +# return {"CANCELLED"} + check_bones = ['neck_ik_ctrl', 'snap_neck_fk_pivot', 'head_ik_ctrl', 'head_fk', 'neck_3_ik_ctrl', 'neck_3_fk', 'neck_2_ik_ctrl', 'neck_2_fk'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - sel_act_bones('neck_ik_ctrl', 'snap_neck_fk_pivot', 'loc_rot') - sel_act_bones('head_ik_ctrl', 'head_fk', 'loc') - sel_act_bones('neck_3_ik_ctrl', 'neck_3_fk', 'loc_rot') - sel_act_bones('neck_2_ik_ctrl', 'neck_2_fk', 'loc') + b.bone.hide = False + + arm_data.layers[30] = True + sel_act_bones('neck_ik_ctrl', 'snap_neck_fk_pivot', 'loc_rot') + sel_act_bones('head_ik_ctrl', 'head_fk', 'loc') + sel_act_bones('neck_3_ik_ctrl', 'neck_3_fk', 'loc_rot') + sel_act_bones('neck_2_ik_ctrl', 'neck_2_fk', 'loc') p_bones['neck_2_ik_ctrl'].bone.select = 1 - bpy.ops.pose.rot_clear() - - for b in p_bones: + bpy.ops.pose.rot_clear() + + for b in p_bones: b.bone.select = 0 select_bones = ['neck_ik_ctrl', 'neck_3_ik_ctrl', 'neck_2_ik_ctrl'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - return {"FINISHED"} + b.bone.select = 1 + arm_data.layers[30] = False + + return {"FINISHED"} ##### ARM L ##### -class Operator_Arm_L_Snap_IK_FK(bpy.types.Operator): - - bl_idname = "arm_l_snap.ik_fk" - bl_label = "BlenRig Arm_L Snap IK FK" - bl_description = "Prepare seamless switch to FK" - bl_options = {'REGISTER', 'UNDO',} +class Operator_Arm_L_Snap_IK_FK(bpy.types.Operator): + + bl_idname = "arm_l_snap.ik_fk" + bl_label = "BlenRig Arm_L Snap IK FK" + bl_description = "Prepare seamless switch to FK" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if context.active_object is not None: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') - else: - return False - - def execute(self, context): + + def execute(self, context): arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones - + # for b in p_bones: # if ('properties_arm_L' == b.name): # prop = int(b.ik_arm_L) # if prop != 0: -# self.report({'ERROR'}, 'Only works in IK mode') -# return {"CANCELLED"} - +# self.report({'ERROR'}, 'Only works in IK mode') +# return {"CANCELLED"} + # Biped if arm_data['rig_type'] == 'Biped': - + check_bones = ['arm_fk_L', 'arm_ik_L', 'forearm_fk_L', 'forearm_ik_L', 'hand_fk_L', 'hand_ik_ctrl_L'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - sel_act_bones('arm_fk_L', 'arm_ik_L', 'rot') - sel_act_bones('forearm_fk_L', 'forearm_ik_L', 'rot') + b.bone.hide = False + + arm_data.layers[30] = True + sel_act_bones('arm_fk_L', 'arm_ik_L', 'rot') + sel_act_bones('forearm_fk_L', 'forearm_ik_L', 'rot') for b in p_bones: if ('properties_arm_L' in b.name): prop = int(b.hinge_hand_L) - if prop == 1: - sel_act_bones('hand_fk_L', 'hand_ik_ctrl_L', 'rot') - - for b in p_bones: + if prop == 1: + sel_act_bones('hand_fk_L', 'hand_ik_ctrl_L', 'rot') + + for b in p_bones: b.bone.select = 0 select_bones = ['arm_fk_L', 'forearm_fk_L', 'hand_fk_L', 'hand_ik_ctrl_L'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - #Quadruped - if arm_data['rig_type'] == 'Quadruped': - + b.bone.select = 1 + arm_data.layers[30] = False + + #Quadruped + if arm_data['rig_type'] == 'Quadruped': + check_bones = ['arm_fk_L', 'arm_ik_L', 'forearm_fk_L', 'forearm_ik_L', 'hand_fk_L', 'hand_ik_ctrl_L', 'carpal_fk_L', 'carpal_ik_L', 'fing_1_fk_L', 'fing_1_ik_L', 'fing_2_fk_L', 'fing_2_ik_L'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - sel_act_bones('arm_fk_L', 'arm_ik_L', 'rot') - sel_act_bones('forearm_fk_L', 'forearm_ik_L', 'rot') - sel_act_bones('carpal_fk_L', 'carpal_ik_L', 'rot') - sel_act_bones('hand_fk_L', 'hand_ik_ctrl_L', 'rot') - sel_act_bones('fing_1_fk_L', 'fing_1_ik_L', 'rot') - sel_act_bones('fing_2_fk_L', 'fing_2_ik_L', 'rot') - - for b in p_bones: + b.bone.hide = False + + arm_data.layers[30] = True + sel_act_bones('arm_fk_L', 'arm_ik_L', 'rot') + sel_act_bones('forearm_fk_L', 'forearm_ik_L', 'rot') + sel_act_bones('carpal_fk_L', 'carpal_ik_L', 'rot') + sel_act_bones('hand_fk_L', 'hand_ik_ctrl_L', 'rot') + sel_act_bones('fing_1_fk_L', 'fing_1_ik_L', 'rot') + sel_act_bones('fing_2_fk_L', 'fing_2_ik_L', 'rot') + + for b in p_bones: b.bone.select = 0 select_bones = ['arm_fk_L', 'forearm_fk_L', 'hand_fk_L', 'hand_ik_ctrl_L', 'carpal_fk_L', 'fing_1_fk_L', 'fing_2_fk_L'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - return {"FINISHED"} + b.bone.select = 1 + arm_data.layers[30] = False -class Operator_Arm_L_Snap_FK_IK(bpy.types.Operator): - - bl_idname = "arm_l_snap.fk_ik" - bl_label = "BlenRig Arm_L Snap FK IK" - bl_description = "Prepare seamless switch to IK" - bl_options = {'REGISTER', 'UNDO',} + return {"FINISHED"} + +class Operator_Arm_L_Snap_FK_IK(bpy.types.Operator): + + bl_idname = "arm_l_snap.fk_ik" + bl_label = "BlenRig Arm_L Snap FK IK" + bl_description = "Prepare seamless switch to IK" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if context.active_object is not None: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') - else: - return False - - def execute(self, context): + + def execute(self, context): arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones - + # for b in p_bones: # if ('properties_arm_L' == b.name): # prop = int(b.ik_arm_L) # if prop != 1: -# self.report({'ERROR'}, 'Only works in FK mode') -# return {"CANCELLED"} +# self.report({'ERROR'}, 'Only works in FK mode') +# return {"CANCELLED"} #Biped if arm_data['rig_type'] == 'Biped': - + check_bones = ['hand_ik_ctrl_L', 'hand_fk_L', 'elbow_pole_L', 'snap_elbow_pole_fk_L', 'hand_fk_L', 'hand_ik_ctrl_L', 'hand_ik_pivot_point_L'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True + b.bone.hide = False + + arm_data.layers[30] = True p_bones['hand_ik_pivot_point_L'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['hand_ik_pivot_point_L'].bone.select = 0 - sel_act_bones('hand_ik_ctrl_L', 'hand_fk_L', 'loc') + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['hand_ik_pivot_point_L'].bone.select = 0 + sel_act_bones('hand_ik_ctrl_L', 'hand_fk_L', 'loc') for b in p_bones: if ('properties_arm_L' in b.name): prop = int(b.hinge_hand_L) - if prop == 0: - sel_act_bones('hand_ik_ctrl_L', 'hand_fk_L', 'rot') - sel_act_bones('elbow_pole_L', 'snap_elbow_pole_fk_L', 'loc') - - for b in p_bones: + if prop == 0: + sel_act_bones('hand_ik_ctrl_L', 'hand_fk_L', 'rot') + sel_act_bones('elbow_pole_L', 'snap_elbow_pole_fk_L', 'loc') + + for b in p_bones: b.bone.select = 0 select_bones = ['hand_ik_ctrl_L', 'elbow_pole_L', 'hand_ik_pivot_point_L'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - #Quadruped - if arm_data['rig_type'] == 'Quadruped': - + b.bone.select = 1 + arm_data.layers[30] = False + + #Quadruped + if arm_data['rig_type'] == 'Quadruped': + check_bones = ['hand_sole_ctrl_L', 'snap_hand_sole_ctrl_fk_L', 'hand_ik_ctrl_L', 'hand_fk_L', 'fings_ik_ctrl_L', 'snap_fings_ctrl_fk_L', 'fings_ik_ctrl_mid_L', 'snap_fing_ctrl_mid_fk_L', 'elbow_pole_L', 'snap_elbow_pole_fk_L', 'hand_sole_pivot_point_L', 'hand_roll_ctrl_L', 'fing_roll_1_L', 'fing_roll_2_L'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True + b.bone.hide = False + + arm_data.layers[30] = True p_bones['hand_sole_pivot_point_L'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['hand_sole_pivot_point_L'].bone.select = 0 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['hand_sole_pivot_point_L'].bone.select = 0 p_bones['hand_roll_ctrl_L'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['hand_roll_ctrl_L'].bone.select = 0 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['hand_roll_ctrl_L'].bone.select = 0 p_bones['fing_roll_1_L'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['fing_roll_1_L'].bone.select = 0 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['fing_roll_1_L'].bone.select = 0 p_bones['fing_roll_2_L'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['fing_roll_2_L'].bone.select = 0 - sel_act_bones('hand_sole_ctrl_L', 'snap_hand_sole_ctrl_fk_L', 'loc_rot') - sel_act_bones('hand_ik_ctrl_L', 'hand_fk_L', 'loc_rot') - sel_act_bones('fings_ik_ctrl_L', 'snap_fings_ctrl_fk_L', 'loc_rot') - sel_act_bones('fings_ik_ctrl_mid_L', 'snap_fing_ctrl_mid_fk_L', 'loc_rot') - sel_act_bones('elbow_pole_L', 'snap_elbow_pole_fk_L', 'loc') - - for b in p_bones: + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['fing_roll_2_L'].bone.select = 0 + sel_act_bones('hand_sole_ctrl_L', 'snap_hand_sole_ctrl_fk_L', 'loc_rot') + sel_act_bones('hand_ik_ctrl_L', 'hand_fk_L', 'loc_rot') + sel_act_bones('fings_ik_ctrl_L', 'snap_fings_ctrl_fk_L', 'loc_rot') + sel_act_bones('fings_ik_ctrl_mid_L', 'snap_fing_ctrl_mid_fk_L', 'loc_rot') + sel_act_bones('elbow_pole_L', 'snap_elbow_pole_fk_L', 'loc') + + for b in p_bones: b.bone.select = 0 select_bones = ['hand_sole_ctrl_L', 'elbow_pole_L', 'fings_ik_ctrl_L', 'fings_ik_ctrl_mid_L', 'hand_ik_ctrl_L'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - return {"FINISHED"} + b.bone.select = 1 + arm_data.layers[30] = False + + return {"FINISHED"} ##### ARM R ##### -class Operator_Arm_R_Snap_IK_FK(bpy.types.Operator): - - bl_idname = "arm_r_snap.ik_fk" - bl_label = "BlenRig Arm_R Snap IK FK" - bl_description = "Prepare seamless switch to FK" - bl_options = {'REGISTER', 'UNDO',} +class Operator_Arm_R_Snap_IK_FK(bpy.types.Operator): + + bl_idname = "arm_r_snap.ik_fk" + bl_label = "BlenRig Arm_R Snap IK FK" + bl_description = "Prepare seamless switch to FK" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if context.active_object is not None: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') - else: - return False - - def execute(self, context): + + def execute(self, context): arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones - + # for b in p_bones: # if ('properties_arm_R' == b.name): # prop = int(b.ik_arm_R) # if prop != 0: -# self.report({'ERROR'}, 'Only works in IK mode') -# return {"CANCELLED"} - +# self.report({'ERROR'}, 'Only works in IK mode') +# return {"CANCELLED"} + # Biped if arm_data['rig_type'] == 'Biped': - + check_bones = ['arm_fk_R', 'arm_ik_R', 'forearm_fk_R', 'forearm_ik_R', 'hand_fk_R', 'hand_ik_ctrl_R'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - sel_act_bones('arm_fk_R', 'arm_ik_R', 'rot') - sel_act_bones('forearm_fk_R', 'forearm_ik_R', 'rot') + b.bone.hide = False + + arm_data.layers[30] = True + sel_act_bones('arm_fk_R', 'arm_ik_R', 'rot') + sel_act_bones('forearm_fk_R', 'forearm_ik_R', 'rot') for b in p_bones: if ('properties_arm_R' in b.name): prop = int(b.hinge_hand_R) - if prop == 1: - sel_act_bones('hand_fk_R', 'hand_ik_ctrl_R', 'rot') - - for b in p_bones: + if prop == 1: + sel_act_bones('hand_fk_R', 'hand_ik_ctrl_R', 'rot') + + for b in p_bones: b.bone.select = 0 select_bones = ['arm_fk_R', 'forearm_fk_R', 'hand_fk_R', 'hand_ik_ctrl_R'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - #Quadruped - if arm_data['rig_type'] == 'Quadruped': - + b.bone.select = 1 + arm_data.layers[30] = False + + #Quadruped + if arm_data['rig_type'] == 'Quadruped': + check_bones = ['arm_fk_R', 'arm_ik_R', 'forearm_fk_R', 'forearm_ik_R', 'hand_fk_R', 'hand_ik_ctrl_R', 'carpal_fk_R', 'carpal_ik_R', 'fing_1_fk_R', 'fing_1_ik_R', 'fing_2_fk_R', 'fing_2_ik_R'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - sel_act_bones('arm_fk_R', 'arm_ik_R', 'rot') - sel_act_bones('forearm_fk_R', 'forearm_ik_R', 'rot') - sel_act_bones('carpal_fk_R', 'carpal_ik_R', 'rot') - sel_act_bones('hand_fk_R', 'hand_ik_ctrl_R', 'rot') - sel_act_bones('fing_1_fk_R', 'fing_1_ik_R', 'rot') - sel_act_bones('fing_2_fk_R', 'fing_2_ik_R', 'rot') - - for b in p_bones: + b.bone.hide = False + + arm_data.layers[30] = True + sel_act_bones('arm_fk_R', 'arm_ik_R', 'rot') + sel_act_bones('forearm_fk_R', 'forearm_ik_R', 'rot') + sel_act_bones('carpal_fk_R', 'carpal_ik_R', 'rot') + sel_act_bones('hand_fk_R', 'hand_ik_ctrl_R', 'rot') + sel_act_bones('fing_1_fk_R', 'fing_1_ik_R', 'rot') + sel_act_bones('fing_2_fk_R', 'fing_2_ik_R', 'rot') + + for b in p_bones: b.bone.select = 0 select_bones = ['arm_fk_R', 'forearm_fk_R', 'hand_fk_R', 'hand_ik_ctrl_R', 'carpal_fk_R', 'fing_1_fk_R', 'fing_2_fk_R'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - return {"FINISHED"} + b.bone.select = 1 + arm_data.layers[30] = False -class Operator_Arm_R_Snap_FK_IK(bpy.types.Operator): - - bl_idname = "arm_r_snap.fk_ik" - bl_label = "BlenRig Arm_R Snap FK IK" - bl_description = "Prepare seamless switch to IK" - bl_options = {'REGISTER', 'UNDO',} + return {"FINISHED"} + +class Operator_Arm_R_Snap_FK_IK(bpy.types.Operator): + + bl_idname = "arm_r_snap.fk_ik" + bl_label = "BlenRig Arm_R Snap FK IK" + bl_description = "Prepare seamless switch to IK" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if context.active_object is not None: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') - else: - return False - - def execute(self, context): + + def execute(self, context): arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones - + # for b in p_bones: # if ('properties_arm_R' == b.name): # prop = int(b.ik_arm_R) # if prop != 1: -# self.report({'ERROR'}, 'Only works in FK mode') -# return {"CANCELLED"} - +# self.report({'ERROR'}, 'Only works in FK mode') +# return {"CANCELLED"} + #Biped if arm_data['rig_type'] == 'Biped': - + check_bones = ['hand_ik_ctrl_R', 'hand_fk_R', 'elbow_pole_R', 'snap_elbow_pole_fk_R', 'hand_fk_R', 'hand_ik_ctrl_R', 'hand_ik_pivot_point_R'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True + b.bone.hide = False + + arm_data.layers[30] = True p_bones['hand_ik_pivot_point_R'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['hand_ik_pivot_point_R'].bone.select = 0 - sel_act_bones('hand_ik_ctrl_R', 'hand_fk_R', 'loc') + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['hand_ik_pivot_point_R'].bone.select = 0 + sel_act_bones('hand_ik_ctrl_R', 'hand_fk_R', 'loc') for b in p_bones: if ('properties_arm_R' in b.name): prop = int(b.hinge_hand_R) - if prop == 0: - sel_act_bones('hand_ik_ctrl_R', 'hand_fk_R', 'rot') - sel_act_bones('elbow_pole_R', 'snap_elbow_pole_fk_R', 'loc') - - for b in p_bones: + if prop == 0: + sel_act_bones('hand_ik_ctrl_R', 'hand_fk_R', 'rot') + sel_act_bones('elbow_pole_R', 'snap_elbow_pole_fk_R', 'loc') + + for b in p_bones: b.bone.select = 0 select_bones = ['hand_ik_ctrl_R', 'elbow_pole_R', 'hand_ik_pivot_point_R'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - #Quadruped - if arm_data['rig_type'] == 'Quadruped': - + b.bone.select = 1 + arm_data.layers[30] = False + + #Quadruped + if arm_data['rig_type'] == 'Quadruped': + check_bones = ['hand_sole_ctrl_R', 'snap_hand_sole_ctrl_fk_R', 'hand_ik_ctrl_R', 'hand_fk_R', 'fings_ik_ctrl_R', 'snap_fings_ctrl_fk_R', 'fings_ik_ctrl_mid_R', 'snap_fing_ctrl_mid_fk_R', 'elbow_pole_R', 'snap_elbow_pole_fk_R', 'hand_sole_pivot_point_R', 'hand_roll_ctrl_R', 'fing_roll_1_R', 'fing_roll_2_R'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True + b.bone.hide = False + + arm_data.layers[30] = True p_bones['hand_sole_pivot_point_R'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['hand_sole_pivot_point_R'].bone.select = 0 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['hand_sole_pivot_point_R'].bone.select = 0 p_bones['hand_roll_ctrl_R'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['hand_roll_ctrl_R'].bone.select = 0 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['hand_roll_ctrl_R'].bone.select = 0 p_bones['fing_roll_1_R'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['fing_roll_1_R'].bone.select = 0 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['fing_roll_1_R'].bone.select = 0 p_bones['fing_roll_2_R'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['fing_roll_2_R'].bone.select = 0 - sel_act_bones('hand_sole_ctrl_R', 'snap_hand_sole_ctrl_fk_R', 'loc_rot') - sel_act_bones('hand_ik_ctrl_R', 'hand_fk_R', 'loc_rot') - sel_act_bones('fings_ik_ctrl_R', 'snap_fings_ctrl_fk_R', 'loc_rot') - sel_act_bones('fings_ik_ctrl_mid_R', 'snap_fing_ctrl_mid_fk_R', 'loc_rot') - sel_act_bones('elbow_pole_R', 'snap_elbow_pole_fk_R', 'loc') - - for b in p_bones: + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['fing_roll_2_R'].bone.select = 0 + sel_act_bones('hand_sole_ctrl_R', 'snap_hand_sole_ctrl_fk_R', 'loc_rot') + sel_act_bones('hand_ik_ctrl_R', 'hand_fk_R', 'loc_rot') + sel_act_bones('fings_ik_ctrl_R', 'snap_fings_ctrl_fk_R', 'loc_rot') + sel_act_bones('fings_ik_ctrl_mid_R', 'snap_fing_ctrl_mid_fk_R', 'loc_rot') + sel_act_bones('elbow_pole_R', 'snap_elbow_pole_fk_R', 'loc') + + for b in p_bones: b.bone.select = 0 select_bones = ['hand_sole_ctrl_R', 'elbow_pole_R', 'fings_ik_ctrl_R', 'fings_ik_ctrl_mid_R', 'hand_ik_ctrl_R'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - return {"FINISHED"} + b.bone.select = 1 + arm_data.layers[30] = False + + return {"FINISHED"} ##### LEG L ##### -class Operator_Leg_L_Snap_IK_FK(bpy.types.Operator): - - bl_idname = "leg_l_snap.ik_fk" - bl_label = "BlenRig Leg_L Snap IK FK" - bl_description = "Prepare seamless switch to FK" - bl_options = {'REGISTER', 'UNDO',} +class Operator_Leg_L_Snap_IK_FK(bpy.types.Operator): + + bl_idname = "leg_l_snap.ik_fk" + bl_label = "BlenRig Leg_L Snap IK FK" + bl_description = "Prepare seamless switch to FK" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if context.active_object is not None: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') - else: - return False - - def execute(self, context): + + def execute(self, context): arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones - + # for b in p_bones: # if ('properties_leg_L' == b.name): # prop = int(b.ik_leg_L) # if prop != 0: -# self.report({'ERROR'}, 'Only works in IK mode') -# return {"CANCELLED"} - +# self.report({'ERROR'}, 'Only works in IK mode') +# return {"CANCELLED"} + #Biped - if arm_data['rig_type'] == 'Biped': - + if arm_data['rig_type'] == 'Biped': + check_bones = ['thigh_fk_L', 'thigh_ik_L', 'shin_fk_L', 'shin_ik_L', 'foot_fk_L', 'foot_ik_L', 'toe_1_fk_L', 'toe_1_ik_L', 'toe_2_fk_L', 'toe_2_ik_L' ] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - sel_act_bones('thigh_fk_L', 'thigh_ik_L', 'rot') - sel_act_bones('shin_fk_L', 'shin_ik_L', 'rot') - sel_act_bones('foot_fk_L', 'foot_ik_L', 'rot') - sel_act_bones('toe_1_fk_L', 'toe_1_ik_L', 'rot') - sel_act_bones('toe_2_fk_L', 'toe_2_ik_L', 'rot') - - for b in p_bones: + b.bone.hide = False + + arm_data.layers[30] = True + sel_act_bones('thigh_fk_L', 'thigh_ik_L', 'rot') + sel_act_bones('shin_fk_L', 'shin_ik_L', 'rot') + sel_act_bones('foot_fk_L', 'foot_ik_L', 'rot') + sel_act_bones('toe_1_fk_L', 'toe_1_ik_L', 'rot') + sel_act_bones('toe_2_fk_L', 'toe_2_ik_L', 'rot') + + for b in p_bones: b.bone.select = 0 select_bones = ['thigh_fk_L', 'shin_fk_L', 'foot_fk_L', 'toe_1_fk_L', 'toe_2_fk_L'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - + b.bone.select = 1 + arm_data.layers[30] = False + #Quadruped - if arm_data['rig_type'] == 'Quadruped': - + if arm_data['rig_type'] == 'Quadruped': + check_bones = ['thigh_fk_L', 'thigh_ik_L', 'shin_fk_L', 'shin_ik_L', 'tarsal_fk_L', 'tarsal_ik_L', 'foot_fk_L', 'foot_ik_L', 'toe_1_fk_L', 'toe_1_ik_L', 'toe_2_fk_L', 'toe_2_ik_L' ] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - sel_act_bones('thigh_fk_L', 'thigh_ik_L', 'rot') - sel_act_bones('shin_fk_L', 'shin_ik_L', 'rot') - sel_act_bones('tarsal_fk_L', 'tarsal_ik_L', 'rot') - sel_act_bones('foot_fk_L', 'foot_ik_L', 'rot') - sel_act_bones('toe_1_fk_L', 'toe_1_ik_L', 'rot') - sel_act_bones('toe_2_fk_L', 'toe_2_ik_L', 'rot') - - for b in p_bones: + b.bone.hide = False + + arm_data.layers[30] = True + sel_act_bones('thigh_fk_L', 'thigh_ik_L', 'rot') + sel_act_bones('shin_fk_L', 'shin_ik_L', 'rot') + sel_act_bones('tarsal_fk_L', 'tarsal_ik_L', 'rot') + sel_act_bones('foot_fk_L', 'foot_ik_L', 'rot') + sel_act_bones('toe_1_fk_L', 'toe_1_ik_L', 'rot') + sel_act_bones('toe_2_fk_L', 'toe_2_ik_L', 'rot') + + for b in p_bones: b.bone.select = 0 select_bones = ['thigh_fk_L', 'shin_fk_L', 'tarsal_fk_L', 'foot_fk_L', 'toe_1_fk_L', 'toe_2_fk_L'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - return {"FINISHED"} + b.bone.select = 1 + arm_data.layers[30] = False -class Operator_Leg_L_Snap_FK_IK(bpy.types.Operator): - - bl_idname = "leg_l_snap.fk_ik" - bl_label = "BlenRig Leg_L Snap FK IK" - bl_description = "Prepare seamless switch to IK" - bl_options = {'REGISTER', 'UNDO',} + return {"FINISHED"} + +class Operator_Leg_L_Snap_FK_IK(bpy.types.Operator): + + bl_idname = "leg_l_snap.fk_ik" + bl_label = "BlenRig Leg_L Snap FK IK" + bl_description = "Prepare seamless switch to IK" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if context.active_object is not None: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') - else: - return False - - def execute(self, context): + + def execute(self, context): arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones - + # for b in p_bones: # if ('properties_leg_L' == b.name): # prop = int(b.ik_leg_L) # if prop != 1: -# self.report({'ERROR'}, 'Only works in FK mode') -# return {"CANCELLED"} +# self.report({'ERROR'}, 'Only works in FK mode') +# return {"CANCELLED"} #Biped - if arm_data['rig_type'] == 'Biped': - + if arm_data['rig_type'] == 'Biped': + check_bones = ['sole_ctrl_L', 'snap_sole_ctrl_fk_L', 'foot_ik_ctrl_L', 'foot_fk_L', 'toes_ik_ctrl_L', 'snap_toes_ctrl_fk_L', 'toes_ik_ctrl_mid_L', 'snap_toes_ctrl_mid_fk_L', 'knee_pole_L', 'snap_knee_fk_L', 'sole_pivot_point_L', 'foot_roll_ctrl_L', 'toe_roll_1_L', 'toe_roll_2_L'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True + b.bone.hide = False + + arm_data.layers[30] = True p_bones['sole_pivot_point_L'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['sole_pivot_point_L'].bone.select = 0 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['sole_pivot_point_L'].bone.select = 0 p_bones['foot_roll_ctrl_L'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['foot_roll_ctrl_L'].bone.select = 0 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['foot_roll_ctrl_L'].bone.select = 0 p_bones['toe_roll_1_L'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['toe_roll_1_L'].bone.select = 0 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['toe_roll_1_L'].bone.select = 0 p_bones['toe_roll_2_L'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['toe_roll_2_L'].bone.select = 0 - sel_act_bones('sole_ctrl_L', 'snap_sole_ctrl_fk_L', 'loc_rot') - sel_act_bones('foot_ik_ctrl_L', 'foot_fk_L', 'loc_rot') - sel_act_bones('toes_ik_ctrl_L', 'snap_toes_ctrl_fk_L', 'loc_rot') - sel_act_bones('toes_ik_ctrl_mid_L', 'snap_toes_ctrl_mid_fk_L', 'loc_rot') - sel_act_bones('knee_pole_L', 'snap_knee_fk_L', 'loc') - - for b in p_bones: + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['toe_roll_2_L'].bone.select = 0 + sel_act_bones('sole_ctrl_L', 'snap_sole_ctrl_fk_L', 'loc_rot') + sel_act_bones('foot_ik_ctrl_L', 'foot_fk_L', 'loc_rot') + sel_act_bones('toes_ik_ctrl_L', 'snap_toes_ctrl_fk_L', 'loc_rot') + sel_act_bones('toes_ik_ctrl_mid_L', 'snap_toes_ctrl_mid_fk_L', 'loc_rot') + sel_act_bones('knee_pole_L', 'snap_knee_fk_L', 'loc') + + for b in p_bones: b.bone.select = 0 select_bones = ['sole_ctrl_L', 'knee_pole_L', 'toes_ik_ctrl_L', 'toes_ik_ctrl_mid_L', 'foot_ik_ctrl_L'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - + b.bone.select = 1 + arm_data.layers[30] = False + #Quadruped - if arm_data['rig_type'] == 'Quadruped': - + if arm_data['rig_type'] == 'Quadruped': + check_bones = ['sole_ctrl_L', 'snap_sole_ctrl_fk_L', 'foot_ik_ctrl_L', 'foot_fk_L', 'toes_ik_ctrl_L', 'snap_toes_ctrl_fk_L', 'toes_ik_ctrl_mid_L', 'snap_toes_ctrl_mid_fk_L', 'thigh_fk_L', 'thigh_ik_L', 'knee_pole_L', 'snap_knee_fk_L', 'sole_pivot_point_L', 'foot_roll_ctrl_L', 'toe_roll_1_L', 'toe_roll_2_L'] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True + b.bone.hide = False + + arm_data.layers[30] = True p_bones['sole_pivot_point_L'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['sole_pivot_point_L'].bone.select = 0 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['sole_pivot_point_L'].bone.select = 0 p_bones['foot_roll_ctrl_L'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['foot_roll_ctrl_L'].bone.select = 0 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['foot_roll_ctrl_L'].bone.select = 0 p_bones['toe_roll_1_L'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['toe_roll_1_L'].bone.select = 0 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['toe_roll_1_L'].bone.select = 0 p_bones['toe_roll_2_L'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['toe_roll_2_L'].bone.select = 0 - sel_act_bones('thigh_ik_L', 'thigh_fk_L', 'rot') - sel_act_bones('sole_ctrl_L', 'snap_sole_ctrl_fk_L', 'loc_rot') - sel_act_bones('foot_ik_ctrl_L', 'foot_fk_L', 'loc_rot') - sel_act_bones('toes_ik_ctrl_L', 'snap_toes_ctrl_fk_L', 'loc_rot') - sel_act_bones('toes_ik_ctrl_mid_L', 'snap_toes_ctrl_mid_fk_L', 'loc_rot') - sel_act_bones('knee_pole_L', 'snap_knee_fk_L', 'loc') - - for b in p_bones: + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['toe_roll_2_L'].bone.select = 0 + sel_act_bones('thigh_ik_L', 'thigh_fk_L', 'rot') + sel_act_bones('sole_ctrl_L', 'snap_sole_ctrl_fk_L', 'loc_rot') + sel_act_bones('foot_ik_ctrl_L', 'foot_fk_L', 'loc_rot') + sel_act_bones('toes_ik_ctrl_L', 'snap_toes_ctrl_fk_L', 'loc_rot') + sel_act_bones('toes_ik_ctrl_mid_L', 'snap_toes_ctrl_mid_fk_L', 'loc_rot') + sel_act_bones('knee_pole_L', 'snap_knee_fk_L', 'loc') + + for b in p_bones: b.bone.select = 0 select_bones = ['sole_ctrl_L', 'knee_pole_L', 'toes_ik_ctrl_L', 'toes_ik_ctrl_mid_L', 'foot_ik_ctrl_L'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - return {"FINISHED"} + b.bone.select = 1 + arm_data.layers[30] = False + + return {"FINISHED"} ##### LEG R ##### -class Operator_Leg_R_Snap_IK_FK(bpy.types.Operator): - - bl_idname = "leg_r_snap.ik_fk" - bl_label = "BlenRig Leg_R Snap IK FK" - bl_description = "Prepare seamless switch to FK" - bl_options = {'REGISTER', 'UNDO',} +class Operator_Leg_R_Snap_IK_FK(bpy.types.Operator): + + bl_idname = "leg_r_snap.ik_fk" + bl_label = "BlenRig Leg_R Snap IK FK" + bl_description = "Prepare seamless switch to FK" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if context.active_object is not None: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') - else: - return False - - def execute(self, context): + + def execute(self, context): arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones - + # for b in p_bones: # if ('properties_Leg_R' == b.name): # prop = int(b.ik_leg_R) # if prop != 0: -# self.report({'ERROR'}, 'Only works in IK mode') -# return {"CANCELLED"} - +# self.report({'ERROR'}, 'Only works in IK mode') +# return {"CANCELLED"} + #Biped - if arm_data['rig_type'] == 'Biped': - + if arm_data['rig_type'] == 'Biped': + check_bones = ['thigh_fk_R', 'thigh_ik_R', 'shin_fk_R', 'shin_ik_R', 'foot_fk_R', 'foot_ik_R', 'toe_1_fk_R', 'toe_1_ik_R', 'toe_2_fk_R', 'toe_2_ik_R' ] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - sel_act_bones('thigh_fk_R', 'thigh_ik_R', 'rot') - sel_act_bones('shin_fk_R', 'shin_ik_R', 'rot') - sel_act_bones('foot_fk_R', 'foot_ik_R', 'rot') - sel_act_bones('toe_1_fk_R', 'toe_1_ik_R', 'rot') - sel_act_bones('toe_2_fk_R', 'toe_2_ik_R', 'rot') - - for b in p_bones: + b.bone.hide = False + + arm_data.layers[30] = True + sel_act_bones('thigh_fk_R', 'thigh_ik_R', 'rot') + sel_act_bones('shin_fk_R', 'shin_ik_R', 'rot') + sel_act_bones('foot_fk_R', 'foot_ik_R', 'rot') + sel_act_bones('toe_1_fk_R', 'toe_1_ik_R', 'rot') + sel_act_bones('toe_2_fk_R', 'toe_2_ik_R', 'rot') + + for b in p_bones: b.bone.select = 0 select_bones = ['thigh_fk_R', 'shin_fk_R', 'foot_fk_R', 'toe_1_fk_R', 'toe_2_fk_R'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - + b.bone.select = 1 + arm_data.layers[30] = False + #Quadruped - if arm_data['rig_type'] == 'Quadruped': - + if arm_data['rig_type'] == 'Quadruped': + check_bones = ['thigh_fk_R', 'thigh_ik_R', 'shin_fk_R', 'shin_ik_R', 'tarsal_fk_R', 'tarsal_ik_R', 'foot_fk_R', 'foot_ik_R', 'toe_1_fk_R', 'toe_1_ik_R', 'toe_2_fk_R', 'toe_2_ik_R' ] - + for n in check_bones: if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + for b in p_bones: b.bone.select = 0 if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - sel_act_bones('thigh_fk_R', 'thigh_ik_R', 'rot') - sel_act_bones('shin_fk_R', 'shin_ik_R', 'rot') - sel_act_bones('tarsal_fk_R', 'tarsal_ik_R', 'rot') - sel_act_bones('foot_fk_R', 'foot_ik_R', 'rot') - sel_act_bones('toe_1_fk_R', 'toe_1_ik_R', 'rot') - sel_act_bones('toe_2_fk_R', 'toe_2_ik_R', 'rot') - - for b in p_bones: + b.bone.hide = False + + arm_data.layers[30] = True + sel_act_bones('thigh_fk_R', 'thigh_ik_R', 'rot') + sel_act_bones('shin_fk_R', 'shin_ik_R', 'rot') + sel_act_bones('tarsal_fk_R', 'tarsal_ik_R', 'rot') + sel_act_bones('foot_fk_R', 'foot_ik_R', 'rot') + sel_act_bones('toe_1_fk_R', 'toe_1_ik_R', 'rot') + sel_act_bones('toe_2_fk_R', 'toe_2_ik_R', 'rot') + + for b in p_bones: b.bone.select = 0 select_bones = ['thigh_fk_R', 'shin_fk_R', 'tarsal_fk_R', 'foot_fk_R', 'toe_1_fk_R', 'toe_2_fk_R'] if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - return {"FINISHED"} + b.bone.select = 1 + arm_data.layers[30] = False -class Operator_Leg_R_Snap_FK_IK(bpy.types.Operator): - - bl_idname = "leg_r_snap.fk_ik" - bl_label = "BlenRig Leg_R Snap FK IK" - bl_description = "Prepare seamless switch to IK" - bl_options = {'REGISTER', 'UNDO',} + return {"FINISHED"} + +class Operator_Leg_R_Snap_FK_IK(bpy.types.Operator): + + bl_idname = "leg_r_snap.fk_ik" + bl_label = "BlenRig Leg_R Snap FK IK" + bl_description = "Prepare seamless switch to IK" + bl_options = {'REGISTER', 'UNDO',} @classmethod def poll(cls, context): if context.active_object is not None: return (bpy.context.object.type=='ARMATURE' and context.mode=='POSE') - else: - return False - - def execute(self, context): + + def execute(self, context): arm = bpy.context.active_object arm_data = arm.data p_bones = arm.pose.bones - + # for b in p_bones: # if ('properties_leg_R' == b.name): # prop = int(b.ik_leg_R) # if prop != 1: -# self.report({'ERROR'}, 'Only works in FK mode') -# return {"CANCELLED"} - - #Biped - if arm_data['rig_type'] == 'Biped': - - check_bones = ['sole_ctrl_R', 'snap_sole_ctrl_fk_R', 'foot_ik_ctrl_R', 'foot_fk_R', 'toes_ik_ctrl_R', 'snap_toes_ctrl_fk_R', 'toes_ik_ctrl_mid_R', 'snap_toes_ctrl_mid_fk_R', 'knee_pole_R', 'snap_knee_fk_R', 'sole_pivot_point_R', 'foot_roll_ctrl_R', 'toe_roll_1_R', 'toe_roll_2_R'] - - for n in check_bones: - if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - - for b in p_bones: - b.bone.select = 0 - if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - p_bones['sole_pivot_point_R'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['sole_pivot_point_R'].bone.select = 0 - p_bones['foot_roll_ctrl_R'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['foot_roll_ctrl_R'].bone.select = 0 - p_bones['toe_roll_1_R'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['toe_roll_1_R'].bone.select = 0 - p_bones['toe_roll_2_R'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['toe_roll_2_R'].bone.select = 0 - sel_act_bones('sole_ctrl_R', 'snap_sole_ctrl_fk_R', 'loc_rot') - sel_act_bones('foot_ik_ctrl_R', 'foot_fk_R', 'loc_rot') - sel_act_bones('toes_ik_ctrl_R', 'snap_toes_ctrl_fk_R', 'loc_rot') - sel_act_bones('toes_ik_ctrl_mid_R', 'snap_toes_ctrl_mid_fk_R', 'loc_rot') - sel_act_bones('knee_pole_R', 'snap_knee_fk_R', 'loc') - - for b in p_bones: - b.bone.select = 0 - select_bones = ['sole_ctrl_R', 'knee_pole_R', 'toes_ik_ctrl_R', 'toes_ik_ctrl_mid_R', 'foot_ik_ctrl_R'] - if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - #Quadruped - if arm_data['rig_type'] == 'Quadruped': - - check_bones = ['sole_ctrl_R', 'snap_sole_ctrl_fk_R', 'foot_ik_ctrl_R', 'foot_fk_R', 'toes_ik_ctrl_R', 'snap_toes_ctrl_fk_R', 'toes_ik_ctrl_mid_R', 'snap_toes_ctrl_mid_fk_R', 'thigh_fk_R', 'thigh_ik_R', 'knee_pole_R', 'snap_knee_fk_R', 'sole_pivot_point_R', 'foot_roll_ctrl_R', 'toe_roll_1_R', 'toe_roll_2_R'] - - for n in check_bones: - if (n not in p_bones): - self.report({'ERROR'}, 'Missing: ' + str(n)) - return {"CANCELLED"} - - for b in p_bones: - b.bone.select = 0 - if (b.name in check_bones): - b.bone.hide = False - - arm_data.layers[30] = True - p_bones['sole_pivot_point_R'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['sole_pivot_point_R'].bone.select = 0 - p_bones['foot_roll_ctrl_R'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['foot_roll_ctrl_R'].bone.select = 0 - p_bones['toe_roll_1_R'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['toe_roll_1_R'].bone.select = 0 - p_bones['toe_roll_2_R'].bone.select = 1 - bpy.ops.pose.rot_clear() - bpy.ops.pose.loc_clear() - p_bones['toe_roll_2_R'].bone.select = 0 - sel_act_bones('thigh_ik_R', 'thigh_fk_R', 'rot') - sel_act_bones('sole_ctrl_R', 'snap_sole_ctrl_fk_R', 'loc_rot') - sel_act_bones('foot_ik_ctrl_R', 'foot_fk_R', 'loc_rot') - sel_act_bones('toes_ik_ctrl_R', 'snap_toes_ctrl_fk_R', 'loc_rot') - sel_act_bones('toes_ik_ctrl_mid_R', 'snap_toes_ctrl_mid_fk_R', 'loc_rot') - sel_act_bones('knee_pole_R', 'snap_knee_fk_R', 'loc') - - for b in p_bones: - b.bone.select = 0 - select_bones = ['sole_ctrl_R', 'knee_pole_R', 'toes_ik_ctrl_R', 'toes_ik_ctrl_mid_R', 'foot_ik_ctrl_R'] - if (b.name in select_bones): - b.bone.select = 1 - arm_data.layers[30] = False - - return {"FINISHED"} +# self.report({'ERROR'}, 'Only works in FK mode') +# return {"CANCELLED"} + + #Biped + if arm_data['rig_type'] == 'Biped': + + check_bones = ['sole_ctrl_R', 'snap_sole_ctrl_fk_R', 'foot_ik_ctrl_R', 'foot_fk_R', 'toes_ik_ctrl_R', 'snap_toes_ctrl_fk_R', 'toes_ik_ctrl_mid_R', 'snap_toes_ctrl_mid_fk_R', 'knee_pole_R', 'snap_knee_fk_R', 'sole_pivot_point_R', 'foot_roll_ctrl_R', 'toe_roll_1_R', 'toe_roll_2_R'] + + for n in check_bones: + if (n not in p_bones): + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + + for b in p_bones: + b.bone.select = 0 + if (b.name in check_bones): + b.bone.hide = False + + arm_data.layers[30] = True + p_bones['sole_pivot_point_R'].bone.select = 1 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['sole_pivot_point_R'].bone.select = 0 + p_bones['foot_roll_ctrl_R'].bone.select = 1 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['foot_roll_ctrl_R'].bone.select = 0 + p_bones['toe_roll_1_R'].bone.select = 1 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['toe_roll_1_R'].bone.select = 0 + p_bones['toe_roll_2_R'].bone.select = 1 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['toe_roll_2_R'].bone.select = 0 + sel_act_bones('sole_ctrl_R', 'snap_sole_ctrl_fk_R', 'loc_rot') + sel_act_bones('foot_ik_ctrl_R', 'foot_fk_R', 'loc_rot') + sel_act_bones('toes_ik_ctrl_R', 'snap_toes_ctrl_fk_R', 'loc_rot') + sel_act_bones('toes_ik_ctrl_mid_R', 'snap_toes_ctrl_mid_fk_R', 'loc_rot') + sel_act_bones('knee_pole_R', 'snap_knee_fk_R', 'loc') + + for b in p_bones: + b.bone.select = 0 + select_bones = ['sole_ctrl_R', 'knee_pole_R', 'toes_ik_ctrl_R', 'toes_ik_ctrl_mid_R', 'foot_ik_ctrl_R'] + if (b.name in select_bones): + b.bone.select = 1 + arm_data.layers[30] = False + + #Quadruped + if arm_data['rig_type'] == 'Quadruped': + + check_bones = ['sole_ctrl_R', 'snap_sole_ctrl_fk_R', 'foot_ik_ctrl_R', 'foot_fk_R', 'toes_ik_ctrl_R', 'snap_toes_ctrl_fk_R', 'toes_ik_ctrl_mid_R', 'snap_toes_ctrl_mid_fk_R', 'thigh_fk_R', 'thigh_ik_R', 'knee_pole_R', 'snap_knee_fk_R', 'sole_pivot_point_R', 'foot_roll_ctrl_R', 'toe_roll_1_R', 'toe_roll_2_R'] + + for n in check_bones: + if (n not in p_bones): + self.report({'ERROR'}, 'Missing: ' + str(n)) + return {"CANCELLED"} + + for b in p_bones: + b.bone.select = 0 + if (b.name in check_bones): + b.bone.hide = False + + arm_data.layers[30] = True + p_bones['sole_pivot_point_R'].bone.select = 1 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['sole_pivot_point_R'].bone.select = 0 + p_bones['foot_roll_ctrl_R'].bone.select = 1 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['foot_roll_ctrl_R'].bone.select = 0 + p_bones['toe_roll_1_R'].bone.select = 1 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['toe_roll_1_R'].bone.select = 0 + p_bones['toe_roll_2_R'].bone.select = 1 + bpy.ops.pose.rot_clear() + bpy.ops.pose.loc_clear() + p_bones['toe_roll_2_R'].bone.select = 0 + sel_act_bones('thigh_ik_R', 'thigh_fk_R', 'rot') + sel_act_bones('sole_ctrl_R', 'snap_sole_ctrl_fk_R', 'loc_rot') + sel_act_bones('foot_ik_ctrl_R', 'foot_fk_R', 'loc_rot') + sel_act_bones('toes_ik_ctrl_R', 'snap_toes_ctrl_fk_R', 'loc_rot') + sel_act_bones('toes_ik_ctrl_mid_R', 'snap_toes_ctrl_mid_fk_R', 'loc_rot') + sel_act_bones('knee_pole_R', 'snap_knee_fk_R', 'loc') + + for b in p_bones: + b.bone.select = 0 + select_bones = ['sole_ctrl_R', 'knee_pole_R', 'toes_ik_ctrl_R', 'toes_ik_ctrl_mid_R', 'foot_ik_ctrl_R'] + if (b.name in select_bones): + b.bone.select = 1 + arm_data.layers[30] = False + + return {"FINISHED"} diff --git a/readme.rst b/readme.rst index 31487db..9f710ea 100644 --- a/readme.rst +++ b/readme.rst @@ -41,14 +41,14 @@ For a detailed step by step tutorial, check the `BlenRig Tutorials 3: - col_1.prop(arm, "layers", index=3, toggle=True, text='{}'.format(names[3])) - if layer_number > 6: - col_1.prop(arm, "layers", index=6, toggle=True, text='{}'.format(names[6])) - if layer_number > 9: - col_1.prop(arm, "layers", index=17, toggle=True, text='{}'.format(names[9])) - if layer_number > 12: - col_1.prop(arm, "layers", index=20, toggle=True, text='{}'.format(names[12])) - if layer_number > 15: - col_1.prop(arm, "layers", index=23, toggle=True, text='{}'.format(names[15])) - if layer_number > 18: - col_1.prop(arm, "layers", index=10, toggle=True, text='{}'.format(names[18])) - if layer_number > 21: - col_1.prop(arm, "layers", index=13, toggle=True, text='{}'.format(names[21])) - if layer_number > 24: - col_1.prop(arm, "layers", index=24, toggle=True, text='{}'.format(names[24])) - if layer_number > 27: - col_1.prop(arm, "layers", index=27, toggle=True, text='{}'.format(names[27])) - if layer_number > 30: - col_1.prop(arm, "layers", index=30, toggle=True, text='{}'.format(names[30])) + col_1.prop(arm, "layers", index=3, toggle=True, text='{}'.format(names[3])) + if layer_number > 6: + col_1.prop(arm, "layers", index=6, toggle=True, text='{}'.format(names[6])) + if layer_number > 9: + col_1.prop(arm, "layers", index=17, toggle=True, text='{}'.format(names[9])) + if layer_number > 12: + col_1.prop(arm, "layers", index=20, toggle=True, text='{}'.format(names[12])) + if layer_number > 15: + col_1.prop(arm, "layers", index=23, toggle=True, text='{}'.format(names[15])) + if layer_number > 18: + col_1.prop(arm, "layers", index=10, toggle=True, text='{}'.format(names[18])) + if layer_number > 21: + col_1.prop(arm, "layers", index=13, toggle=True, text='{}'.format(names[21])) + if layer_number > 24: + col_1.prop(arm, "layers", index=24, toggle=True, text='{}'.format(names[24])) + if layer_number > 27: + col_1.prop(arm, "layers", index=27, toggle=True, text='{}'.format(names[27])) + if layer_number > 30: + col_1.prop(arm, "layers", index=30, toggle=True, text='{}'.format(names[30])) - col_2 = row_layers.column(align = 0) - col_2.scale_y = 0.75 - if layer_number > 1: - col_2.prop(arm, "layers", index=1, toggle=True, text='{}'.format(names[1])) - if layer_number > 4: - col_2.prop(arm, "layers", index=4, toggle=True, text='{}'.format(names[4])) - if layer_number > 7: - col_2.prop(arm, "layers", index=7, toggle=True, text='{}'.format(names[7])) - if layer_number > 10: - col_2.prop(arm, "layers", index=18, toggle=True, text='{}'.format(names[10])) - if layer_number > 13: - col_2.prop(arm, "layers", index=21, toggle=True, text='{}'.format(names[13])) - if layer_number > 16: - col_2.prop(arm, "layers", index=8, toggle=True, text='{}'.format(names[16])) - if layer_number > 19: - col_2.prop(arm, "layers", index=11, toggle=True, text='{}'.format(names[19])) - if layer_number > 22: - col_2.prop(arm, "layers", index=14, toggle=True, text='{}'.format(names[22])) - if layer_number > 25: - col_2.prop(arm, "layers", index=25, toggle=True, text='{}'.format(names[25])) - if layer_number > 28: - col_2.prop(arm, "layers", index=28, toggle=True, text='{}'.format(names[28])) - if layer_number > 31: - col_2.prop(arm, "layers", index=31, toggle=True, text='{}'.format(names[31])) + col_2 = row_layers.column(align = 0) + col_2.scale_y = 0.75 + if layer_number > 1: + col_2.prop(arm, "layers", index=1, toggle=True, text='{}'.format(names[1])) + if layer_number > 4: + col_2.prop(arm, "layers", index=4, toggle=True, text='{}'.format(names[4])) + if layer_number > 7: + col_2.prop(arm, "layers", index=7, toggle=True, text='{}'.format(names[7])) + if layer_number > 10: + col_2.prop(arm, "layers", index=18, toggle=True, text='{}'.format(names[10])) + if layer_number > 13: + col_2.prop(arm, "layers", index=21, toggle=True, text='{}'.format(names[13])) + if layer_number > 16: + col_2.prop(arm, "layers", index=8, toggle=True, text='{}'.format(names[16])) + if layer_number > 19: + col_2.prop(arm, "layers", index=11, toggle=True, text='{}'.format(names[19])) + if layer_number > 22: + col_2.prop(arm, "layers", index=14, toggle=True, text='{}'.format(names[22])) + if layer_number > 25: + col_2.prop(arm, "layers", index=25, toggle=True, text='{}'.format(names[25])) + if layer_number > 28: + col_2.prop(arm, "layers", index=28, toggle=True, text='{}'.format(names[28])) + if layer_number > 31: + col_2.prop(arm, "layers", index=31, toggle=True, text='{}'.format(names[31])) - col_3 = row_layers.column(align = 0) - col_3.scale_y = 0.75 - if layer_number > 2: - col_3.prop(arm, "layers", index=2 , toggle=True, text='{}'.format(names[2])) - if layer_number > 5: - col_3.prop(arm, "layers", index=5 , toggle=True, text='{}'.format(names[5])) - if layer_number > 8: - col_3.prop(arm, "layers", index=16 , toggle=True, text='{}'.format(names[8])) - if layer_number > 11: - col_3.prop(arm, "layers", index=19 , toggle=True, text='{}'.format(names[11])) - if layer_number > 14: - col_3.prop(arm, "layers", index=22 , toggle=True, text='{}'.format(names[14])) - if layer_number > 17: - col_3.prop(arm, "layers", index=9 , toggle=True, text='{}'.format(names[17])) - if layer_number > 20: - col_3.prop(arm, "layers", index=12 , toggle=True, text='{}'.format(names[20])) - if layer_number > 23: - col_3.prop(arm, "layers", index=15 , toggle=True, text='{}'.format(names[23])) - if layer_number > 26: - col_3.prop(arm, "layers", index=26 , toggle=True, text='{}'.format(names[26])) - if layer_number > 29: - col_3.prop(arm, "layers", index=29 , toggle=True, text='{}'.format(names[29])) - col2.separator() + col_3 = row_layers.column(align = 0) + col_3.scale_y = 0.75 + if layer_number > 2: + col_3.prop(arm, "layers", index=2 , toggle=True, text='{}'.format(names[2])) + if layer_number > 5: + col_3.prop(arm, "layers", index=5 , toggle=True, text='{}'.format(names[5])) + if layer_number > 8: + col_3.prop(arm, "layers", index=16 , toggle=True, text='{}'.format(names[8])) + if layer_number > 11: + col_3.prop(arm, "layers", index=19 , toggle=True, text='{}'.format(names[11])) + if layer_number > 14: + col_3.prop(arm, "layers", index=22 , toggle=True, text='{}'.format(names[14])) + if layer_number > 17: + col_3.prop(arm, "layers", index=9 , toggle=True, text='{}'.format(names[17])) + if layer_number > 20: + col_3.prop(arm, "layers", index=12 , toggle=True, text='{}'.format(names[20])) + if layer_number > 23: + col_3.prop(arm, "layers", index=15 , toggle=True, text='{}'.format(names[23])) + if layer_number > 26: + col_3.prop(arm, "layers", index=26 , toggle=True, text='{}'.format(names[26])) + if layer_number > 29: + col_3.prop(arm, "layers", index=29 , toggle=True, text='{}'.format(names[29])) + col2.separator() col3 = box.row() col3.alignment = 'LEFT' col3.prop(armobj, "show_in_front") box.separator() - + # collapsed box elif "gui_layers" in arm: row.operator("gui.blenrig_5_tabs", icon="RENDER_RESULT", emboss = 1).tab = "gui_layers" - row.label(text="ARMATURE LAYERS") + row.label(text="ARMATURE LAYERS") ################# BLENRIG PICKER BODY ############################################# if bpy.context.mode == "POSE": - - if "gui_picker_body" in arm: + + if "gui_picker_body" in arm: box = layout.column() col = box.column() - row = col.row() + row = col.row() row.alignment = "LEFT" - # expanded box + # expanded box if "gui_picker_body" in arm and arm["gui_picker_body"]: row.operator("gui.blenrig_5_tabs", icon="OUTLINER_OB_ARMATURE", emboss = 1).tab = "gui_picker_body" row.label(text="BLENRIG BODY PICKER") @@ -260,2951 +256,2950 @@ class BLENRIG_PT_BlenRig_5_Interface(bpy.types.Panel): # 3 Columns box_row = box.row() - + if props.gui_picker_body_props: box_R = box_row.column(align = 1) box_R.scale_x = 1 - box_R.scale_y = 1 - box_R.alignment = 'LEFT' - + box_R.scale_y = 1 + box_R.alignment = 'LEFT' + box_body = box_row.column(align = 1) - + box_L = box_row.column(align = 1) box_L.scale_x = 1 - box_L.scale_y = 1 - box_L.alignment = 'RIGHT' + box_L.scale_y = 1 + box_L.alignment = 'RIGHT' else: box_body = box_row.column(align = 1) # Look slider - + if props.gui_picker_body_props: row_look_title = box_body.row(align = 1) row_look_title.scale_x = 0.7 row_look_title.scale_y = 1 - row_look_title.alignment = 'CENTER' - + row_look_title.alignment = 'CENTER' + row_label = row_look_title.row(align = 1) row_label.scale_x = 1 - row_label.scale_y = 1 - row_label.alignment = 'LEFT' - row_label.label(text="Free") - + row_label.scale_y = 1 + row_label.alignment = 'LEFT' + row_label.label("Free") + row_label = row_look_title.row(align = 1) row_label.scale_x = 1 - row_label.scale_y = 1 - row_label.alignment = 'CENTER' - row_label.label(text="Body") - + row_label.scale_y = 1 + row_label.alignment = 'CENTER' + row_label.label("Body") + row_label = row_look_title.row(align = 1) row_label.scale_x = 1 - row_label.scale_y = 1 - row_label.alignment = 'CENTER' - row_label.label(text="Torso") - - row_label = row_look_title.column(align = 1) + row_label.scale_y = 1 + row_label.alignment = 'CENTER' + row_label.label("Torso") + + row_label = row_look_title.column(align = 1) row_label.scale_x = 1 - row_label.scale_y = 1 - row_label.alignment = 'RIGHT' - row_label.label(text="Head") - + row_label.scale_y = 1 + row_label.alignment = 'RIGHT' + row_label.label("Head") + row_look = box_body.row() row_look.scale_x = 1 row_look.scale_y = 1 - row_look.alignment = 'CENTER' - row_look.prop(arm_bones['properties_head'], 'look_switch', text="Eyes Target", slider=True) + row_look.alignment = 'CENTER' + row_look.prop(arm_bones['properties_head'], 'look_switch', "Eyes Target", slider=True) - col_space = box_body.column() + col_space = box_body.column() col_space.scale_x = 1 col_space.scale_y = 4 - col_space.separator() - else: - col_space = box_body.column() + col_space.separator() + else: + col_space = box_body.column() col_space.scale_x = 1 col_space.scale_y = 10 - col_space.separator() + col_space.separator() - # Head + # Head col_head_main = box_body.column(align = 1) col_head_main.alignment = 'CENTER' - + col_toon = col_head_main.row() col_toon.scale_x = 0.5 - col_toon.scale_y = 0.5 - col_toon.alignment = 'CENTER' - col_toon.operator("operator.head_stretch", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_toon.operator("operator.head_toon", text="", icon = "KEYFRAME", emboss = 0) - - row_head_main = col_head_main.row(align = 1) - row_head_main.alignment = 'CENTER' - - col_1 = row_head_main.column() + col_toon.scale_y = 0.5 + col_toon.alignment = 'CENTER' + col_toon.operator("operator.head_stretch", text="", icon = "SPACE2", emboss = 0) + col_toon.operator("operator.head_toon", text="", icon = "SPACE3", emboss = 0) + + row_head_main = col_head_main.row(align = 1) + row_head_main.alignment = 'CENTER' + + col_1 = row_head_main.column() col_1.scale_x = 0.5 - col_1.scale_y = 0.5 - col_1.alignment = 'CENTER' - col_1.operator("operator.head_top_ctrl", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_1.operator("operator.head_mid_ctrl", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_1.operator("operator.head_mid_curve", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_1.operator("operator.mouth_str_ctrl", text="", icon = "KEYFRAME_HLT", emboss = 0) - - col_2 = row_head_main.column(align = 1) + col_1.scale_y = 0.5 + col_1.alignment = 'CENTER' + col_1.operator("operator.head_top_ctrl", text="", icon = "SPACE2", emboss = 0) + col_1.operator("operator.head_mid_ctrl", text="", icon = "SPACE2", emboss = 0) + col_1.operator("operator.head_mid_curve", text="", icon = "SPACE2", emboss = 0) + col_1.operator("operator.mouth_str_ctrl", text="", icon = "SPACE2", emboss = 0) + + col_2 = row_head_main.column(align = 1) col_2.scale_x = 1 col_2.scale_y = 1 - col_2.alignment = 'CENTER' + col_2.alignment = 'CENTER' - row_eyes = col_2.row() + row_eyes = col_2.row() row_eyes.scale_x = 1.1 - row_eyes.scale_y = 0.75 - row_eyes.alignment = 'CENTER' - box_eyes = row_eyes.box() - - row = box_eyes.row() + row_eyes.scale_y = 0.75 + row_eyes.alignment = 'CENTER' + box_eyes = row_eyes.box() + row = box_eyes.row() row.alignment = 'CENTER' - col_eye_R = row.column() - col_eye_R.scale_x = 1 - col_eye_R.scale_y = 1 - col_eye_R.alignment = 'CENTER' - col_eye_R.operator("operator.look_r", text="", icon="HIDE_OFF") + col_eye_R = row.column() + col_eye_R.scale_x = 0.75 + col_eye_R.scale_y = 0.75 + col_eye_R.alignment = 'CENTER' + col_eye_R.operator("operator.look_r", text="", icon="RESTRICT_VIEW_OFF") - col_look = row.column() - col_look.scale_x = 0.7 - col_look.scale_y = 1.6 + col_look = row.column() + col_look.scale_x = 0.5 + col_look.scale_y = 1 col_look.alignment = 'CENTER' - col_look.operator("operator.look", text="") + col_look.operator("operator.look", text="") - col_eye_L = row.column() - col_eye_L.scale_x = 1 - col_eye_L.scale_y = 1 + col_eye_L = row.column() + col_eye_L.scale_x = 0.75 + col_eye_L.scale_y = 0.75 col_eye_L.alignment = 'CENTER' - col_eye_L.operator("operator.look_l", text="", icon="HIDE_OFF") - - col_fk = col_2.row(align = 1) + col_eye_L.operator("operator.look_l", text="", icon="RESTRICT_VIEW_OFF") + + col_fk = col_2.row(align = 1) col_fk.scale_x = 1.1 - col_fk.scale_y = 0.75 - col_fk.alignment = 'CENTER' - col_fk.operator("operator.head_fk", text="Head FK") - - col_ik = col_2.row(align = 1) + col_fk.scale_y = 0.75 + col_fk.alignment = 'CENTER' + col_fk.operator("operator.head_fk", text="Head FK") + + col_ik = col_2.row(align = 1) col_ik.scale_x = 1.15 - col_ik.scale_y = 0.75 - col_ik.alignment = 'CENTER' - col_ik.operator("operator.head_ik_ctrl", text="Head IK") - - col_toon = col_2.row(align = 1) + col_ik.scale_y = 0.75 + col_ik.alignment = 'CENTER' + col_ik.operator("operator.head_ik_ctrl", text="Head IK") + + col_toon = col_2.row(align = 1) col_toon.scale_x = 1 col_toon.scale_y = 0.15 - col_toon.alignment = 'CENTER' - col_toon.operator("operator.neck_4_toon", text="", icon = "KEYFRAME_HLT", emboss = 0) - - col_3 = row_head_main.column() + col_toon.alignment = 'CENTER' + col_toon.operator("operator.neck_4_toon", text="", icon = "SPACE2", emboss = 0) + + col_3 = row_head_main.column() col_3.scale_x = 0.5 - col_3.scale_y = 0.5 - col_3.alignment = 'CENTER' - col_3.operator("operator.face_toon_up", text="", icon = "KEYFRAME", emboss = 0) - col_3.operator("operator.face_toon_mid", text="", icon = "KEYFRAME", emboss = 0) - col_3.operator("operator.face_toon_low", text="", icon = "KEYFRAME", emboss = 0) - + col_3.scale_y = 0.5 + col_3.alignment = 'CENTER' + col_3.operator("operator.face_toon_up", text="", icon = "SPACE3", emboss = 0) + col_3.operator("operator.face_toon_mid", text="", icon = "SPACE3", emboss = 0) + col_3.operator("operator.face_toon_low", text="", icon = "SPACE3", emboss = 0) + # Neck - - row_neck_main = box_body.row(align = 1) + + row_neck_main = box_body.row(align = 1) row_neck_main.scale_x = 0.75 row_neck_main.scale_y = 1 - row_neck_main.alignment = 'CENTER' - - col_neck_fk = row_neck_main.column(align = 1) + row_neck_main.alignment = 'CENTER' + + col_neck_fk = row_neck_main.column(align = 1) col_neck_fk.scale_x = 1 col_neck_fk.scale_y = 1 - col_neck_fk.alignment = 'CENTER' - - row_neck_1 = col_neck_fk.row(align = 0) + col_neck_fk.alignment = 'CENTER' + + row_neck_1 = col_neck_fk.row(align = 0) row_neck_1.scale_x = 1 row_neck_1.scale_y = 0.35 - row_neck_1.alignment = 'CENTER' - row_neck_1.operator("operator.neck_3", text="") + row_neck_1.alignment = 'CENTER' + row_neck_1.operator("operator.neck_3", text="") - col_toon_2 = col_neck_fk.row(align = 1) + col_toon_2 = col_neck_fk.row(align = 1) col_toon_2.scale_x = 1 col_toon_2.scale_y = 0.15 - col_toon_2.alignment = 'CENTER' - col_toon_2.operator("operator.neck_3_toon", text="", icon = "KEYFRAME_HLT", emboss = 0) - - row_neck_2 = col_neck_fk.row(align = 1) + col_toon_2.alignment = 'CENTER' + col_toon_2.operator("operator.neck_3_toon", text="", icon = "SPACE2", emboss = 0) + + row_neck_2 = col_neck_fk.row(align = 1) row_neck_2.scale_x = 1 row_neck_2.scale_y = 0.3 - row_neck_2.alignment = 'CENTER' - row_neck_2.operator("operator.neck_2", text="") + row_neck_2.alignment = 'CENTER' + row_neck_2.operator("operator.neck_2", text="") - col_toon_3 = col_neck_fk.column(align = 1) + col_toon_3 = col_neck_fk.column(align = 1) col_toon_3.scale_x = 1 col_toon_3.scale_y = 0.15 - col_toon_3.alignment = 'CENTER' - col_toon_3.operator("operator.neck_2_toon", text="", icon = "KEYFRAME_HLT", emboss = 0) - - row_neck_3 = col_neck_fk.row(align = 1) + col_toon_3.alignment = 'CENTER' + col_toon_3.operator("operator.neck_2_toon", text="", icon = "SPACE2", emboss = 0) + + row_neck_3 = col_neck_fk.row(align = 1) row_neck_3.scale_x = 1 row_neck_3.scale_y = 0.3 - row_neck_3.alignment = 'CENTER' - row_neck_3.operator("operator.neck_1", text="") - - row_ctrl = col_neck_fk.row(align = 1) + row_neck_3.alignment = 'CENTER' + row_neck_3.operator("operator.neck_1", text="") + + row_ctrl = col_neck_fk.row(align = 1) row_ctrl.scale_x = 1 row_ctrl.scale_y = 0.5 - row_ctrl.alignment = 'CENTER' - row_ctrl.operator("operator.neck_ctrl", text="Neck Ctrl") + row_ctrl.alignment = 'CENTER' + row_ctrl.operator("operator.neck_ctrl", text="Neck Ctrl") # Shoulders - - row_shoulder = box_body.row(align = 0) - col_2 = row_shoulder.row(align = 1) + row_shoulder = box_body.row(align = 0) + + col_2 = row_shoulder.row(align = 1) col_2.scale_x = 0.95 col_2.scale_y = 1 - col_2.alignment = 'CENTER' - - row_shoulder_R = col_2.row(align = 1) + col_2.alignment = 'CENTER' + + row_shoulder_R = col_2.row(align = 1) row_shoulder_R.scale_x = 1 - row_shoulder_R.scale_y = 0.75 - row_shoulder_R.alignment = 'CENTER' + row_shoulder_R.scale_y = 0.75 + row_shoulder_R.alignment = 'CENTER' col_toon = row_shoulder_R.column(align = 1) col_toon.scale_x = 0.25 col_toon.scale_y = 0.75 - col_toon.alignment = 'CENTER' - col_toon.operator("operator.clavi_toon_r", text = "", icon = "KEYFRAME_HLT", emboss = 0) - + col_toon.alignment = 'CENTER' + col_toon.operator("operator.clavi_toon_r", text = "", icon = "SPACE2", emboss = 0) + col_ik = row_shoulder_R.column(align = 1) - col_ik.scale_x = 0.8 - col_ik.scale_y = 0.8 - col_ik.alignment = 'CENTER' - col_ik.operator("operator.shoulder_rot_r", text="IK") - + col_ik.scale_x = 0.75 + col_ik.scale_y = 0.75 + col_ik.alignment = 'CENTER' + col_ik.operator("operator.shoulder_rot_r", text="IK") + col_fk = row_shoulder_R.column(align = 1) col_fk.scale_x = 1.2 col_fk.scale_y = 0.75 - col_fk.alignment = 'CENTER' + col_fk.alignment = 'CENTER' col_fk.operator("operator.shoulder_r", text="Shldr FK") - row_neck_scale = col_2.row(align = 1) + row_neck_scale = col_2.row(align = 1) row_neck_scale.scale_x = 1 row_neck_scale.scale_y = 0.75 - row_neck_scale.alignment = 'CENTER' - row_neck_scale.operator("operator.head_scale", text = "", icon = "UV_SYNC_SELECT", emboss = 1) + row_neck_scale.alignment = 'CENTER' + row_neck_scale.operator("operator.head_scale", text = "", icon = "MAN_SCALE", emboss = 1) - row_shoulder_L = col_2.row(align = 1) + row_shoulder_L = col_2.row(align = 1) row_shoulder_L.scale_x = 1 row_shoulder_L.scale_y = 0.75 - row_shoulder_L.alignment = 'CENTER' - + row_shoulder_L.alignment = 'CENTER' + col_fk = row_shoulder_L.column(align = 1) col_fk.scale_x = 1.2 col_fk.scale_y = 0.75 - col_fk.alignment = 'CENTER' + col_fk.alignment = 'CENTER' col_fk.operator("operator.shoulder_l", text="Shldr FK") - + col_ik = row_shoulder_L.column(align = 1) - col_ik.scale_x = 0.8 - col_ik.scale_y = 0.8 - col_ik.alignment = 'CENTER' + col_ik.scale_x = 0.75 + col_ik.scale_y = 0.75 + col_ik.alignment = 'CENTER' col_ik.operator("operator.shoulder_rot_l", text="IK") - + col_toon = row_shoulder_L.column(align = 1) col_toon.scale_x = 0.25 col_toon.scale_y = 0.75 - col_toon.alignment = 'CENTER' - col_toon.operator("operator.clavi_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_toon.alignment = 'CENTER' + col_toon.operator("operator.clavi_toon_l", text="", icon = "SPACE2", emboss = 0) + # Arm R - if arm['rig_type'] == "Biped": + if arm['rig_type'] == "Biped": row_torso = box_body.row() row_torso.scale_x = 1 row_torso.scale_y = 1 - row_torso.alignment = 'CENTER' - + row_torso.alignment = 'CENTER' + col_arm_R = row_torso.row(align = 1) col_arm_R.scale_x = 0.5 col_arm_R.scale_y = 1 - col_arm_R.alignment = 'CENTER' - + col_arm_R.alignment = 'CENTER' + col_arm_toon_R = col_arm_R.column() col_arm_toon_R.scale_x = 1 col_arm_toon_R.scale_y = 1 - col_arm_toon_R.alignment = 'CENTER' - col_arm_toon_R.separator() - col_arm_toon_R.separator() - col_arm_toon_R.separator() - col_arm_toon_R.separator() - col_arm_toon_R.separator() - col_arm_toon_R.operator("operator.arm_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_arm_toon_R.separator() - col_arm_toon_R.separator() - col_arm_toon_R.operator("operator.elbow_pole_r", text="", icon = "PROP_ON", emboss = 0) - col_arm_toon_R.separator() - col_arm_toon_R.separator() - col_arm_toon_R.separator() - col_arm_toon_R.operator("operator.forearm_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_arm_toon_R.alignment = 'CENTER' + col_arm_toon_R.separator() + col_arm_toon_R.separator() + col_arm_toon_R.separator() + col_arm_toon_R.separator() + col_arm_toon_R.separator() + col_arm_toon_R.operator("operator.arm_toon_r", text="", icon = "SPACE2", emboss = 0) + col_arm_toon_R.separator() + col_arm_toon_R.separator() + col_arm_toon_R.operator("operator.elbow_pole_r", text="", icon = "INLINK", emboss = 0) + col_arm_toon_R.separator() + col_arm_toon_R.separator() + col_arm_toon_R.separator() + col_arm_toon_R.operator("operator.forearm_toon_r", text="", icon = "SPACE2", emboss = 0) + col_arm_main_R = col_arm_R.column(align = 1) col_arm_main_R.scale_x = 1.2 col_arm_main_R.scale_y = 1 - col_arm_main_R.alignment = 'CENTER' - + col_arm_main_R.alignment = 'CENTER' + col_arm_scale_R = col_arm_main_R.row(align = 1) col_arm_scale_R.scale_x = 1.2 col_arm_scale_R.scale_y = 1 - col_arm_scale_R.alignment = 'CENTER' - col_arm_scale_R.operator("operator.arm_scale_r", text = "", icon = "UV_SYNC_SELECT", emboss = 1) - + col_arm_scale_R.alignment = 'CENTER' + col_arm_scale_R.operator("operator.arm_scale_r", text = "", icon = "MAN_SCALE", emboss = 1) + col_arm_fk_R = col_arm_main_R.row(align = 1) col_arm_fk_R.scale_x = 1 col_arm_fk_R.scale_y = 2.5 - col_arm_fk_R.alignment = 'CENTER' - col_arm_fk_R.operator("operator.arm_fk_r", text="FK") - + col_arm_fk_R.alignment = 'CENTER' + col_arm_fk_R.operator("operator.arm_fk_r", text="FK") + col_arm_ik_R = col_arm_main_R.row(align = 1) col_arm_ik_R.scale_x = 1 col_arm_ik_R.scale_y = 1 - col_arm_ik_R.alignment = 'CENTER' - col_arm_ik_R.operator("operator.arm_ik_r", text="IK") + col_arm_ik_R.alignment = 'CENTER' + col_arm_ik_R.operator("operator.arm_ik_r", text="IK") col_elbow_toon_R = col_arm_main_R.column() col_elbow_toon_R.scale_x = 1 col_elbow_toon_R.scale_y = 0.25 - col_elbow_toon_R.alignment = 'CENTER' - col_elbow_toon_R.operator("operator.elbow_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_elbow_toon_R.alignment = 'CENTER' + col_elbow_toon_R.operator("operator.elbow_toon_r", text="", icon = "SPACE2", emboss = 0) + col_forearm_fk_R = col_arm_main_R.row(align = 1) col_forearm_fk_R.scale_x = 1 col_forearm_fk_R.scale_y = 3 - col_forearm_fk_R.alignment = 'CENTER' + col_forearm_fk_R.alignment = 'CENTER' col_forearm_fk_R.operator("operator.forearm_fk_r", text="FK") - + col_forearm_ik_R = col_arm_main_R.row(align = 1) col_forearm_ik_R.scale_x = 1 col_forearm_ik_R.scale_y = 1 - col_forearm_ik_R.alignment = 'CENTER' - col_forearm_ik_R.operator("operator.forearm_ik_r", text="IK") - + col_forearm_ik_R.alignment = 'CENTER' + col_forearm_ik_R.operator("operator.forearm_ik_r", text="IK") + col_hand_toon_R = col_arm_main_R.column() col_hand_toon_R.scale_x = 1 col_hand_toon_R.scale_y = 0.25 - col_hand_toon_R.alignment = 'CENTER' - col_hand_toon_R.operator("operator.hand_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) + col_hand_toon_R.alignment = 'CENTER' + col_hand_toon_R.operator("operator.hand_toon_r", text="", icon = "SPACE2", emboss = 0) # Arm R Quadruped - - if arm['rig_type'] == "Quadruped": + + if arm['rig_type'] == "Quadruped": row_torso = box_body.row() row_torso.scale_x = 1 row_torso.scale_y = 1 - row_torso.alignment = 'CENTER' + row_torso.alignment = 'CENTER' col_arm_R = row_torso.row(align = 1) col_arm_R.scale_x = 0.5 col_arm_R.scale_y = 1 - col_arm_R.alignment = 'CENTER' + col_arm_R.alignment = 'CENTER' + - col_arm_toon_R = col_arm_R.column() col_arm_toon_R.scale_x = 1 col_arm_toon_R.scale_y = 1 - col_arm_toon_R.alignment = 'CENTER' - col_arm_toon_R.separator() - col_arm_toon_R.separator() - col_arm_toon_R.separator() - col_arm_toon_R.operator("operator.arm_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_arm_toon_R.separator() - col_arm_toon_R.separator() - col_arm_toon_R.operator("operator.elbow_pole_r", text="", icon = "PROP_ON", emboss = 0) - col_arm_toon_R.separator() - col_arm_toon_R.operator("operator.forearm_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_arm_toon_R.separator() - col_arm_toon_R.separator() - col_arm_toon_R.separator() - col_arm_toon_R.operator("operator.carpal_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_arm_toon_R.alignment = 'CENTER' + col_arm_toon_R.separator() + col_arm_toon_R.separator() + col_arm_toon_R.separator() + col_arm_toon_R.operator("operator.arm_toon_r", text="", icon = "SPACE2", emboss = 0) + col_arm_toon_R.separator() + col_arm_toon_R.separator() + col_arm_toon_R.operator("operator.elbow_pole_r", text="", icon = "INLINK", emboss = 0) + col_arm_toon_R.separator() + col_arm_toon_R.operator("operator.forearm_toon_r", text="", icon = "SPACE2", emboss = 0) + col_arm_toon_R.separator() + col_arm_toon_R.separator() + col_arm_toon_R.separator() + col_arm_toon_R.operator("operator.carpal_toon_r", text="", icon = "SPACE2", emboss = 0) + col_arm_main_R = col_arm_R.column(align = 1) col_arm_main_R.scale_x = 1.2 col_arm_main_R.scale_y = 1 - col_arm_main_R.alignment = 'CENTER' - + col_arm_main_R.alignment = 'CENTER' + col_arm_scale_R = col_arm_main_R.row(align = 1) col_arm_scale_R.scale_x = 1.2 col_arm_scale_R.scale_y = 1 - col_arm_scale_R.alignment = 'CENTER' - col_arm_scale_R.operator("operator.arm_scale_r", text = "", icon = "UV_SYNC_SELECT", emboss = 1) - + col_arm_scale_R.alignment = 'CENTER' + col_arm_scale_R.operator("operator.arm_scale_r", text = "", icon = "MAN_SCALE", emboss = 1) + col_arm_fk_R = col_arm_main_R.row(align = 1) col_arm_fk_R.scale_x = 1 col_arm_fk_R.scale_y = 1.5 - col_arm_fk_R.alignment = 'CENTER' - col_arm_fk_R.operator("operator.arm_fk_r", text="FK") - + col_arm_fk_R.alignment = 'CENTER' + col_arm_fk_R.operator("operator.arm_fk_r", text="FK") + col_arm_ik_R = col_arm_main_R.row(align = 1) col_arm_ik_R.scale_x = 1 col_arm_ik_R.scale_y = 1 - col_arm_ik_R.alignment = 'CENTER' - col_arm_ik_R.operator("operator.arm_ik_r", text="IK") + col_arm_ik_R.alignment = 'CENTER' + col_arm_ik_R.operator("operator.arm_ik_r", text="IK") col_elbow_toon_R = col_arm_main_R.column() col_elbow_toon_R.scale_x = 1 col_elbow_toon_R.scale_y = 0.25 - col_elbow_toon_R.alignment = 'CENTER' - col_elbow_toon_R.operator("operator.elbow_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_elbow_toon_R.alignment = 'CENTER' + col_elbow_toon_R.operator("operator.elbow_toon_r", text="", icon = "SPACE2", emboss = 0) + col_forearm_fk_R = col_arm_main_R.row(align = 1) col_forearm_fk_R.scale_x = 1 col_forearm_fk_R.scale_y = 1.5 - col_forearm_fk_R.alignment = 'CENTER' + col_forearm_fk_R.alignment = 'CENTER' col_forearm_fk_R.operator("operator.forearm_fk_r", text="FK") - + col_forearm_ik_R = col_arm_main_R.row(align = 1) col_forearm_ik_R.scale_x = 1 col_forearm_ik_R.scale_y = 1 - col_forearm_ik_R.alignment = 'CENTER' - col_forearm_ik_R.operator("operator.forearm_ik_r", text="IK") + col_forearm_ik_R.alignment = 'CENTER' + col_forearm_ik_R.operator("operator.forearm_ik_r", text="IK") col_ankle_toon_R = col_arm_main_R.column() col_ankle_toon_R.scale_x = 1 col_ankle_toon_R.scale_y = 0.25 - col_ankle_toon_R.alignment = 'CENTER' - col_ankle_toon_R.operator("operator.ankle_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_ankle_toon_R.alignment = 'CENTER' + col_ankle_toon_R.operator("operator.ankle_toon_r", text="", icon = "SPACE2", emboss = 0) + col_carpal_fk_R = col_arm_main_R.row(align = 1) col_carpal_fk_R.scale_x = 1 col_carpal_fk_R.scale_y = 1.5 - col_carpal_fk_R.alignment = 'CENTER' + col_carpal_fk_R.alignment = 'CENTER' col_carpal_fk_R.operator("operator.carpal_fk_r", text="FK") - + col_carpal_ik_R = col_arm_main_R.row(align = 1) col_carpal_ik_R.scale_x = 1 col_carpal_ik_R.scale_y = 1 - col_carpal_ik_R.alignment = 'CENTER' - col_carpal_ik_R.operator("operator.carpal_ik_r", text="IK") - + col_carpal_ik_R.alignment = 'CENTER' + col_carpal_ik_R.operator("operator.carpal_ik_r", text="IK") + col_hand_toon_R = col_arm_main_R.column() col_hand_toon_R.scale_x = 1 col_hand_toon_R.scale_y = 0.25 - col_hand_toon_R.alignment = 'CENTER' - col_hand_toon_R.operator("operator.hand_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) + col_hand_toon_R.alignment = 'CENTER' + col_hand_toon_R.operator("operator.hand_toon_r", text="", icon = "SPACE2", emboss = 0) # Spine - - + + row_torso_main = row_torso.row(align = 1) row_torso_main.alignment = 'CENTER' row_torso_main.scale_x= 1 - row_torso_main.scale_y=1.0 - + row_torso_main.scale_y=1.0 + col_torso = row_torso_main.column(align = 1) col_torso.alignment = 'CENTER' col_torso.scale_x= 1 col_torso.scale_y=1.0 - col_spine_ctrl = col_torso.row(align = 0) + col_spine_ctrl = col_torso.row(align = 0) col_spine_ctrl.scale_x = 1.4 col_spine_ctrl.scale_y = 0.75 - col_spine_ctrl.alignment = 'CENTER' - col_spine_ctrl.operator("operator.torso_ctrl", text="Torso Ctrl") + col_spine_ctrl.alignment = 'CENTER' + col_spine_ctrl.operator("operator.torso_ctrl", text="Torso Ctrl") - col_spine_toon_4 = col_torso.row(align = 1) + col_spine_toon_4 = col_torso.row(align = 1) col_spine_toon_4.scale_x = 1 col_spine_toon_4.scale_y = 0.35 - col_spine_toon_4.alignment = 'CENTER' - col_spine_toon_4.operator("operator.spine_4_toon", text="", icon = "KEYFRAME_HLT", emboss = 0) - - col_spine_3 = col_torso.row(align = 1) + col_spine_toon_4.alignment = 'CENTER' + col_spine_toon_4.operator("operator.spine_4_toon", text="", icon = "SPACE2", emboss = 0) + + col_spine_3 = col_torso.row(align = 1) col_spine_3.scale_x = 1.5 col_spine_3.scale_y = 0.75 - col_spine_3.alignment = 'CENTER' - col_spine_3.operator("operator.spine_3", text="Spine 3") - - prop_inv = int(bpy.context.active_object.pose.bones['properties_torso'].inv_torso) - if prop_inv == 1: - col_spine_3_inv_ctrl = col_torso.row(align = 1) + col_spine_3.alignment = 'CENTER' + col_spine_3.operator("operator.spine_3", text="Spine 3") + + prop_inv = int(bpy.context.active_object.pose.bones['properties_torso'].inv_torso) + if prop_inv == 1: + col_spine_3_inv_ctrl = col_torso.row(align = 1) col_spine_3_inv_ctrl.scale_x = 0.95 col_spine_3_inv_ctrl.scale_y = 0.5 - col_spine_3.scale_y = 0.5 - col_spine_3_inv_ctrl.alignment = 'CENTER' - col_spine_3_inv_ctrl.operator("operator.spine_3_inv_ctrl", text="Spine 3 inv Ctrl") - - col_spine_toon_3 = col_torso.row(align = 1) + col_spine_3.scale_y = 0.5 + col_spine_3_inv_ctrl.alignment = 'CENTER' + col_spine_3_inv_ctrl.operator("operator.spine_3_inv_ctrl", text="Spine 3 inv Ctrl") + + col_spine_toon_3 = col_torso.row(align = 1) col_spine_toon_3.scale_x = 1 col_spine_toon_3.scale_y = 0.35 - col_spine_toon_3.alignment = 'CENTER' - col_spine_toon_3.operator("operator.spine_3_toon", text="", icon = "KEYFRAME_HLT", emboss = 0) - - col_spine_2 = col_torso.row(align = 1) + col_spine_toon_3.alignment = 'CENTER' + col_spine_toon_3.operator("operator.spine_3_toon", text="", icon = "SPACE2", emboss = 0) + + col_spine_2 = col_torso.row(align = 1) col_spine_2.scale_x = 1.5 col_spine_2.scale_y = 0.75 - col_spine_2.alignment = 'CENTER' + col_spine_2.alignment = 'CENTER' col_spine_2.operator("operator.spine_2", text="Spine 2") - - col_spine_toon_2 = col_torso.row(align = 1) + + col_spine_toon_2 = col_torso.row(align = 1) col_spine_toon_2.scale_x = 1 col_spine_toon_2.scale_y = 0.35 - col_spine_toon_2.alignment = 'CENTER' - col_spine_toon_2.operator("operator.spine_2_toon", text="", icon = "KEYFRAME_HLT", emboss = 0) - - col_spine_1 = col_torso.row(align = 1) + col_spine_toon_2.alignment = 'CENTER' + col_spine_toon_2.operator("operator.spine_2_toon", text="", icon = "SPACE2", emboss = 0) + + col_spine_1 = col_torso.row(align = 1) col_spine_1.scale_x = 1.5 col_spine_1.scale_y = 0.75 - col_spine_1.alignment = 'CENTER' - col_spine_1.operator("operator.spine_1", text="Spine 1") + col_spine_1.alignment = 'CENTER' + col_spine_1.operator("operator.spine_1", text="Spine 1") - col_spine_toon_1 = col_torso.row(align = 1) + col_spine_toon_1 = col_torso.row(align = 1) col_spine_toon_1.scale_x = 1 col_spine_toon_1.scale_y = 0.25 - col_spine_toon_1.alignment = 'CENTER' - col_spine_toon_1.operator("operator.spine_1_toon", text="", icon = "KEYFRAME_HLT", emboss = 0) + col_spine_toon_1.alignment = 'CENTER' + col_spine_toon_1.operator("operator.spine_1_toon", text="", icon = "SPACE2", emboss = 0) if props.gui_picker_body_props: - col_torso_inv_props = col_torso.row(align = 0) + col_torso_inv_props = col_torso.row(align = 0) col_torso_inv_props.scale_x = 1 col_torso_inv_props.scale_y = 0.75 - col_torso_inv_props.alignment = 'CENTER' - col_torso_inv_props.prop(arm_bones['properties_torso'], 'inv_torso', text="Invert", toggle=True, icon_only = 1, emboss = 1) + col_torso_inv_props.alignment = 'CENTER' + col_torso_inv_props.prop(arm_bones['properties_torso'], 'inv_torso', "Invert", toggle=True, icon_only = 1, emboss = 1) - col_torso_props = col_torso.row(align = 0) + col_torso_props = col_torso.row(align = 0) col_torso_props.scale_x = 0.5 col_torso_props.scale_y = 0.75 - col_torso_props.alignment = 'CENTER' - col_torso_props.prop(arm_bones['properties_torso'], 'ik_torso', text="IK/FK", toggle=True, icon_only = 1, emboss = 1) - col_torso_props.prop(arm_bones['properties_torso'], 'toon_torso', text="Str IK", toggle=True, icon_only = 1, emboss = 1) + col_torso_props.alignment = 'CENTER' + col_torso_props.prop(arm_bones['properties_torso'], 'ik_torso', "IK/FK", toggle=True, icon_only = 1, emboss = 1) + col_torso_props.prop(arm_bones['properties_torso'], 'toon_torso', "Str IK", toggle=True, icon_only = 1, emboss = 1) - col_mstr_torso_ctrls = col_torso.row(align = 1) + col_mstr_torso_ctrls = col_torso.row(align = 1) col_mstr_torso_ctrls.scale_x = 4 col_mstr_torso_ctrls.scale_y = 1 - col_mstr_torso_ctrls.alignment = 'CENTER' - - col_mstr_torso = col_mstr_torso_ctrls.column(align = 1) + col_mstr_torso_ctrls.alignment = 'CENTER' + + col_mstr_torso = col_mstr_torso_ctrls.column(align = 1) col_mstr_torso.scale_x = 0.37 col_mstr_torso.scale_y = 1 - col_mstr_torso.alignment = 'CENTER' + col_mstr_torso.alignment = 'CENTER' col_mstr_torso.operator("operator.master_torso", text="Mstr Torso") - - col_mstr_torso_pivot = col_mstr_torso_ctrls.column(align = 1) + + col_mstr_torso_pivot = col_mstr_torso_ctrls.column(align = 1) col_mstr_torso_pivot.scale_x = 0.1 col_mstr_torso_pivot.scale_y = 1 - col_mstr_torso_pivot.alignment = 'CENTER' - col_mstr_torso_pivot.operator("operator.master_torso_pivot_point", text="") + col_mstr_torso_pivot.alignment = 'CENTER' + col_mstr_torso_pivot.operator("operator.master_torso_pivot_point", text="") else: - col_mstr_torso_ctrls = col_torso.row(align = 1) + col_mstr_torso_ctrls = col_torso.row(align = 1) col_mstr_torso_ctrls.scale_x = 4 col_mstr_torso_ctrls.scale_y = 1 - col_mstr_torso_ctrls.alignment = 'CENTER' - - col_mstr_torso = col_mstr_torso_ctrls.column(align = 1) + col_mstr_torso_ctrls.alignment = 'CENTER' + + col_mstr_torso = col_mstr_torso_ctrls.column(align = 1) col_mstr_torso.scale_x = 0.37 col_mstr_torso.scale_y = 1 - col_mstr_torso.alignment = 'CENTER' + col_mstr_torso.alignment = 'CENTER' col_mstr_torso.operator("operator.master_torso", text="Mstr Torso") - - col_mstr_torso_pivot = col_mstr_torso_ctrls.column(align = 1) + + col_mstr_torso_pivot = col_mstr_torso_ctrls.column(align = 1) col_mstr_torso_pivot.scale_x = 0.1 col_mstr_torso_pivot.scale_y = 1 - col_mstr_torso_pivot.alignment = 'CENTER' - col_mstr_torso_pivot.operator("operator.master_torso_pivot_point", text="") - + col_mstr_torso_pivot.alignment = 'CENTER' + col_mstr_torso_pivot.operator("operator.master_torso_pivot_point", text="") - col_pelvis_toon = col_torso.row(align = 1) + + col_pelvis_toon = col_torso.row(align = 1) col_pelvis_toon.scale_x = 1 col_pelvis_toon.scale_y = 0.25 - col_pelvis_toon.alignment = 'CENTER' - col_pelvis_toon.operator("operator.pelvis_toon", text="", icon = "KEYFRAME_HLT", emboss = 0) - - col_pelvis = col_torso.row(align = 0) + col_pelvis_toon.alignment = 'CENTER' + col_pelvis_toon.operator("operator.pelvis_toon", text="", icon = "SPACE2", emboss = 0) + + col_pelvis = col_torso.row(align = 0) col_pelvis.scale_x = 1.8 col_pelvis.scale_y = 1.5 - col_pelvis.alignment = 'CENTER' - col_pelvis.operator("operator.pelvis_ctrl", text="Pelivs Ctrl") - + col_pelvis.alignment = 'CENTER' + col_pelvis.operator("operator.pelvis_ctrl", text="Pelivs Ctrl") + # Arm L - if arm['rig_type'] == "Biped": + if arm['rig_type'] == "Biped": col_arm_L = row_torso.row(align = 1) col_arm_L.scale_x = 0.5 col_arm_L.scale_y = 1 - col_arm_L.alignment = 'CENTER' - + col_arm_L.alignment = 'CENTER' + col_arm_main_L = col_arm_L.column(align = 1) col_arm_main_L.scale_x = 1.2 col_arm_main_L.scale_y = 1 - col_arm_main_L.alignment = 'CENTER' - + col_arm_main_L.alignment = 'CENTER' + col_arm_scale_L = col_arm_main_L.row(align = 1) col_arm_scale_L.scale_x = 1.2 col_arm_scale_L.scale_y = 1 - col_arm_scale_L.alignment = 'CENTER' - col_arm_scale_L.operator("operator.arm_scale_l", text = "", icon = "UV_SYNC_SELECT", emboss = 1) - + col_arm_scale_L.alignment = 'CENTER' + col_arm_scale_L.operator("operator.arm_scale_l", text = "", icon = "MAN_SCALE", emboss = 1) + col_arm_fk_L = col_arm_main_L.row(align = 1) col_arm_fk_L.scale_x = 1 col_arm_fk_L.scale_y = 2.5 - col_arm_fk_L.alignment = 'CENTER' - col_arm_fk_L.operator("operator.arm_fk_l", text="FK") - + col_arm_fk_L.alignment = 'CENTER' + col_arm_fk_L.operator("operator.arm_fk_l", text="FK") + col_arm_ik_L = col_arm_main_L.row(align = 1) col_arm_ik_L.scale_x = 1 col_arm_ik_L.scale_y = 1 - col_arm_ik_L.alignment = 'CENTER' - col_arm_ik_L.operator("operator.arm_ik_l", text="IK") + col_arm_ik_L.alignment = 'CENTER' + col_arm_ik_L.operator("operator.arm_ik_l", text="IK") col_elbow_toon_L = col_arm_main_L.column() col_elbow_toon_L.scale_x = 1 col_elbow_toon_L.scale_y = 0.25 - col_elbow_toon_L.alignment = 'CENTER' - col_elbow_toon_L.operator("operator.elbow_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_elbow_toon_L.alignment = 'CENTER' + col_elbow_toon_L.operator("operator.elbow_toon_l", text="", icon = "SPACE2", emboss = 0) + col_forearm_fk_L = col_arm_main_L.row(align = 1) col_forearm_fk_L.scale_x = 1 col_forearm_fk_L.scale_y = 3 - col_forearm_fk_L.alignment = 'CENTER' + col_forearm_fk_L.alignment = 'CENTER' col_forearm_fk_L.operator("operator.forearm_fk_l", text="FK") - + col_forearm_ik_L = col_arm_main_L.row(align = 1) col_forearm_ik_L.scale_x = 1 col_forearm_ik_L.scale_y = 1 - col_forearm_ik_L.alignment = 'CENTER' - col_forearm_ik_L.operator("operator.forearm_ik_l", text="IK") - + col_forearm_ik_L.alignment = 'CENTER' + col_forearm_ik_L.operator("operator.forearm_ik_l", text="IK") + col_hand_toon_L = col_arm_main_L.column() col_hand_toon_L.scale_x = 1 col_hand_toon_L.scale_y = 0.25 - col_hand_toon_L.alignment = 'CENTER' - col_hand_toon_L.operator("operator.hand_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_hand_toon_L.alignment = 'CENTER' + col_hand_toon_L.operator("operator.hand_toon_l", text="", icon = "SPACE2", emboss = 0) + col_arm_toon_L = col_arm_L.column() col_arm_toon_L.scale_x = 1 col_arm_toon_L.scale_y = 1 - col_arm_toon_L.alignment = 'CENTER' - col_arm_toon_L.separator() - col_arm_toon_L.separator() - col_arm_toon_L.separator() - col_arm_toon_L.separator() - col_arm_toon_L.separator() - col_arm_toon_L.operator("operator.arm_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_arm_toon_L.separator() - col_arm_toon_L.separator() - col_arm_toon_L.operator("operator.elbow_pole_l", text="", icon = "PROP_ON", emboss = 0) - col_arm_toon_L.separator() - col_arm_toon_L.separator() + col_arm_toon_L.alignment = 'CENTER' + col_arm_toon_L.separator() + col_arm_toon_L.separator() + col_arm_toon_L.separator() + col_arm_toon_L.separator() + col_arm_toon_L.separator() + col_arm_toon_L.operator("operator.arm_toon_l", text="", icon = "SPACE2", emboss = 0) + col_arm_toon_L.separator() + col_arm_toon_L.separator() + col_arm_toon_L.operator("operator.elbow_pole_l", text="", icon = "INLINK", emboss = 0) + col_arm_toon_L.separator() + col_arm_toon_L.separator() - col_arm_toon_L.separator() - col_arm_toon_L.operator("operator.forearm_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) + col_arm_toon_L.separator() + col_arm_toon_L.operator("operator.forearm_toon_l", text="", icon = "SPACE2", emboss = 0) # Arm L Quadruped - - if arm['rig_type'] == "Quadruped": + + if arm['rig_type'] == "Quadruped": col_arm_L = row_torso.row(align = 1) col_arm_L.scale_x = 0.5 col_arm_L.scale_y = 1 - col_arm_L.alignment = 'CENTER' - + col_arm_L.alignment = 'CENTER' + col_arm_main_L = col_arm_L.column(align = 1) col_arm_main_L.scale_x = 1.2 col_arm_main_L.scale_y = 1 - col_arm_main_L.alignment = 'CENTER' - + col_arm_main_L.alignment = 'CENTER' + col_arm_scale_L = col_arm_main_L.row(align = 1) col_arm_scale_L.scale_x = 1.2 col_arm_scale_L.scale_y = 1 - col_arm_scale_L.alignment = 'CENTER' - col_arm_scale_L.operator("operator.arm_scale_l", text = "", icon = "UV_SYNC_SELECT", emboss = 1) - + col_arm_scale_L.alignment = 'CENTER' + col_arm_scale_L.operator("operator.arm_scale_l", text = "", icon = "MAN_SCALE", emboss = 1) + col_arm_fk_L = col_arm_main_L.row(align = 1) col_arm_fk_L.scale_x = 1 col_arm_fk_L.scale_y = 1.5 - col_arm_fk_L.alignment = 'CENTER' - col_arm_fk_L.operator("operator.arm_fk_l", text="FK") - + col_arm_fk_L.alignment = 'CENTER' + col_arm_fk_L.operator("operator.arm_fk_l", text="FK") + col_arm_ik_L = col_arm_main_L.row(align = 1) col_arm_ik_L.scale_x = 1 col_arm_ik_L.scale_y = 1 - col_arm_ik_L.alignment = 'CENTER' - col_arm_ik_L.operator("operator.arm_ik_l", text="IK") + col_arm_ik_L.alignment = 'CENTER' + col_arm_ik_L.operator("operator.arm_ik_l", text="IK") col_elbow_toon_L = col_arm_main_L.column() col_elbow_toon_L.scale_x = 1 col_elbow_toon_L.scale_y = 0.25 - col_elbow_toon_L.alignment = 'CENTER' - col_elbow_toon_L.operator("operator.elbow_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_elbow_toon_L.alignment = 'CENTER' + col_elbow_toon_L.operator("operator.elbow_toon_l", text="", icon = "SPACE2", emboss = 0) + col_forearm_fk_L = col_arm_main_L.row(align = 1) col_forearm_fk_L.scale_x = 1 col_forearm_fk_L.scale_y = 1.5 - col_forearm_fk_L.alignment = 'CENTER' + col_forearm_fk_L.alignment = 'CENTER' col_forearm_fk_L.operator("operator.forearm_fk_l", text="FK") - + col_forearm_ik_L = col_arm_main_L.row(align = 1) col_forearm_ik_L.scale_x = 1 col_forearm_ik_L.scale_y = 1 - col_forearm_ik_L.alignment = 'CENTER' - col_forearm_ik_L.operator("operator.forearm_ik_l", text="IK") + col_forearm_ik_L.alignment = 'CENTER' + col_forearm_ik_L.operator("operator.forearm_ik_l", text="IK") col_ankle_toon_L = col_arm_main_L.column() col_ankle_toon_L.scale_x = 1 col_ankle_toon_L.scale_y = 0.25 - col_ankle_toon_L.alignment = 'CENTER' - col_ankle_toon_L.operator("operator.ankle_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_ankle_toon_L.alignment = 'CENTER' + col_ankle_toon_L.operator("operator.ankle_toon_l", text="", icon = "SPACE2", emboss = 0) + col_carpal_fk_L = col_arm_main_L.row(align = 1) col_carpal_fk_L.scale_x = 1 col_carpal_fk_L.scale_y = 1.5 - col_carpal_fk_L.alignment = 'CENTER' + col_carpal_fk_L.alignment = 'CENTER' col_carpal_fk_L.operator("operator.carpal_fk_l", text="FK") - + col_carpal_ik_L = col_arm_main_L.row(align = 1) col_carpal_ik_L.scale_x = 1 col_carpal_ik_L.scale_y = 1 - col_carpal_ik_L.alignment = 'CENTER' - col_carpal_ik_L.operator("operator.carpal_ik_l", text="IK") - + col_carpal_ik_L.alignment = 'CENTER' + col_carpal_ik_L.operator("operator.carpal_ik_l", text="IK") + col_hand_toon_L = col_arm_main_L.column() col_hand_toon_L.scale_x = 1 col_hand_toon_L.scale_y = 0.25 - col_hand_toon_L.alignment = 'CENTER' - col_hand_toon_L.operator("operator.hand_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_hand_toon_L.alignment = 'CENTER' + col_hand_toon_L.operator("operator.hand_toon_l", text="", icon = "SPACE2", emboss = 0) + col_arm_toon_L = col_arm_L.column() col_arm_toon_L.scale_x = 1 col_arm_toon_L.scale_y = 1 - col_arm_toon_L.alignment = 'CENTER' - col_arm_toon_L.separator() - col_arm_toon_L.separator() - col_arm_toon_L.separator() - col_arm_toon_L.operator("operator.arm_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_arm_toon_L.separator() - col_arm_toon_L.separator() - col_arm_toon_L.operator("operator.elbow_pole_l", text="", icon = "PROP_ON", emboss = 0) - col_arm_toon_L.separator() - col_arm_toon_L.operator("operator.forearm_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_arm_toon_L.separator() - col_arm_toon_L.separator() - col_arm_toon_L.separator() - col_arm_toon_L.operator("operator.carpal_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_arm_toon_L.alignment = 'CENTER' + col_arm_toon_L.separator() + col_arm_toon_L.separator() + col_arm_toon_L.separator() + col_arm_toon_L.operator("operator.arm_toon_l", text="", icon = "SPACE2", emboss = 0) + col_arm_toon_L.separator() + col_arm_toon_L.separator() + col_arm_toon_L.operator("operator.elbow_pole_l", text="", icon = "INLINK", emboss = 0) + col_arm_toon_L.separator() + col_arm_toon_L.operator("operator.forearm_toon_l", text="", icon = "SPACE2", emboss = 0) + col_arm_toon_L.separator() + col_arm_toon_L.separator() + col_arm_toon_L.separator() + col_arm_toon_L.operator("operator.carpal_toon_l", text="", icon = "SPACE2", emboss = 0) + # Hand R - - row_legs = box_body.row(align = 0) + + row_legs = box_body.row(align = 0) row_legs.scale_x = 1.2 row_legs.scale_y = 1 - row_legs.alignment = 'CENTER' - - row_hand_R = row_legs.row(align = 1) + row_legs.alignment = 'CENTER' + + row_hand_R = row_legs.row(align = 1) row_hand_R.scale_x = 1 row_hand_R.scale_y = 1 - row_hand_R.alignment = 'CENTER' + row_hand_R.alignment = 'CENTER' - if arm['rig_type'] == "Biped": - col_bend_R = row_hand_R.row(align = 1) + if arm['rig_type'] == "Biped": + col_bend_R = row_hand_R.row(align = 1) col_bend_R.scale_x = 0.5 col_bend_R.scale_y = 2 - col_bend_R.alignment = 'CENTER' - col_bend_R.operator("operator.hand_roll_r", text="", icon = "LOOP_FORWARDS", emboss = 0) + col_bend_R.alignment = 'CENTER' + col_bend_R.operator("operator.hand_roll_r", text="", icon = "LOOP_FORWARDS", emboss = 0) - row_hand_main_R = row_hand_R.row(align = 1) + row_hand_main_R = row_hand_R.row(align = 1) row_hand_main_R.scale_x = 1 row_hand_main_R.scale_y = 1 - row_hand_main_R.alignment = 'CENTER' - - col_spread_R = row_hand_main_R.column(align = 0) - col_spread_R.scale_x = 0.8 + row_hand_main_R.alignment = 'CENTER' + + col_spread_R = row_hand_main_R.column(align = 1) + col_spread_R.scale_x = 0.25 col_spread_R.scale_y = 2 - col_spread_R.alignment = 'CENTER' - col_spread_R.operator("operator.fing_spread_r", text="") - - col_hand_main_R = row_hand_main_R.column(align = 1) + col_spread_R.alignment = 'CENTER' + col_spread_R.operator("operator.fing_spread_r", text="") + + col_hand_main_R = row_hand_main_R.column(align = 1) col_hand_main_R.scale_x = 0.8 col_hand_main_R.scale_y = 1 - col_hand_main_R.alignment = 'CENTER' + col_hand_main_R.alignment = 'CENTER' - col_hand_pivot_R = col_hand_main_R.column(align = 1) + col_hand_pivot_R = col_hand_main_R.column(align = 1) col_hand_pivot_R.scale_x = 0.75 col_hand_pivot_R.scale_y = 0.35 - col_hand_pivot_R.alignment = 'CENTER' - col_hand_pivot_R.operator("operator.hand_ik_pivot_point_r", text="") + col_hand_pivot_R.alignment = 'CENTER' + col_hand_pivot_R.operator("operator.hand_ik_pivot_point_r", text="") - col_hand_ik_R = col_hand_main_R.column(align = 1) + col_hand_ik_R = col_hand_main_R.column(align = 1) col_hand_ik_R.scale_x = 1 col_hand_ik_R.scale_y = 1 - col_hand_ik_R.alignment = 'CENTER' - col_hand_ik_R.operator("operator.hand_ik_ctrl_r", text="Hand IK") - - col_hand_fk_R = col_hand_main_R.column(align = 1) + col_hand_ik_R.alignment = 'CENTER' + col_hand_ik_R.operator("operator.hand_ik_ctrl_r", text="Hand IK") + + col_hand_fk_R = col_hand_main_R.column(align = 1) col_hand_fk_R.scale_x = 1 col_hand_fk_R.scale_y = 1 - col_hand_fk_R.alignment = 'CENTER' - col_hand_fk_R.operator("operator.hand_fk_r", text="Hand FK") - - col_fingers_R = col_hand_main_R.row(align = 1) + col_hand_fk_R.alignment = 'CENTER' + col_hand_fk_R.operator("operator.hand_fk_r", text="Hand FK") + + col_fingers_R = col_hand_main_R.row(align = 1) col_fingers_R.scale_x = 0.25 col_fingers_R.scale_y = 1 - col_fingers_R.alignment = 'CENTER' + col_fingers_R.alignment = 'CENTER' - - # Hand R Quadruped - if arm['rig_type'] == "Quadruped": - row_hand_main_R = row_hand_R.row(align = 1) + # Hand R Quadruped + + if arm['rig_type'] == "Quadruped": + row_hand_main_R = row_hand_R.row(align = 1) row_hand_main_R.scale_x = 0.5 row_hand_main_R.scale_y = 1 - row_hand_main_R.alignment = 'CENTER' - - col_hand_main_R = row_hand_main_R.column(align = 1) + row_hand_main_R.alignment = 'CENTER' + + col_hand_main_R = row_hand_main_R.column(align = 1) col_hand_main_R.scale_x = 1 col_hand_main_R.scale_y = 1 - col_hand_main_R.alignment = 'CENTER' - - col_foot_R = col_hand_main_R.column(align = 0) + col_hand_main_R.alignment = 'CENTER' + + col_foot_R = col_hand_main_R.column(align = 0) col_foot_R.scale_x = 1 col_foot_R.scale_y = 1 - col_foot_R.alignment = 'CENTER' + col_foot_R.alignment = 'CENTER' - row_foot_R = col_foot_R.row(align = 1) + row_foot_R = col_foot_R.row(align = 1) row_foot_R.scale_x = 1 row_foot_R.scale_y = 1 - row_foot_R.alignment = 'CENTER' - - col_toe_1_R = row_foot_R.column(align = 1) + row_foot_R.alignment = 'CENTER' + + col_toe_1_R = row_foot_R.column(align = 1) col_toe_1_R.scale_x = 1 col_toe_1_R.scale_y = 0.75 - col_toe_1_R.alignment = 'CENTER' + col_toe_1_R.alignment = 'CENTER' col_toe_1_R.operator("operator.fing_2_fk_r", text="") - col_toe_roll_2_R = row_foot_R.column(align = 1) + col_toe_roll_2_R = row_foot_R.column(align = 1) col_toe_roll_2_R.scale_x = 0.75 col_toe_roll_2_R.scale_y = 0.75 - col_toe_roll_2_R.alignment = 'CENTER' - col_toe_roll_2_R.operator("operator.fing_roll_2_r", text="", icon = "LOOP_BACK", emboss = 0) + col_toe_roll_2_R.alignment = 'CENTER' + col_toe_roll_2_R.operator("operator.fing_roll_2_r", text="", icon = "LOOP_BACK", emboss = 0) - col_toe_2_R = row_foot_R.column(align = 1) + col_toe_2_R = row_foot_R.column(align = 1) col_toe_2_R.scale_x = 1 col_toe_2_R.scale_y = 0.75 - col_toe_2_R.alignment = 'CENTER' - col_toe_2_R.operator("operator.fing_1_fk_r", text="") + col_toe_2_R.alignment = 'CENTER' + col_toe_2_R.operator("operator.fing_1_fk_r", text="") - col_toe_roll_1_R = row_foot_R.column(align = 1) + col_toe_roll_1_R = row_foot_R.column(align = 1) col_toe_roll_1_R.scale_x = 0.75 col_toe_roll_1_R.scale_y = 0.75 - col_toe_roll_1_R.alignment = 'CENTER' - col_toe_roll_1_R.operator("operator.fing_roll_1_r", text="", icon = "LOOP_BACK", emboss = 0) - + col_toe_roll_1_R.alignment = 'CENTER' + col_toe_roll_1_R.operator("operator.fing_roll_1_r", text="", icon = "LOOP_BACK", emboss = 0) + # Foot R - - col_foot_R = row_foot_R.column(align = 1) + + col_foot_R = row_foot_R.column(align = 1) col_foot_R.scale_x = 1 col_foot_R.scale_y = 0.75 - col_foot_R.alignment = 'CENTER' + col_foot_R.alignment = 'CENTER' col_foot_R.operator("operator.hand_r", text="Hand R") - + # FootRoll R - - col_foot_roll_R = row_foot_R.column(align = 0) + + col_foot_roll_R = row_foot_R.column(align = 0) col_foot_roll_R.scale_x = 0.5 col_foot_roll_R.scale_y = 0.75 - col_foot_roll_R.alignment = 'CENTER' - col_foot_roll_R.operator("operator.hand_roll_ctrl_r", text="", icon = "LOOP_BACK", emboss = 0) - - col_fingers_R = col_hand_main_R.row(align = 1) + col_foot_roll_R.alignment = 'CENTER' + col_foot_roll_R.operator("operator.hand_roll_ctrl_r", text="", icon = "LOOP_BACK", emboss = 0) + + col_fingers_R = col_hand_main_R.row(align = 1) col_fingers_R.scale_x = 0.25 col_fingers_R.scale_y = 1 - col_fingers_R.alignment = 'CENTER' + col_fingers_R.alignment = 'CENTER' #Fingers Option - if arm_bones['properties_arm_R']["toggle_fingers_R"] == 1: - col_lit_ctrl_R = col_fingers_R.column(align = 0) + if arm_bones['properties_arm_R']["toggle_fingers_R"] == 1: + col_lit_ctrl_R = col_fingers_R.column(align = 0) col_lit_ctrl_R.scale_x = 1.5 col_lit_ctrl_R.scale_y = 2 - col_lit_ctrl_R.alignment = 'CENTER' - col_lit_ctrl_R.operator("operator.fing_lit_ctrl_r", text="") + col_lit_ctrl_R.alignment = 'CENTER' + col_lit_ctrl_R.operator("operator.fing_lit_ctrl_r", text="") - col_lit_R = col_fingers_R.column(align = 0) + col_lit_R = col_fingers_R.column(align = 0) col_lit_R.scale_x = 1.5 col_lit_R.scale_y = 0.7 - col_lit_R.alignment = 'CENTER' - col_lit_R.operator("operator.fing_lit_2_r", text="") - col_lit_R.operator("operator.fing_lit_3_r", text="") - col_lit_R.operator("operator.fing_lit_4_r", text="") + col_lit_R.alignment = 'CENTER' + col_lit_R.operator("operator.fing_lit_2_r", text="") + col_lit_R.operator("operator.fing_lit_3_r", text="") + col_lit_R.operator("operator.fing_lit_4_r", text="") - col_ring_ctrl_R = col_fingers_R.column(align = 0) + col_ring_ctrl_R = col_fingers_R.column(align = 0) col_ring_ctrl_R.scale_x = 1.5 col_ring_ctrl_R.scale_y = 2.5 - col_ring_ctrl_R.alignment = 'CENTER' - col_ring_ctrl_R.operator("operator.fing_ring_ctrl_r", text="") - - col_ring_R = col_fingers_R.column(align = 0) + col_ring_ctrl_R.alignment = 'CENTER' + col_ring_ctrl_R.operator("operator.fing_ring_ctrl_r", text="") + + col_ring_R = col_fingers_R.column(align = 0) col_ring_R.scale_x = 1.5 col_ring_R.scale_y = 0.85 - col_ring_R.alignment = 'CENTER' - col_ring_R.operator("operator.fing_ring_2_r", text="") - col_ring_R.operator("operator.fing_ring_3_r", text="") - col_ring_R.operator("operator.fing_ring_4_r", text="") + col_ring_R.alignment = 'CENTER' + col_ring_R.operator("operator.fing_ring_2_r", text="") + col_ring_R.operator("operator.fing_ring_3_r", text="") + col_ring_R.operator("operator.fing_ring_4_r", text="") - col_mid_ctrl_R = col_fingers_R.column(align = 0) + col_mid_ctrl_R = col_fingers_R.column(align = 0) col_mid_ctrl_R.scale_x = 1.5 col_mid_ctrl_R.scale_y = 3 - col_mid_ctrl_R.alignment = 'CENTER' - col_mid_ctrl_R.operator("operator.fing_mid_ctrl_r", text="") + col_mid_ctrl_R.alignment = 'CENTER' + col_mid_ctrl_R.operator("operator.fing_mid_ctrl_r", text="") - col_mid_R = col_fingers_R.column(align = 0) + col_mid_R = col_fingers_R.column(align = 0) col_mid_R.scale_x = 1.5 col_mid_R.scale_y = 1 - col_mid_R.alignment = 'CENTER' - col_mid_R.operator("operator.fing_mid_2_r", text="") - col_mid_R.operator("operator.fing_mid_3_r", text="") - col_mid_R.operator("operator.fing_mid_4_r", text="") + col_mid_R.alignment = 'CENTER' + col_mid_R.operator("operator.fing_mid_2_r", text="") + col_mid_R.operator("operator.fing_mid_3_r", text="") + col_mid_R.operator("operator.fing_mid_4_r", text="") - col_index_ctrl_R = col_fingers_R.column(align = 0) + col_index_ctrl_R = col_fingers_R.column(align = 0) col_index_ctrl_R.scale_x = 1.5 col_index_ctrl_R.scale_y = 2.7 - col_index_ctrl_R.alignment = 'CENTER' - col_index_ctrl_R.operator("operator.fing_ind_ctrl_r", text="") - - col_index_R = col_fingers_R.column(align = 0) + col_index_ctrl_R.alignment = 'CENTER' + col_index_ctrl_R.operator("operator.fing_ind_ctrl_r", text="") + + col_index_R = col_fingers_R.column(align = 0) col_index_R.scale_x = 1.5 - col_index_R.scale_y = 0.8 - col_index_R.alignment = 'CENTER' - col_index_R.operator("operator.fing_ind_2_r", text="") - col_index_R.operator("operator.fing_ind_3_r", text="") - col_index_R.operator("operator.fing_ind_4_r", text="") - - col_thumb_ctrl_R = col_fingers_R.column(align = 0) + col_index_R.scale_y = 0.9 + col_index_R.alignment = 'CENTER' + col_index_R.operator("operator.fing_ind_2_r", text="") + col_index_R.operator("operator.fing_ind_3_r", text="") + col_index_R.operator("operator.fing_ind_4_r", text="") + + col_thumb_ctrl_R = col_fingers_R.column(align = 0) col_thumb_ctrl_R.scale_x = 1.5 col_thumb_ctrl_R.scale_y = 1.5 - col_thumb_ctrl_R.alignment = 'CENTER' - col_thumb_ctrl_R.operator("operator.fing_thumb_ctrl_r", text="") - - col_thumb_R = col_fingers_R.column(align = 0) - col_thumb_R.scale_x = 1.5 - col_thumb_R.scale_y = 0.5 - col_thumb_R.alignment = 'CENTER' - col_thumb_R.operator("operator.fing_thumb_1_r", text="") - col_thumb_R.operator("operator.fing_thumb_2_r", text="") - col_thumb_R.operator("operator.fing_thumb_3_r", text="") + col_thumb_ctrl_R.alignment = 'CENTER' + col_thumb_ctrl_R.operator("operator.fing_thumb_ctrl_r", text="") - col_fing_ik_R = col_hand_main_R.row(align = 0) + col_thumb_R = col_fingers_R.column(align = 0) + col_thumb_R.scale_x = 1 + col_thumb_R.scale_y = 0.5 + col_thumb_R.alignment = 'CENTER' + col_thumb_R.operator("operator.fing_thumb_1_r", text="") + col_thumb_R.operator("operator.fing_thumb_2_r", text="") + col_thumb_R.operator("operator.fing_thumb_3_r", text="") + + col_fing_ik_R = col_hand_main_R.row(align = 0) col_fing_ik_R.scale_x = 0.25 col_fing_ik_R.scale_y = 0.5 - col_fing_ik_R.alignment = 'CENTER' - col_fing_ik_R.operator("operator.fing_lit_ik_r", text="") - col_fing_ik_R.operator("operator.fing_ring_ik_r", text="") - col_fing_ik_R.operator("operator.fing_mid_ik_r", text="") - col_fing_ik_R.operator("operator.fing_ind_ik_r", text="") - col_fing_ik_R.operator("operator.fing_thumb_ik_r", text="") - - col_hand_close_R = col_hand_main_R.column(align = 0) + col_fing_ik_R.alignment = 'CENTER' + col_fing_ik_R.operator("operator.fing_lit_ik_r", text="") + col_fing_ik_R.operator("operator.fing_ring_ik_r", text="") + col_fing_ik_R.operator("operator.fing_mid_ik_r", text="") + col_fing_ik_R.operator("operator.fing_ind_ik_r", text="") + col_fing_ik_R.operator("operator.fing_thumb_ik_r", text="") + + col_hand_close_R = col_hand_main_R.column(align = 0) col_hand_close_R.scale_x = 1 col_hand_close_R.scale_y = 0.5 - col_hand_close_R.alignment = 'CENTER' + col_hand_close_R.alignment = 'CENTER' col_hand_close_R.separator() - col_hand_close_R.operator("operator.hand_close_r", text="") + col_hand_close_R.operator("operator.hand_close_r", text="") else: - if arm['rig_type'] == "Biped": + if arm['rig_type'] == "Biped": col_hand_main_R.scale_x = 0.112 - if arm['rig_type'] == "Quadruped": - row_hand_main_R.scale_x = 1 - col_hand_main_R.scale_x = 0.25 - + if arm['rig_type'] == "Quadruped": + row_hand_main_R.scale_x = 1 + col_hand_main_R.scale_x = 0.25 + # Hand Sole R - if arm['rig_type'] == "Quadruped": - row_sole_R = col_hand_main_R.row(align = 1) + if arm['rig_type'] == "Quadruped": + row_sole_R = col_hand_main_R.row(align = 1) row_sole_R.scale_x = 2 row_sole_R.scale_y = 1 - row_sole_R.alignment = 'CENTER' + row_sole_R.alignment = 'CENTER' - col_sole_R = row_sole_R.column(align = 1) + col_sole_R = row_sole_R.column(align = 1) col_sole_R.scale_x = 1 col_sole_R.scale_y = 0.75 - col_sole_R.alignment = 'CENTER' - col_sole_R.operator("operator.hand_sole_ctrl_r", text="Hand Sole R") - - col_sole_pivot_R = row_sole_R.column(align = 1) + col_sole_R.alignment = 'CENTER' + col_sole_R.operator("operator.hand_sole_ctrl_r", text="Hand Sole R") + + col_sole_pivot_R = row_sole_R.column(align = 1) col_sole_pivot_R.scale_x = 0.25 col_sole_pivot_R.scale_y = 0.75 - col_sole_pivot_R.alignment = 'CENTER' - col_sole_pivot_R.operator("operator.hand_sole_pivot_point_r", text="") - + col_sole_pivot_R.alignment = 'CENTER' + col_sole_pivot_R.operator("operator.hand_sole_pivot_point_r", text="") + # Leg R - if arm['rig_type'] == "Biped": + if arm['rig_type'] == "Biped": row_legs_main = row_legs.row(align = 0) row_legs_main.scale_x = 0.75 row_legs_main.scale_y = 1 - row_legs_main.alignment = 'CENTER' - + row_legs_main.alignment = 'CENTER' + row_leg_main_R = row_legs_main.row(align = 1) row_leg_main_R.scale_x = 1 row_leg_main_R.scale_y = 1 - row_leg_main_R.alignment = 'CENTER' - + row_leg_main_R.alignment = 'CENTER' + col_leg_toon_R = row_leg_main_R.column() col_leg_toon_R.scale_x = 0.5 col_leg_toon_R.scale_y = 1 - col_leg_toon_R.alignment = 'CENTER' - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.operator("operator.thigh_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.operator("operator.knee_pole_r", text="", icon = "PROP_ON", emboss = 0) - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.operator("operator.shin_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_leg_toon_R.alignment = 'CENTER' + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.operator("operator.thigh_toon_r", text="", icon = "SPACE2", emboss = 0) + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.operator("operator.knee_pole_r", text="", icon = "INLINK", emboss = 0) + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.operator("operator.shin_toon_r", text="", icon = "SPACE2", emboss = 0) + col_leg_main_R = row_leg_main_R.column(align = 1) col_leg_main_R.scale_x = 1 col_leg_main_R.scale_y = 1 - col_leg_main_R.alignment = 'CENTER' + col_leg_main_R.alignment = 'CENTER' col_pelvis_toon_R = col_leg_main_R.column() col_pelvis_toon_R.scale_x = 1 col_pelvis_toon_R.scale_y = 0.1 - col_pelvis_toon_R.alignment = 'CENTER' - col_pelvis_toon_R.operator("operator.pelvis_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_pelvis_toon_R.alignment = 'CENTER' + col_pelvis_toon_R.operator("operator.pelvis_toon_r", text="", icon = "SPACE2", emboss = 0) + col_leg_scale_R = col_leg_main_R.row(align = 1) col_leg_scale_R.scale_x = 2 col_leg_scale_R.scale_y = 1 - col_leg_scale_R.alignment = 'CENTER' - col_leg_scale_R.operator("operator.leg_scale_r", text = "", icon = "UV_SYNC_SELECT", emboss = 1) - + col_leg_scale_R.alignment = 'CENTER' + col_leg_scale_R.operator("operator.leg_scale_r", text = "", icon = "MAN_SCALE", emboss = 1) + col_leg_fk_R = col_leg_main_R.row(align = 1) col_leg_fk_R.scale_x = 1 col_leg_fk_R.scale_y = 3.5 - col_leg_fk_R.alignment = 'CENTER' - col_leg_fk_R.operator("operator.thigh_fk_r", text="FK") - + col_leg_fk_R.alignment = 'CENTER' + col_leg_fk_R.operator("operator.thigh_fk_r", text="FK") + col_leg_ik_R = col_leg_main_R.row(align = 1) col_leg_ik_R.scale_x = 1 col_leg_ik_R.scale_y = 1 - col_leg_ik_R.alignment = 'CENTER' - col_leg_ik_R.operator("operator.thigh_ik_r", text="IK") + col_leg_ik_R.alignment = 'CENTER' + col_leg_ik_R.operator("operator.thigh_ik_r", text="IK") col_knee_toon_R = col_leg_main_R.column() col_knee_toon_R.scale_x = 1 col_knee_toon_R.scale_y = 0.25 - col_knee_toon_R.alignment = 'CENTER' - col_knee_toon_R.operator("operator.knee_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_knee_toon_R.alignment = 'CENTER' + col_knee_toon_R.operator("operator.knee_toon_r", text="", icon = "SPACE2", emboss = 0) + col_shin_fk_R = col_leg_main_R.row(align = 1) col_shin_fk_R.scale_x = 1 col_shin_fk_R.scale_y = 4 - col_shin_fk_R.alignment = 'CENTER' + col_shin_fk_R.alignment = 'CENTER' col_shin_fk_R.operator("operator.shin_fk_r", text="FK") - + col_shin_ik_R = col_leg_main_R.row(align = 1) col_shin_ik_R.scale_x = 1 col_shin_ik_R.scale_y = 1 - col_shin_ik_R.alignment = 'CENTER' - col_shin_ik_R.operator("operator.shin_ik_r", text="IK") - + col_shin_ik_R.alignment = 'CENTER' + col_shin_ik_R.operator("operator.shin_ik_r", text="IK") + col_foot_toon_R = col_leg_main_R.column() col_foot_toon_R.scale_x = 1 col_foot_toon_R.scale_y = 0.25 - col_foot_toon_R.alignment = 'CENTER' - col_foot_toon_R.operator("operator.foot_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) + col_foot_toon_R.alignment = 'CENTER' + col_foot_toon_R.operator("operator.foot_toon_r", text="", icon = "SPACE2", emboss = 0) # Quadruped Leg R - if arm['rig_type'] == "Quadruped": + if arm['rig_type'] == "Quadruped": row_legs_main = row_legs.row(align = 0) row_legs_main.scale_x = 0.75 row_legs_main.scale_y = 1 - row_legs_main.alignment = 'CENTER' - + row_legs_main.alignment = 'CENTER' + row_leg_main_R = row_legs_main.row(align = 1) row_leg_main_R.scale_x = 1 row_leg_main_R.scale_y = 1 - row_leg_main_R.alignment = 'CENTER' - + row_leg_main_R.alignment = 'CENTER' + col_leg_toon_R = row_leg_main_R.column() col_leg_toon_R.scale_x = 0.5 col_leg_toon_R.scale_y = 1 - col_leg_toon_R.alignment = 'CENTER' - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.operator("operator.thigh_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.operator("operator.knee_pole_r", text="", icon = "PROP_ON", emboss = 0) - col_leg_toon_R.separator() - col_leg_toon_R.operator("operator.shin_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.separator() - col_leg_toon_R.operator("operator.tarsal_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_leg_toon_R.alignment = 'CENTER' + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.operator("operator.thigh_toon_r", text="", icon = "SPACE2", emboss = 0) + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.operator("operator.knee_pole_r", text="", icon = "INLINK", emboss = 0) + col_leg_toon_R.separator() + col_leg_toon_R.operator("operator.shin_toon_r", text="", icon = "SPACE2", emboss = 0) + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.separator() + col_leg_toon_R.operator("operator.tarsal_toon_r", text="", icon = "SPACE2", emboss = 0) + col_leg_main_R = row_leg_main_R.column(align = 1) col_leg_main_R.scale_x = 1 col_leg_main_R.scale_y = 1 - col_leg_main_R.alignment = 'CENTER' + col_leg_main_R.alignment = 'CENTER' col_pelvis_toon_R = col_leg_main_R.column() col_pelvis_toon_R.scale_x = 1 col_pelvis_toon_R.scale_y = 0.1 - col_pelvis_toon_R.alignment = 'CENTER' - col_pelvis_toon_R.operator("operator.pelvis_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_pelvis_toon_R.alignment = 'CENTER' + col_pelvis_toon_R.operator("operator.pelvis_toon_r", text="", icon = "SPACE2", emboss = 0) + col_leg_scale_R = col_leg_main_R.row(align = 1) col_leg_scale_R.scale_x = 2 col_leg_scale_R.scale_y = 1 - col_leg_scale_R.alignment = 'CENTER' - col_leg_scale_R.operator("operator.leg_scale_r", text = "", icon = "UV_SYNC_SELECT", emboss = 1) - + col_leg_scale_R.alignment = 'CENTER' + col_leg_scale_R.operator("operator.leg_scale_r", text = "", icon = "MAN_SCALE", emboss = 1) + col_leg_fk_R = col_leg_main_R.row(align = 1) col_leg_fk_R.scale_x = 1 col_leg_fk_R.scale_y = 2 - col_leg_fk_R.alignment = 'CENTER' - col_leg_fk_R.operator("operator.thigh_fk_r", text="FK") - + col_leg_fk_R.alignment = 'CENTER' + col_leg_fk_R.operator("operator.thigh_fk_r", text="FK") + col_leg_ik_R = col_leg_main_R.row(align = 1) col_leg_ik_R.scale_x = 1 col_leg_ik_R.scale_y = 1 - col_leg_ik_R.alignment = 'CENTER' - col_leg_ik_R.operator("operator.thigh_ik_r", text="IK") + col_leg_ik_R.alignment = 'CENTER' + col_leg_ik_R.operator("operator.thigh_ik_r", text="IK") col_knee_toon_R = col_leg_main_R.column() col_knee_toon_R.scale_x = 1 col_knee_toon_R.scale_y = 0.25 - col_knee_toon_R.alignment = 'CENTER' - col_knee_toon_R.operator("operator.knee_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_knee_toon_R.alignment = 'CENTER' + col_knee_toon_R.operator("operator.knee_toon_r", text="", icon = "SPACE2", emboss = 0) + col_shin_fk_R = col_leg_main_R.row(align = 1) col_shin_fk_R.scale_x = 1 col_shin_fk_R.scale_y = 2 - col_shin_fk_R.alignment = 'CENTER' + col_shin_fk_R.alignment = 'CENTER' col_shin_fk_R.operator("operator.shin_fk_r", text="FK") - + col_shin_ik_R = col_leg_main_R.row(align = 1) col_shin_ik_R.scale_x = 1 col_shin_ik_R.scale_y = 1 - col_shin_ik_R.alignment = 'CENTER' - col_shin_ik_R.operator("operator.shin_ik_r", text="IK") + col_shin_ik_R.alignment = 'CENTER' + col_shin_ik_R.operator("operator.shin_ik_r", text="IK") col_hock_toon_R = col_leg_main_R.column() col_hock_toon_R.scale_x = 1 col_hock_toon_R.scale_y = 0.25 - col_hock_toon_R.alignment = 'CENTER' - col_hock_toon_R.operator("operator.hock_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_hock_toon_R.alignment = 'CENTER' + col_hock_toon_R.operator("operator.hock_toon_r", text="", icon = "SPACE2", emboss = 0) + col_tarsal_fk_R = col_leg_main_R.row(align = 1) col_tarsal_fk_R.scale_x = 1 col_tarsal_fk_R.scale_y = 2 - col_tarsal_fk_R.alignment = 'CENTER' + col_tarsal_fk_R.alignment = 'CENTER' col_tarsal_fk_R.operator("operator.tarsal_fk_r", text="FK") - + col_tarsal_ik_R = col_leg_main_R.row(align = 1) col_tarsal_ik_R.scale_x = 1 col_tarsal_ik_R.scale_y = 1 - col_tarsal_ik_R.alignment = 'CENTER' - col_tarsal_ik_R.operator("operator.tarsal_ik_r", text="IK") - + col_tarsal_ik_R.alignment = 'CENTER' + col_tarsal_ik_R.operator("operator.tarsal_ik_r", text="IK") + col_foot_toon_R = col_leg_main_R.column() col_foot_toon_R.scale_x = 1 col_foot_toon_R.scale_y = 0.25 - col_foot_toon_R.alignment = 'CENTER' - col_foot_toon_R.operator("operator.foot_toon_r", text="", icon = "KEYFRAME_HLT", emboss = 0) + col_foot_toon_R.alignment = 'CENTER' + col_foot_toon_R.operator("operator.foot_toon_r", text="", icon = "SPACE2", emboss = 0) # Leg L - if arm['rig_type'] == "Biped": + if arm['rig_type'] == "Biped": row_leg_main_L = row_legs_main.row(align = 1) row_leg_main_R.scale_x = 1 row_leg_main_R.scale_y = 1 - row_leg_main_R.alignment = 'CENTER' - + row_leg_main_R.alignment = 'CENTER' + col_leg_main_L = row_leg_main_L.column(align = 1) col_leg_main_L.scale_x = 1 col_leg_main_L.scale_y = 1 - col_leg_main_L.alignment = 'CENTER' + col_leg_main_L.alignment = 'CENTER' col_pelvis_toon_L = col_leg_main_L.column() col_pelvis_toon_L.scale_x = 1 col_pelvis_toon_L.scale_y = 0.1 - col_pelvis_toon_L.alignment = 'CENTER' - col_pelvis_toon_L.operator("operator.pelvis_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_pelvis_toon_L.alignment = 'CENTER' + col_pelvis_toon_L.operator("operator.pelvis_toon_l", text="", icon = "SPACE2", emboss = 0) + col_leg_scale_L = col_leg_main_L.row(align = 1) col_leg_scale_L.scale_x = 2 col_leg_scale_L.scale_y = 1 - col_leg_scale_L.alignment = 'CENTER' - col_leg_scale_L.operator("operator.leg_scale_l", text = "", icon = "UV_SYNC_SELECT", emboss = 1) - + col_leg_scale_L.alignment = 'CENTER' + col_leg_scale_L.operator("operator.leg_scale_l", text = "", icon = "MAN_SCALE", emboss = 1) + col_leg_fk_L = col_leg_main_L.row(align = 1) col_leg_fk_L.scale_x = 1 col_leg_fk_L.scale_y = 3.5 - col_leg_fk_L.alignment = 'CENTER' - col_leg_fk_L.operator("operator.thigh_fk_l", text="FK") - + col_leg_fk_L.alignment = 'CENTER' + col_leg_fk_L.operator("operator.thigh_fk_l", text="FK") + col_leg_ik_L = col_leg_main_L.row(align = 1) col_leg_ik_L.scale_x = 1 col_leg_ik_L.scale_y = 1 - col_leg_ik_L.alignment = 'CENTER' - col_leg_ik_L.operator("operator.thigh_ik_l", text="IK") + col_leg_ik_L.alignment = 'CENTER' + col_leg_ik_L.operator("operator.thigh_ik_l", text="IK") col_knee_toon_L = col_leg_main_L.column() col_knee_toon_L.scale_x = 1 col_knee_toon_L.scale_y = 0.25 - col_knee_toon_L.alignment = 'CENTER' - col_knee_toon_L.operator("operator.knee_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_knee_toon_L.alignment = 'CENTER' + col_knee_toon_L.operator("operator.knee_toon_l", text="", icon = "SPACE2", emboss = 0) + col_shin_fk_L = col_leg_main_L.row(align = 1) col_shin_fk_L.scale_x = 1 col_shin_fk_L.scale_y = 4 - col_shin_fk_L.alignment = 'CENTER' + col_shin_fk_L.alignment = 'CENTER' col_shin_fk_L.operator("operator.shin_fk_l", text="FK") - + col_shin_ik_L = col_leg_main_L.row(align = 1) col_shin_ik_L.scale_x = 1 col_shin_ik_L.scale_y = 1 - col_shin_ik_L.alignment = 'CENTER' - col_shin_ik_L.operator("operator.shin_ik_l", text="IK") - + col_shin_ik_L.alignment = 'CENTER' + col_shin_ik_L.operator("operator.shin_ik_l", text="IK") + col_foot_toon_L = col_leg_main_L.column() col_foot_toon_L.scale_x = 1 col_foot_toon_L.scale_y = 0.25 - col_foot_toon_L.alignment = 'CENTER' - col_foot_toon_L.operator("operator.foot_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) + col_foot_toon_L.alignment = 'CENTER' + col_foot_toon_L.operator("operator.foot_toon_l", text="", icon = "SPACE2", emboss = 0) + - col_leg_toon_L = row_leg_main_L.column() col_leg_toon_L.scale_x = 0.5 col_leg_toon_L.scale_y = 1 - col_leg_toon_L.alignment = 'CENTER' - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.operator("operator.thigh_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.operator("operator.knee_pole_l", text="", icon = "PROP_ON", emboss = 0) - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.operator("operator.shin_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) + col_leg_toon_L.alignment = 'CENTER' + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.operator("operator.thigh_toon_l", text="", icon = "SPACE2", emboss = 0) + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.operator("operator.knee_pole_l", text="", icon = "INLINK", emboss = 0) + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.operator("operator.shin_toon_l", text="", icon = "SPACE2", emboss = 0) # Quadruped Leg L - if arm['rig_type'] == "Quadruped": + if arm['rig_type'] == "Quadruped": row_legs_main = row_legs.row(align = 0) row_legs_main.scale_x = 0.75 row_legs_main.scale_y = 1 - row_legs_main.alignment = 'CENTER' - + row_legs_main.alignment = 'CENTER' + row_leg_main_L = row_legs_main.row(align = 1) row_leg_main_L.scale_x = 1 row_leg_main_L.scale_y = 1 - row_leg_main_L.alignment = 'CENTER' - + row_leg_main_L.alignment = 'CENTER' + col_leg_main_L = row_leg_main_L.column(align = 1) col_leg_main_L.scale_x = 1 col_leg_main_L.scale_y = 1 - col_leg_main_L.alignment = 'CENTER' + col_leg_main_L.alignment = 'CENTER' col_pelvis_toon_L = col_leg_main_L.column() col_pelvis_toon_L.scale_x = 1 col_pelvis_toon_L.scale_y = 0.1 - col_pelvis_toon_L.alignment = 'CENTER' - col_pelvis_toon_L.operator("operator.pelvis_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_pelvis_toon_L.alignment = 'CENTER' + col_pelvis_toon_L.operator("operator.pelvis_toon_l", text="", icon = "SPACE2", emboss = 0) + col_leg_scale_L = col_leg_main_L.row(align = 1) col_leg_scale_L.scale_x = 2 col_leg_scale_L.scale_y = 1 - col_leg_scale_L.alignment = 'CENTER' - col_leg_scale_L.operator("operator.leg_scale_l", text = "", icon = "UV_SYNC_SELECT", emboss = 1) - + col_leg_scale_L.alignment = 'CENTER' + col_leg_scale_L.operator("operator.leg_scale_l", text = "", icon = "MAN_SCALE", emboss = 1) + col_leg_fk_L = col_leg_main_L.row(align = 1) col_leg_fk_L.scale_x = 1 col_leg_fk_L.scale_y = 2 - col_leg_fk_L.alignment = 'CENTER' - col_leg_fk_L.operator("operator.thigh_fk_l", text="FK") - + col_leg_fk_L.alignment = 'CENTER' + col_leg_fk_L.operator("operator.thigh_fk_l", text="FK") + col_leg_ik_L = col_leg_main_L.row(align = 1) col_leg_ik_L.scale_x = 1 col_leg_ik_L.scale_y = 1 - col_leg_ik_L.alignment = 'CENTER' - col_leg_ik_L.operator("operator.thigh_ik_l", text="IK") + col_leg_ik_L.alignment = 'CENTER' + col_leg_ik_L.operator("operator.thigh_ik_l", text="IK") col_knee_toon_L = col_leg_main_L.column() col_knee_toon_L.scale_x = 1 col_knee_toon_L.scale_y = 0.25 - col_knee_toon_L.alignment = 'CENTER' - col_knee_toon_L.operator("operator.knee_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_knee_toon_L.alignment = 'CENTER' + col_knee_toon_L.operator("operator.knee_toon_l", text="", icon = "SPACE2", emboss = 0) + col_shin_fk_L = col_leg_main_L.row(align = 1) col_shin_fk_L.scale_x = 1 col_shin_fk_L.scale_y = 2 - col_shin_fk_L.alignment = 'CENTER' + col_shin_fk_L.alignment = 'CENTER' col_shin_fk_L.operator("operator.shin_fk_l", text="FK") - + col_shin_ik_L = col_leg_main_L.row(align = 1) col_shin_ik_L.scale_x = 1 col_shin_ik_L.scale_y = 1 - col_shin_ik_L.alignment = 'CENTER' - col_shin_ik_L.operator("operator.shin_ik_l", text="IK") + col_shin_ik_L.alignment = 'CENTER' + col_shin_ik_L.operator("operator.shin_ik_l", text="IK") col_hock_toon_L = col_leg_main_L.column() col_hock_toon_L.scale_x = 1 col_hock_toon_L.scale_y = 0.25 - col_hock_toon_L.alignment = 'CENTER' - col_hock_toon_L.operator("operator.hock_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_hock_toon_L.alignment = 'CENTER' + col_hock_toon_L.operator("operator.hock_toon_l", text="", icon = "SPACE2", emboss = 0) + col_tarsal_fk_L = col_leg_main_L.row(align = 1) col_tarsal_fk_L.scale_x = 1 col_tarsal_fk_L.scale_y = 2 - col_tarsal_fk_L.alignment = 'CENTER' + col_tarsal_fk_L.alignment = 'CENTER' col_tarsal_fk_L.operator("operator.tarsal_fk_l", text="FK") - + col_tarsal_ik_L = col_leg_main_L.row(align = 1) col_tarsal_ik_L.scale_x = 1 col_tarsal_ik_L.scale_y = 1 - col_tarsal_ik_L.alignment = 'CENTER' - col_tarsal_ik_L.operator("operator.tarsal_ik_l", text="IK") - + col_tarsal_ik_L.alignment = 'CENTER' + col_tarsal_ik_L.operator("operator.tarsal_ik_l", text="IK") + col_foot_toon_L = col_leg_main_L.column() col_foot_toon_L.scale_x = 1 col_foot_toon_L.scale_y = 0.25 - col_foot_toon_L.alignment = 'CENTER' - col_foot_toon_L.operator("operator.foot_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) + col_foot_toon_L.alignment = 'CENTER' + col_foot_toon_L.operator("operator.foot_toon_l", text="", icon = "SPACE2", emboss = 0) + - col_leg_toon_L = row_leg_main_L.column() col_leg_toon_L.scale_x = 0.5 col_leg_toon_L.scale_y = 1 - col_leg_toon_L.alignment = 'CENTER' - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.operator("operator.thigh_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.operator("operator.knee_pole_l", text="", icon = "PROP_ON", emboss = 0) - col_leg_toon_L.separator() - col_leg_toon_L.operator("operator.shin_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.separator() - col_leg_toon_L.operator("operator.tarsal_toon_l", text="", icon = "KEYFRAME_HLT", emboss = 0) - + col_leg_toon_L.alignment = 'CENTER' + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.operator("operator.thigh_toon_l", text="", icon = "SPACE2", emboss = 0) + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.operator("operator.knee_pole_l", text="", icon = "INLINK", emboss = 0) + col_leg_toon_L.separator() + col_leg_toon_L.operator("operator.shin_toon_l", text="", icon = "SPACE2", emboss = 0) + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.separator() + col_leg_toon_L.operator("operator.tarsal_toon_l", text="", icon = "SPACE2", emboss = 0) + # Hand L - - col_hand_L = row_legs.column(align = 1) + + col_hand_L = row_legs.column(align = 1) col_hand_L.scale_x = 1 col_hand_L.scale_y = 1 - col_hand_L.alignment = 'CENTER' - - row_hand_L = col_hand_L.row(align = 1) + col_hand_L.alignment = 'CENTER' + + row_hand_L = col_hand_L.row(align = 1) row_hand_L.scale_x = 1 row_hand_L.scale_y = 1 - row_hand_L.alignment = 'CENTER' - - if arm['rig_type'] == "Biped": - row_hand_main_L = row_hand_L.row(align = 1) + row_hand_L.alignment = 'CENTER' + + if arm['rig_type'] == "Biped": + row_hand_main_L = row_hand_L.row(align = 1) row_hand_main_L.scale_x = 1 row_hand_main_L.scale_y = 1 - row_hand_main_L.alignment = 'CENTER' - - col_hand_main_L = row_hand_main_L.column(align = 1) + row_hand_main_L.alignment = 'CENTER' + + col_hand_main_L = row_hand_main_L.column(align = 1) col_hand_main_L.scale_x = 0.8 col_hand_main_L.scale_y = 1 - col_hand_main_L.alignment = 'CENTER' + col_hand_main_L.alignment = 'CENTER' - col_hand_pivot_L = col_hand_main_L.column(align = 1) + col_hand_pivot_L = col_hand_main_L.column(align = 1) col_hand_pivot_L.scale_x = 0.75 col_hand_pivot_L.scale_y = 0.35 - col_hand_pivot_L.alignment = 'CENTER' - col_hand_pivot_L.operator("operator.hand_ik_pivot_point_l", text="") + col_hand_pivot_L.alignment = 'CENTER' + col_hand_pivot_L.operator("operator.hand_ik_pivot_point_l", text="") - col_hand_ik_L = col_hand_main_L.column(align = 1) + col_hand_ik_L = col_hand_main_L.column(align = 1) col_hand_ik_L.scale_x = 1 col_hand_ik_L.scale_y = 1 - col_hand_ik_L.alignment = 'CENTER' - col_hand_ik_L.operator("operator.hand_ik_ctrl_l", text="Hand IK") - - col_hand_fk_L = col_hand_main_L.column(align = 1) + col_hand_ik_L.alignment = 'CENTER' + col_hand_ik_L.operator("operator.hand_ik_ctrl_l", text="Hand IK") + + col_hand_fk_L = col_hand_main_L.column(align = 1) col_hand_fk_L.scale_x = 1 col_hand_fk_L.scale_y = 1 - col_hand_fk_L.alignment = 'CENTER' - col_hand_fk_L.operator("operator.hand_fk_l", text="Hand FK") + col_hand_fk_L.alignment = 'CENTER' + col_hand_fk_L.operator("operator.hand_fk_l", text="Hand FK") - col_fingers_L = col_hand_main_L.row(align = 1) + col_fingers_L = col_hand_main_L.row(align = 1) col_fingers_L.scale_x = 0.25 col_fingers_L.scale_y = 1 - col_fingers_L.alignment = 'CENTER' + col_fingers_L.alignment = 'CENTER' - # Hand L Quadruped + # Hand L Quadruped - if arm['rig_type'] == "Quadruped": - row_hand_main_L = row_hand_L.row(align = 1) + if arm['rig_type'] == "Quadruped": + row_hand_main_L = row_hand_L.row(align = 1) row_hand_main_L.scale_x = 0.5 row_hand_main_L.scale_y = 1 - row_hand_main_L.alignment = 'CENTER' - - col_hand_main_L = row_hand_main_L.column(align = 1) + row_hand_main_L.alignment = 'CENTER' + + col_hand_main_L = row_hand_main_L.column(align = 1) col_hand_main_L.scale_x = 1 col_hand_main_L.scale_y = 1 - col_hand_main_L.alignment = 'CENTER' + col_hand_main_L.alignment = 'CENTER' - #Foot_L - - col_foot_L = col_hand_main_L.column(align = 0) + #Foot_L + + col_foot_L = col_hand_main_L.column(align = 0) col_foot_L.scale_x = 1 col_foot_L.scale_y = 1 - col_foot_L.alignment = 'CENTER' + col_foot_L.alignment = 'CENTER' - row_foot_L = col_foot_L.row(align = 1) + row_foot_L = col_foot_L.row(align = 1) row_foot_L.scale_x = 1 row_foot_L.scale_y = 1 - row_foot_L.alignment = 'CENTER' + row_foot_L.alignment = 'CENTER' # FootRoll L - - col_foot_roll_L = row_foot_L.column(align = 0) + + col_foot_roll_L = row_foot_L.column(align = 0) col_foot_roll_L.scale_x = 0.5 col_foot_roll_L.scale_y = 0.75 - col_foot_roll_L.alignment = 'CENTER' + col_foot_roll_L.alignment = 'CENTER' col_foot_roll_L.operator("operator.hand_roll_ctrl_l", text="", icon = "LOOP_FORWARDS", emboss = 0) # Foot L - - col_foot_L = row_foot_L.column(align = 1) + + col_foot_L = row_foot_L.column(align = 1) col_foot_L.scale_x = 1 col_foot_L.scale_y = 0.75 - col_foot_L.alignment = 'CENTER' + col_foot_L.alignment = 'CENTER' col_foot_L.operator("operator.hand_l", text="Hand L") # Toes L - col_toe_roll_1_L = row_foot_L.row(align = 1) + col_toe_roll_1_L = row_foot_L.row(align = 1) col_toe_roll_1_L.scale_x = 0.75 col_toe_roll_1_L.scale_y = 0.75 - col_toe_roll_1_L.alignment = 'CENTER' + col_toe_roll_1_L.alignment = 'CENTER' col_toe_roll_1_L.operator("operator.fing_roll_1_l", text="", icon = "LOOP_FORWARDS", emboss = 0) - - col_toe_1_L = row_foot_L.row(align = 1) + + col_toe_1_L = row_foot_L.row(align = 1) col_toe_1_L.scale_x = 1 col_toe_1_L.scale_y = 0.75 - col_toe_1_L.alignment = 'CENTER' + col_toe_1_L.alignment = 'CENTER' col_toe_1_L.operator("operator.fing_1_fk_l", text="") - col_toe_roll_2_L = row_foot_L.row(align = 1) + col_toe_roll_2_L = row_foot_L.row(align = 1) col_toe_roll_2_L.scale_x = 0.75 col_toe_roll_2_L.scale_y = 0.75 - col_toe_roll_2_L.alignment = 'CENTER' + col_toe_roll_2_L.alignment = 'CENTER' col_toe_roll_2_L.operator("operator.fing_roll_2_l", text="", icon = "LOOP_FORWARDS", emboss = 0) - col_toe_2_L = row_foot_L.row(align = 1) + col_toe_2_L = row_foot_L.row(align = 1) col_toe_2_L.scale_x = 1 col_toe_2_L.scale_y = 0.75 - col_toe_2_L.alignment = 'CENTER' + col_toe_2_L.alignment = 'CENTER' col_toe_2_L.operator("operator.fing_2_fk_l", text="") - - col_fingers_L = col_hand_main_L.row(align = 1) + + col_fingers_L = col_hand_main_L.row(align = 1) col_fingers_L.scale_x = 0.25 col_fingers_L.scale_y = 1 - col_fingers_L.alignment = 'CENTER' + col_fingers_L.alignment = 'CENTER' #Fingers Option - if arm_bones['properties_arm_L']["toggle_fingers_L"] == 1: - col_thumb_L = col_fingers_L.column(align = 0) + if arm_bones['properties_arm_L']["toggle_fingers_L"] == 1: + col_thumb_L = col_fingers_L.column(align = 0) col_thumb_L.scale_x = 1.5 col_thumb_L.scale_y = 0.5 - col_thumb_L.alignment = 'CENTER' - col_thumb_L.operator("operator.fing_thumb_1_l", text="") - col_thumb_L.operator("operator.fing_thumb_2_l", text="") - col_thumb_L.operator("operator.fing_thumb_3_l", text="") + col_thumb_L.alignment = 'CENTER' + col_thumb_L.operator("operator.fing_thumb_1_l", text="") + col_thumb_L.operator("operator.fing_thumb_2_l", text="") + col_thumb_L.operator("operator.fing_thumb_3_l", text="") - col_thumb_ctrl_L = col_fingers_L.column(align = 0) + col_thumb_ctrl_L = col_fingers_L.column(align = 0) col_thumb_ctrl_L.scale_x = 1.5 col_thumb_ctrl_L.scale_y = 1.5 - col_thumb_ctrl_L.alignment = 'CENTER' - col_thumb_ctrl_L.operator("operator.fing_thumb_ctrl_l", text="") + col_thumb_ctrl_L.alignment = 'CENTER' + col_thumb_ctrl_L.operator("operator.fing_thumb_ctrl_l", text="") - col_index_L = col_fingers_L.column(align = 0) + col_index_L = col_fingers_L.column(align = 0) col_index_L.scale_x = 1.5 col_index_L.scale_y = 0.8 - col_index_L.alignment = 'CENTER' - col_index_L.operator("operator.fing_ind_2_l", text="") - col_index_L.operator("operator.fing_ind_3_l", text="") - col_index_L.operator("operator.fing_ind_4_l", text="") + col_index_L.alignment = 'CENTER' + col_index_L.operator("operator.fing_ind_2_l", text="") + col_index_L.operator("operator.fing_ind_3_l", text="") + col_index_L.operator("operator.fing_ind_4_l", text="") - col_index_ctrl_L = col_fingers_L.column(align = 0) + col_index_ctrl_L = col_fingers_L.column(align = 0) col_index_ctrl_L.scale_x = 1.5 col_index_ctrl_L.scale_y = 2.7 - col_index_ctrl_L.alignment = 'CENTER' - col_index_ctrl_L.operator("operator.fing_ind_ctrl_l", text="") - - col_mid_L = col_fingers_L.column(align = 0) + col_index_ctrl_L.alignment = 'CENTER' + col_index_ctrl_L.operator("operator.fing_ind_ctrl_l", text="") + + col_mid_L = col_fingers_L.column(align = 0) col_mid_L.scale_x = 1.5 col_mid_L.scale_y = 1 - col_mid_L.alignment = 'CENTER' - col_mid_L.operator("operator.fing_mid_2_l", text="") - col_mid_L.operator("operator.fing_mid_3_l", text="") - col_mid_L.operator("operator.fing_mid_4_l", text="") + col_mid_L.alignment = 'CENTER' + col_mid_L.operator("operator.fing_mid_2_l", text="") + col_mid_L.operator("operator.fing_mid_3_l", text="") + col_mid_L.operator("operator.fing_mid_4_l", text="") - col_mid_ctrl_L = col_fingers_L.column(align = 0) + col_mid_ctrl_L = col_fingers_L.column(align = 0) col_mid_ctrl_L.scale_x = 1.5 col_mid_ctrl_L.scale_y = 3 - col_mid_ctrl_L.alignment = 'CENTER' - col_mid_ctrl_L.operator("operator.fing_mid_ctrl_l", text="") + col_mid_ctrl_L.alignment = 'CENTER' + col_mid_ctrl_L.operator("operator.fing_mid_ctrl_l", text="") - col_ring_L = col_fingers_L.column(align = 0) + col_ring_L = col_fingers_L.column(align = 0) col_ring_L.scale_x = 1.5 col_ring_L.scale_y = 0.85 - col_ring_L.alignment = 'CENTER' - col_ring_L.operator("operator.fing_ring_2_l", text="") - col_ring_L.operator("operator.fing_ring_3_l", text="") - col_ring_L.operator("operator.fing_ring_4_l", text="") + col_ring_L.alignment = 'CENTER' + col_ring_L.operator("operator.fing_ring_2_l", text="") + col_ring_L.operator("operator.fing_ring_3_l", text="") + col_ring_L.operator("operator.fing_ring_4_l", text="") - col_ring_ctrl_L = col_fingers_L.column(align = 0) + col_ring_ctrl_L = col_fingers_L.column(align = 0) col_ring_ctrl_L.scale_x = 1.5 col_ring_ctrl_L.scale_y = 2.5 - col_ring_ctrl_L.alignment = 'CENTER' - col_ring_ctrl_L.operator("operator.fing_ring_ctrl_l", text="") - - col_lit_L = col_fingers_L.column(align = 0) + col_ring_ctrl_L.alignment = 'CENTER' + col_ring_ctrl_L.operator("operator.fing_ring_ctrl_l", text="") + + col_lit_L = col_fingers_L.column(align = 0) col_lit_L.scale_x = 1.5 col_lit_L.scale_y = 0.7 - col_lit_L.alignment = 'CENTER' - col_lit_L.operator("operator.fing_lit_2_l", text="") - col_lit_L.operator("operator.fing_lit_3_l", text="") - col_lit_L.operator("operator.fing_lit_4_l", text="") + col_lit_L.alignment = 'CENTER' + col_lit_L.operator("operator.fing_lit_2_l", text="") + col_lit_L.operator("operator.fing_lit_3_l", text="") + col_lit_L.operator("operator.fing_lit_4_l", text="") - col_lit_ctrl_L = col_fingers_L.column(align = 0) - col_lit_ctrl_L.scale_x = 1.5 + col_lit_ctrl_L = col_fingers_L.column(align = 0) + col_lit_ctrl_L.scale_x = 0.5 col_lit_ctrl_L.scale_y = 2 - col_lit_ctrl_L.alignment = 'CENTER' - col_lit_ctrl_L.operator("operator.fing_lit_ctrl_l", text="") + col_lit_ctrl_L.alignment = 'CENTER' + col_lit_ctrl_L.operator("operator.fing_lit_ctrl_l", text="") - col_fing_ik_L = col_hand_main_L.row(align = 0) + col_fing_ik_L = col_hand_main_L.row(align = 0) col_fing_ik_L.scale_x = 0.25 col_fing_ik_L.scale_y = 0.5 - col_fing_ik_L.alignment = 'CENTER' - col_fing_ik_L.operator("operator.fing_thumb_ik_l", text="") - col_fing_ik_L.operator("operator.fing_ind_ik_l", text="") - col_fing_ik_L.operator("operator.fing_mid_ik_l", text="") - col_fing_ik_L.operator("operator.fing_ring_ik_l", text="") - col_fing_ik_L.operator("operator.fing_lit_ik_l", text="") - - col_hand_close_L = col_hand_main_L.column(align = 0) + col_fing_ik_L.alignment = 'CENTER' + col_fing_ik_L.operator("operator.fing_thumb_ik_l", text="") + col_fing_ik_L.operator("operator.fing_ind_ik_l", text="") + col_fing_ik_L.operator("operator.fing_mid_ik_l", text="") + col_fing_ik_L.operator("operator.fing_ring_ik_l", text="") + col_fing_ik_L.operator("operator.fing_lit_ik_l", text="") + + col_hand_close_L = col_hand_main_L.column(align = 0) col_hand_close_L.scale_x = 1 col_hand_close_L.scale_y = 0.5 - col_hand_close_L.alignment = 'CENTER' + col_hand_close_L.alignment = 'CENTER' col_hand_close_L.separator() - col_hand_close_L.operator("operator.hand_close_l", text="") + col_hand_close_L.operator("operator.hand_close_l", text="") else: - if arm['rig_type'] == "Biped": + if arm['rig_type'] == "Biped": col_hand_main_L.scale_x = 0.112 - if arm['rig_type'] == "Quadruped": - row_hand_main_L.scale_x = 1 - col_hand_main_L.scale_x = 0.25 + if arm['rig_type'] == "Quadruped": + row_hand_main_L.scale_x = 1 + col_hand_main_L.scale_x = 0.25 # Hand Sole L - if arm['rig_type'] == "Quadruped": - row_sole_L = col_hand_main_L.row(align = 1) + if arm['rig_type'] == "Quadruped": + row_sole_L = col_hand_main_L.row(align = 1) row_sole_L.scale_x = 2 row_sole_L.scale_y = 1 - row_sole_L.alignment = 'CENTER' + row_sole_L.alignment = 'CENTER' - col_sole_pivot_L = row_sole_L.column(align = 1) + col_sole_pivot_L = row_sole_L.column(align = 1) col_sole_pivot_L.scale_x = 0.25 col_sole_pivot_L.scale_y = 0.75 - col_sole_pivot_L.alignment = 'CENTER' - col_sole_pivot_L.operator("operator.hand_sole_pivot_point_l", text="") + col_sole_pivot_L.alignment = 'CENTER' + col_sole_pivot_L.operator("operator.hand_sole_pivot_point_l", text="") - col_sole_L = row_sole_L.column(align = 1) + col_sole_L = row_sole_L.column(align = 1) col_sole_L.scale_x = 1 col_sole_L.scale_y = 0.75 - col_sole_L.alignment = 'CENTER' - col_sole_L.operator("operator.hand_sole_ctrl_l", text="Hand Sole L") + col_sole_L.alignment = 'CENTER' + col_sole_L.operator("operator.hand_sole_ctrl_l", text="Hand Sole L") #Hand Spread L - if arm['rig_type'] == "Biped": - col_spread_R = row_hand_main_L.column(align = 0) - col_spread_R.scale_x = 0.8 + if arm['rig_type'] == "Biped": + col_spread_R = row_hand_main_L.column(align = 0) + col_spread_R.scale_x = 0.25 col_spread_R.scale_y = 2 - col_spread_R.alignment = 'CENTER' - col_spread_R.operator("operator.fing_spread_l", text="") - - col_bend_L = row_hand_L.row(align = 1) + col_spread_R.alignment = 'CENTER' + col_spread_R.operator("operator.fing_spread_l", text="") + + col_bend_L = row_hand_L.row(align = 1) col_bend_L.scale_x = 0.5 col_bend_L.scale_y = 2 - col_bend_L.alignment = 'CENTER' - col_bend_L.operator("operator.hand_roll_l", text="", icon = "LOOP_BACK", emboss = 0) - - - + col_bend_L.alignment = 'CENTER' + col_bend_L.operator("operator.hand_roll_l", text="", icon = "LOOP_BACK", emboss = 0) + + + # Toes R - row_feet = box_body.row(align = 0) + row_feet = box_body.row(align = 0) row_feet.scale_x = 1 row_feet.scale_y = 1 - row_feet.alignment = 'CENTER' - - col_foot_R = row_feet.column(align = 0) + row_feet.alignment = 'CENTER' + + col_foot_R = row_feet.column(align = 0) col_foot_R.scale_x = 1 col_foot_R.scale_y = 1 - col_foot_R.alignment = 'CENTER' + col_foot_R.alignment = 'CENTER' - row_foot_R = col_foot_R.row(align = 1) + row_foot_R = col_foot_R.row(align = 1) row_foot_R.scale_x = 1 row_foot_R.scale_y = 1 - row_foot_R.alignment = 'CENTER' - - col_toe_1_R = row_foot_R.row(align = 1) - col_toe_1_R.scale_x = 0.8 + row_foot_R.alignment = 'CENTER' + + col_toe_1_R = row_foot_R.row(align = 1) + col_toe_1_R.scale_x = 0.4 col_toe_1_R.scale_y = 0.75 - col_toe_1_R.alignment = 'CENTER' + col_toe_1_R.alignment = 'CENTER' col_toe_1_R.operator("operator.toes_ik_ctrl_r", text="") - col_toe_1_R.operator("operator.toe_2_fk_r", text="") + col_toe_1_R.operator("operator.toe_2_fk_r", text="") - col_toe_roll_2_R = row_foot_R.row(align = 1) - col_toe_roll_2_R.scale_x = 0.8 + col_toe_roll_2_R = row_foot_R.row(align = 1) + col_toe_roll_2_R.scale_x = 0.5 col_toe_roll_2_R.scale_y = 0.75 - col_toe_roll_2_R.alignment = 'CENTER' - col_toe_roll_2_R.operator("operator.toe_roll_2_r", text="", icon = "LOOP_BACK", emboss = 0) + col_toe_roll_2_R.alignment = 'CENTER' + col_toe_roll_2_R.operator("operator.toe_roll_2_r", text="", icon = "LOOP_BACK", emboss = 0) - col_toe_2_R = row_foot_R.row(align = 1) - col_toe_2_R.scale_x = 0.8 + col_toe_2_R = row_foot_R.row(align = 1) + col_toe_2_R.scale_x = 0.4 col_toe_2_R.scale_y = 0.75 - col_toe_2_R.alignment = 'CENTER' - col_toe_2_R.operator("operator.toes_ik_ctrl_mid_r", text="") - col_toe_2_R.operator("operator.toe_1_fk_r", text="") + col_toe_2_R.alignment = 'CENTER' + col_toe_2_R.operator("operator.toes_ik_ctrl_mid_r", text="") + col_toe_2_R.operator("operator.toe_1_fk_r", text="") - col_toe_roll_1_R = row_foot_R.row(align = 1) - col_toe_roll_1_R.scale_x = 0.8 + col_toe_roll_1_R = row_foot_R.row(align = 1) + col_toe_roll_1_R.scale_x = 0.5 col_toe_roll_1_R.scale_y = 0.75 - col_toe_roll_1_R.alignment = 'CENTER' - col_toe_roll_1_R.operator("operator.toe_roll_1_r", text="", icon = "LOOP_BACK", emboss = 0) - + col_toe_roll_1_R.alignment = 'CENTER' + col_toe_roll_1_R.operator("operator.toe_roll_1_r", text="", icon = "LOOP_BACK", emboss = 0) + # Foot R - - col_foot_ctrl_R = row_foot_R.column(align = 1) + + col_foot_ctrl_R = row_foot_R.column(align = 1) col_foot_ctrl_R.scale_x = 1 col_foot_ctrl_R.scale_y = 0.75 - col_foot_ctrl_R.alignment = 'CENTER' + col_foot_ctrl_R.alignment = 'CENTER' col_foot_ctrl_R.operator("operator.foot_r", text="Foot R") - + # FootRoll R - - col_foot_roll_R = row_foot_R.column(align = 0) - col_foot_roll_R.scale_x = 0.8 + + col_foot_roll_R = row_foot_R.column(align = 0) + col_foot_roll_R.scale_x = 0.5 col_foot_roll_R.scale_y = 0.75 - col_foot_roll_R.alignment = 'CENTER' - col_foot_roll_R.operator("operator.foot_roll_ctrl_r", text="", icon = "LOOP_BACK", emboss = 0) + col_foot_roll_R.alignment = 'CENTER' + col_foot_roll_R.operator("operator.foot_roll_ctrl_r", text="", icon = "LOOP_BACK", emboss = 0) # Individual Toes R #Toes Toggle - if arm_bones['properties_leg_R']["toggle_toes_R"] == 1: + if arm_bones['properties_leg_R']["toggle_toes_R"] == 1: # Spread R - row_toes_spread_R = col_foot_R.row(align = 1) + row_toes_spread_R = col_foot_R.row(align = 1) row_toes_spread_R.scale_x = 4.5 row_toes_spread_R.scale_y = 0.35 - row_toes_spread_R.alignment = 'CENTER' - row_toes_spread_R.operator("operator.toes_spread_r", text="") - + row_toes_spread_R.alignment = 'CENTER' + row_toes_spread_R.operator("operator.toes_spread_r", text="") + # Toes R - - row_toes_R = col_foot_R.row(align = 1) + + row_toes_R = col_foot_R.row(align = 1) row_toes_R.scale_x = 0.4 row_toes_R.scale_y = 1 - row_toes_R.alignment = 'CENTER' - - col_lit_ctrl_R = row_toes_R.column(align = 0) + row_toes_R.alignment = 'CENTER' + + col_lit_ctrl_R = row_toes_R.column(align = 0) col_lit_ctrl_R.scale_x = 1.2 col_lit_ctrl_R.scale_y = 2 - col_lit_ctrl_R.alignment = 'CENTER' - col_lit_ctrl_R.operator("operator.toe_lit_ctrl_r", text="") + col_lit_ctrl_R.alignment = 'CENTER' + col_lit_ctrl_R.operator("operator.toe_lit_ctrl_r", text="") - col_lit_R = row_toes_R.column(align = 1) + col_lit_R = row_toes_R.column(align = 1) col_lit_R.scale_x = 1 col_lit_R.scale_y = 1 - col_lit_R.alignment = 'CENTER' - col_lit_R.operator("operator.toe_lit_2_r", text="") - col_lit_R.operator("operator.toe_lit_3_r", text="") + col_lit_R.alignment = 'CENTER' + col_lit_R.operator("operator.toe_lit_2_r", text="") + col_lit_R.operator("operator.toe_lit_3_r", text="") - col_ring_ctrl_R = row_toes_R.column(align = 0) + col_ring_ctrl_R = row_toes_R.column(align = 0) col_ring_ctrl_R.scale_x = 1.2 col_ring_ctrl_R.scale_y = 2.5 - col_ring_ctrl_R.alignment = 'CENTER' - col_ring_ctrl_R.operator("operator.toe_fourth_ctrl_r", text="") - - col_ring_R = row_toes_R.column(align = 1) + col_ring_ctrl_R.alignment = 'CENTER' + col_ring_ctrl_R.operator("operator.toe_fourth_ctrl_r", text="") + + col_ring_R = row_toes_R.column(align = 1) col_ring_R.scale_x = 1 col_ring_R.scale_y = 0.85 - col_ring_R.alignment = 'CENTER' - col_ring_R.operator("operator.toe_fourth_2_r", text="") - col_ring_R.operator("operator.toe_fourth_3_r", text="") - col_ring_R.operator("operator.toe_fourth_4_r", text="") + col_ring_R.alignment = 'CENTER' + col_ring_R.operator("operator.toe_fourth_2_r", text="") + col_ring_R.operator("operator.toe_fourth_3_r", text="") + col_ring_R.operator("operator.toe_fourth_4_r", text="") - col_mid_ctrl_R = row_toes_R.column(align = 0) + col_mid_ctrl_R = row_toes_R.column(align = 0) col_mid_ctrl_R.scale_x = 1.2 col_mid_ctrl_R.scale_y = 3 - col_mid_ctrl_R.alignment = 'CENTER' - col_mid_ctrl_R.operator("operator.toe_mid_ctrl_r", text="") + col_mid_ctrl_R.alignment = 'CENTER' + col_mid_ctrl_R.operator("operator.toe_mid_ctrl_r", text="") - col_mid_R = row_toes_R.column(align = 1) + col_mid_R = row_toes_R.column(align = 1) col_mid_R.scale_x = 1 col_mid_R.scale_y = 1 - col_mid_R.alignment = 'CENTER' - col_mid_R.operator("operator.toe_mid_2_r", text="") - col_mid_R.operator("operator.toe_mid_3_r", text="") - col_mid_R.operator("operator.toe_mid_4_r", text="") + col_mid_R.alignment = 'CENTER' + col_mid_R.operator("operator.toe_mid_2_r", text="") + col_mid_R.operator("operator.toe_mid_3_r", text="") + col_mid_R.operator("operator.toe_mid_4_r", text="") - col_index_ctrl_R = row_toes_R.column(align = 0) + col_index_ctrl_R = row_toes_R.column(align = 0) col_index_ctrl_R.scale_x = 1.2 col_index_ctrl_R.scale_y = 2.7 - col_index_ctrl_R.alignment = 'CENTER' - col_index_ctrl_R.operator("operator.toe_ind_ctrl_r", text="") - - col_index_R = row_toes_R.column(align = 1) + col_index_ctrl_R.alignment = 'CENTER' + col_index_ctrl_R.operator("operator.toe_ind_ctrl_r", text="") + + col_index_R = row_toes_R.column(align = 1) col_index_R.scale_x = 1 col_index_R.scale_y = 0.9 - col_index_R.alignment = 'CENTER' - col_index_R.operator("operator.toe_ind_2_r", text="") - col_index_R.operator("operator.toe_ind_3_r", text="") - col_index_R.operator("operator.toe_ind_4_r", text="") - - col_thumb_ctrl_R = row_toes_R.column(align = 0) + col_index_R.alignment = 'CENTER' + col_index_R.operator("operator.toe_ind_2_r", text="") + col_index_R.operator("operator.toe_ind_3_r", text="") + col_index_R.operator("operator.toe_ind_4_r", text="") + + col_thumb_ctrl_R = row_toes_R.column(align = 0) col_thumb_ctrl_R.scale_x = 1.2 col_thumb_ctrl_R.scale_y = 2 - col_thumb_ctrl_R.alignment = 'CENTER' - col_thumb_ctrl_R.operator("operator.toe_big_ctrl_r", text="") - - col_thumb_R = row_toes_R.column(align = 1) + col_thumb_ctrl_R.alignment = 'CENTER' + col_thumb_ctrl_R.operator("operator.toe_big_ctrl_r", text="") + + col_thumb_R = row_toes_R.column(align = 1) col_thumb_R.scale_x = 1 col_thumb_R.scale_y = 1 - col_thumb_R.alignment = 'CENTER' - col_thumb_R.operator("operator.toe_big_2_r", text="") - col_thumb_R.operator("operator.toe_big_3_r", text="") + col_thumb_R.alignment = 'CENTER' + col_thumb_R.operator("operator.toe_big_2_r", text="") + col_thumb_R.operator("operator.toe_big_3_r", text="") # Toes IK R - row_toes_ik_R = col_foot_R.row(align = 0) + row_toes_ik_R = col_foot_R.row(align = 0) row_toes_ik_R.scale_x = 0.6 row_toes_ik_R.scale_y = 0.5 - row_toes_ik_R.alignment = 'CENTER' - row_toes_ik_R.operator("operator.toe_lit_ik_r", text="") - row_toes_ik_R.operator("operator.toe_fourth_ik_r", text="") - row_toes_ik_R.operator("operator.toe_mid_ik_r", text="") - row_toes_ik_R.operator("operator.toe_ind_ik_r", text="") - row_toes_ik_R.operator("operator.toe_big_ik_r", text="") + row_toes_ik_R.alignment = 'CENTER' + row_toes_ik_R.operator("operator.toe_lit_ik_r", text="") + row_toes_ik_R.operator("operator.toe_fourth_ik_r", text="") + row_toes_ik_R.operator("operator.toe_mid_ik_r", text="") + row_toes_ik_R.operator("operator.toe_ind_ik_r", text="") + row_toes_ik_R.operator("operator.toe_big_ik_r", text="") - #Foot_L - - col_foot_L = row_feet.column(align = 0) + #Foot_L + + col_foot_L = row_feet.column(align = 0) col_foot_L.scale_x = 1 col_foot_L.scale_y = 1 - col_foot_L.alignment = 'CENTER' + col_foot_L.alignment = 'CENTER' - row_foot_L = col_foot_L.row(align = 1) + row_foot_L = col_foot_L.row(align = 1) row_foot_L.scale_x = 1 row_foot_L.scale_y = 1 - row_foot_L.alignment = 'CENTER' + row_foot_L.alignment = 'CENTER' # FootRoll L - - col_foot_roll_L = row_foot_L.column(align = 0) + + col_foot_roll_L = row_foot_L.column(align = 0) col_foot_roll_L.scale_x = 0.5 col_foot_roll_L.scale_y = 0.75 - col_foot_roll_L.alignment = 'CENTER' + col_foot_roll_L.alignment = 'CENTER' col_foot_roll_L.operator("operator.foot_roll_ctrl_l", text="", icon = "LOOP_FORWARDS", emboss = 0) # Foot L - - col_foot_ctrl_L = row_foot_L.column(align = 1) + + col_foot_ctrl_L = row_foot_L.column(align = 1) col_foot_ctrl_L.scale_x = 1 col_foot_ctrl_L.scale_y = 0.75 - col_foot_ctrl_L.alignment = 'CENTER' + col_foot_ctrl_L.alignment = 'CENTER' col_foot_ctrl_L.operator("operator.foot_l", text="Foot R") # Toes L - col_toe_roll_1_L = row_foot_L.row(align = 1) - col_toe_roll_1_L.scale_x = 0.8 + col_toe_roll_1_L = row_foot_L.row(align = 1) + col_toe_roll_1_L.scale_x = 0.5 col_toe_roll_1_L.scale_y = 0.75 - col_toe_roll_1_L.alignment = 'CENTER' + col_toe_roll_1_L.alignment = 'CENTER' col_toe_roll_1_L.operator("operator.toe_roll_1_l", text="", icon = "LOOP_FORWARDS", emboss = 0) - - col_toe_1_L = row_foot_L.row(align = 1) - col_toe_1_L.scale_x = 0.8 - col_toe_1_L.scale_y = 0.75 - col_toe_1_L.alignment = 'CENTER' - col_toe_1_L.operator("operator.toe_1_fk_l", text="") - col_toe_1_L.operator("operator.toes_ik_ctrl_mid_l", text="") - col_toe_roll_2_L = row_foot_L.row(align = 1) - col_toe_roll_2_L.scale_x = 0.8 + col_toe_1_L = row_foot_L.row(align = 1) + col_toe_1_L.scale_x = 0.4 + col_toe_1_L.scale_y = 0.75 + col_toe_1_L.alignment = 'CENTER' + col_toe_1_L.operator("operator.toe_1_fk_l", text="") + col_toe_1_L.operator("operator.toes_ik_ctrl_mid_l", text="") + + col_toe_roll_2_L = row_foot_L.row(align = 1) + col_toe_roll_2_L.scale_x = 0.5 col_toe_roll_2_L.scale_y = 0.75 - col_toe_roll_2_L.alignment = 'CENTER' + col_toe_roll_2_L.alignment = 'CENTER' col_toe_roll_2_L.operator("operator.toe_roll_2_l", text="", icon = "LOOP_FORWARDS", emboss = 0) - col_toe_2_L = row_foot_L.row(align = 1) - col_toe_2_L.scale_x = 0.8 + col_toe_2_L = row_foot_L.row(align = 1) + col_toe_2_L.scale_x = 0.4 col_toe_2_L.scale_y = 0.75 - col_toe_2_L.alignment = 'CENTER' + col_toe_2_L.alignment = 'CENTER' col_toe_2_L.operator("operator.toe_2_fk_l", text="") col_toe_2_L.operator("operator.toes_ik_ctrl_l", text="") # Individual Toes L #Toes Toggle - if arm_bones['properties_leg_L']["toggle_toes_L"] == 1: + if arm_bones['properties_leg_L']["toggle_toes_L"] == 1: # Spread L - row_toes_spread_L = col_foot_L.row(align = 1) + row_toes_spread_L = col_foot_L.row(align = 1) row_toes_spread_L.scale_x = 4.5 row_toes_spread_L.scale_y = 0.35 - row_toes_spread_L.alignment = 'CENTER' - row_toes_spread_L.operator("operator.toes_spread_l", text="") - + row_toes_spread_L.alignment = 'CENTER' + row_toes_spread_L.operator("operator.toes_spread_l", text="") + # Toes L - - row_toes_L = col_foot_L.row(align = 1) + + row_toes_L = col_foot_L.row(align = 1) row_toes_L.scale_x = 0.4 row_toes_L.scale_y = 1 - row_toes_L.alignment = 'CENTER' + row_toes_L.alignment = 'CENTER' - col_thumb_L = row_toes_L.column(align = 1) + col_thumb_L = row_toes_L.column(align = 1) col_thumb_L.scale_x = 1 col_thumb_L.scale_y = 1 - col_thumb_L.alignment = 'CENTER' - col_thumb_L.operator("operator.toe_big_2_l", text="") - col_thumb_L.operator("operator.toe_big_3_l", text="") - - col_thumb_ctrl_L = row_toes_L.column(align = 0) + col_thumb_L.alignment = 'CENTER' + col_thumb_L.operator("operator.toe_big_2_l", text="") + col_thumb_L.operator("operator.toe_big_3_l", text="") + + col_thumb_ctrl_L = row_toes_L.column(align = 0) col_thumb_ctrl_L.scale_x = 1.2 col_thumb_ctrl_L.scale_y = 2 - col_thumb_ctrl_L.alignment = 'CENTER' - col_thumb_ctrl_L.operator("operator.toe_big_ctrl_l", text="") - - col_index_L = row_toes_L.column(align = 1) + col_thumb_ctrl_L.alignment = 'CENTER' + col_thumb_ctrl_L.operator("operator.toe_big_ctrl_l", text="") + + col_index_L = row_toes_L.column(align = 1) col_index_L.scale_x = 1 col_index_L.scale_y = 0.9 - col_index_L.alignment = 'CENTER' - col_index_L.operator("operator.toe_ind_2_l", text="") - col_index_L.operator("operator.toe_ind_3_l", text="") - col_index_L.operator("operator.toe_ind_4_l", text="") - - col_index_ctrl_L = row_toes_L.column(align = 0) + col_index_L.alignment = 'CENTER' + col_index_L.operator("operator.toe_ind_2_l", text="") + col_index_L.operator("operator.toe_ind_3_l", text="") + col_index_L.operator("operator.toe_ind_4_l", text="") + + col_index_ctrl_L = row_toes_L.column(align = 0) col_index_ctrl_L.scale_x = 1.2 col_index_ctrl_L.scale_y = 2.7 - col_index_ctrl_L.alignment = 'CENTER' - col_index_ctrl_L.operator("operator.toe_ind_ctrl_l", text="") - - col_mid_L = row_toes_L.column(align = 1) + col_index_ctrl_L.alignment = 'CENTER' + col_index_ctrl_L.operator("operator.toe_ind_ctrl_l", text="") + + col_mid_L = row_toes_L.column(align = 1) col_mid_L.scale_x = 1 col_mid_L.scale_y = 1 - col_mid_L.alignment = 'CENTER' - col_mid_L.operator("operator.toe_mid_2_l", text="") - col_mid_L.operator("operator.toe_mid_3_l", text="") - col_mid_L.operator("operator.toe_mid_4_l", text="") - - col_mid_ctrl_L = row_toes_L.column(align = 0) + col_mid_L.alignment = 'CENTER' + col_mid_L.operator("operator.toe_mid_2_l", text="") + col_mid_L.operator("operator.toe_mid_3_l", text="") + col_mid_L.operator("operator.toe_mid_4_l", text="") + + col_mid_ctrl_L = row_toes_L.column(align = 0) col_mid_ctrl_L.scale_x = 1.2 col_mid_ctrl_L.scale_y = 3 - col_mid_ctrl_L.alignment = 'CENTER' - col_mid_ctrl_L.operator("operator.toe_mid_ctrl_l", text="") - - col_ring_L = row_toes_L.column(align = 1) + col_mid_ctrl_L.alignment = 'CENTER' + col_mid_ctrl_L.operator("operator.toe_mid_ctrl_l", text="") + + col_ring_L = row_toes_L.column(align = 1) col_ring_L.scale_x = 1 col_ring_L.scale_y = 0.85 - col_ring_L.alignment = 'CENTER' - col_ring_L.operator("operator.toe_fourth_2_l", text="") - col_ring_L.operator("operator.toe_fourth_3_l", text="") - col_ring_L.operator("operator.toe_fourth_4_l", text="") - - col_ring_ctrl_L = row_toes_L.column(align = 0) + col_ring_L.alignment = 'CENTER' + col_ring_L.operator("operator.toe_fourth_2_l", text="") + col_ring_L.operator("operator.toe_fourth_3_l", text="") + col_ring_L.operator("operator.toe_fourth_4_l", text="") + + col_ring_ctrl_L = row_toes_L.column(align = 0) col_ring_ctrl_L.scale_x = 1.2 col_ring_ctrl_L.scale_y = 2.5 - col_ring_ctrl_L.alignment = 'CENTER' - col_ring_ctrl_L.operator("operator.toe_fourth_ctrl_l", text="") - - col_lit_L = row_toes_L.column(align = 1) + col_ring_ctrl_L.alignment = 'CENTER' + col_ring_ctrl_L.operator("operator.toe_fourth_ctrl_l", text="") + + col_lit_L = row_toes_L.column(align = 1) col_lit_L.scale_x = 1 col_lit_L.scale_y = 1 - col_lit_L.alignment = 'CENTER' - col_lit_L.operator("operator.toe_lit_2_l", text="") - col_lit_L.operator("operator.toe_lit_3_l", text="") - - col_lit_ctrl_L = row_toes_L.column(align = 0) + col_lit_L.alignment = 'CENTER' + col_lit_L.operator("operator.toe_lit_2_l", text="") + col_lit_L.operator("operator.toe_lit_3_l", text="") + + col_lit_ctrl_L = row_toes_L.column(align = 0) col_lit_ctrl_L.scale_x = 1.2 col_lit_ctrl_L.scale_y = 2 - col_lit_ctrl_L.alignment = 'CENTER' - col_lit_ctrl_L.operator("operator.toe_lit_ctrl_l", text="") + col_lit_ctrl_L.alignment = 'CENTER' + col_lit_ctrl_L.operator("operator.toe_lit_ctrl_l", text="") # Toes IK R - row_toes_ik_L = col_foot_L.row(align = 0) + row_toes_ik_L = col_foot_L.row(align = 0) row_toes_ik_L.scale_x = 0.6 row_toes_ik_L.scale_y = 0.5 - row_toes_ik_L.alignment = 'CENTER' - row_toes_ik_L.operator("operator.toe_big_ik_l", text="") - row_toes_ik_L.operator("operator.toe_ind_ik_l", text="") - row_toes_ik_L.operator("operator.toe_mid_ik_l", text="") - row_toes_ik_L.operator("operator.toe_fourth_ik_l", text="") - row_toes_ik_L.operator("operator.toe_lit_ik_l", text="") - + row_toes_ik_L.alignment = 'CENTER' + row_toes_ik_L.operator("operator.toe_big_ik_l", text="") + row_toes_ik_L.operator("operator.toe_ind_ik_l", text="") + row_toes_ik_L.operator("operator.toe_mid_ik_l", text="") + row_toes_ik_L.operator("operator.toe_fourth_ik_l", text="") + row_toes_ik_L.operator("operator.toe_lit_ik_l", text="") + # Sole R - row_sole = box_body.row(align = 0) + row_sole = box_body.row(align = 0) row_sole.scale_x = 1 row_sole.scale_y = 1 - row_sole.alignment = 'CENTER' - - row_sole_R = row_sole.row(align = 1) + row_sole.alignment = 'CENTER' + + row_sole_R = row_sole.row(align = 1) row_sole_R.scale_x = 2 row_sole_R.scale_y = 1 - row_sole_R.alignment = 'CENTER' + row_sole_R.alignment = 'CENTER' - col_sole_R = row_sole_R.column(align = 1) + col_sole_R = row_sole_R.column(align = 1) col_sole_R.scale_x = 1 col_sole_R.scale_y = 0.75 - col_sole_R.alignment = 'CENTER' - col_sole_R.operator("operator.sole_ctrl_r", text="Sole R") - - col_sole_pivot_R = row_sole_R.column(align = 1) - col_sole_pivot_R.scale_x = 0.5 + col_sole_R.alignment = 'CENTER' + col_sole_R.operator("operator.sole_ctrl_r", text="Sole R") + + col_sole_pivot_R = row_sole_R.column(align = 1) + col_sole_pivot_R.scale_x = 0.25 col_sole_pivot_R.scale_y = 0.75 - col_sole_pivot_R.alignment = 'CENTER' - col_sole_pivot_R.operator("operator.sole_pivot_point_r", text="") - + col_sole_pivot_R.alignment = 'CENTER' + col_sole_pivot_R.operator("operator.sole_pivot_point_r", text="") + # Sole L - - row_sole_L = row_sole.row(align = 1) + + row_sole_L = row_sole.row(align = 1) row_sole_L.scale_x = 2 row_sole_L.scale_y = 1 - row_sole_L.alignment = 'CENTER' + row_sole_L.alignment = 'CENTER' - col_sole_pivot_L = row_sole_L.column(align = 1) - col_sole_pivot_L.scale_x = 0.5 + col_sole_pivot_L = row_sole_L.column(align = 1) + col_sole_pivot_L.scale_x = 0.25 col_sole_pivot_L.scale_y = 0.75 - col_sole_pivot_L.alignment = 'CENTER' - col_sole_pivot_L.operator("operator.sole_pivot_point_l", text="") + col_sole_pivot_L.alignment = 'CENTER' + col_sole_pivot_L.operator("operator.sole_pivot_point_l", text="") - col_sole_L = row_sole_L.column(align = 1) + col_sole_L = row_sole_L.column(align = 1) col_sole_L.scale_x = 1 col_sole_L.scale_y = 0.75 - col_sole_L.alignment = 'CENTER' - col_sole_L.operator("operator.sole_ctrl_l", text="Sole R") - + col_sole_L.alignment = 'CENTER' + col_sole_L.operator("operator.sole_ctrl_l", text="Sole R") + # Master - - row_master = box_body.row(align = 1) + + row_master = box_body.row(align = 1) row_master.scale_x = 5 row_master.scale_y = 1 - row_master.alignment = 'CENTER' + row_master.alignment = 'CENTER' row_master.separator - col_master_pivot = row_master.column(align = 1) + col_master_pivot = row_master.column(align = 1) col_master_pivot.scale_x = 1 col_master_pivot.scale_y = 0.75 - col_master_pivot.alignment = 'CENTER' - col_master_pivot.separator() - col_master_pivot.operator("operator.master", text="Master") - col_master_pivot.separator() - col_master_pivot.separator() + col_master_pivot.alignment = 'CENTER' + col_master_pivot.separator() + col_master_pivot.operator("operator.master", text="Master") + col_master_pivot.separator() + col_master_pivot.separator() - col_master = row_master.column(align = 1) + col_master = row_master.column(align = 1) col_master.scale_x = 0.1 col_master.scale_y = 0.75 - col_master.alignment = 'CENTER' - col_master.separator() - col_master.operator("operator.master_pivot_point", text="") - col_master.separator() - col_master.separator() + col_master.alignment = 'CENTER' + col_master.separator() + col_master.operator("operator.master_pivot_point", text="") + col_master.separator() + col_master.separator() # View - row_view_main = box_body.row(align = 0) + row_view_main = box_body.row(align = 0) row_view_main.scale_x = 1 row_view_main.scale_y = 1 - row_view_main.alignment = 'CENTER' - - row_view = row_view_main.row(align = 0) + row_view_main.alignment = 'CENTER' + + row_view = row_view_main.row(align = 0) row_view.scale_x = 1 row_view.scale_y = 1 - row_view.alignment = 'CENTER' + row_view.alignment = 'CENTER' row_view.operator("operator.zoom", text="Zoom to Selected", icon='ZOOM_IN') - row_model_res = row_view_main.row(align = 0) + row_model_res = row_view_main.row(align = 0) row_model_res.scale_x = 0.7 row_model_res.scale_y = 1 - row_model_res.alignment = 'CENTER' - row_model_res.prop(arm_bones['properties'], '["model_res"]', text="Model_Res", toggle=True) + row_model_res.alignment = 'CENTER' + row_model_res.prop(arm_bones['properties'], '["model_res"]', "Model_Res", toggle=True) - if props.gui_picker_body_props: - + if props.gui_picker_body_props: + # Sliders_R - - col_sliders_R = box_R.column() + + col_sliders_R = box_R.column() col_sliders_R.scale_x = 1 col_sliders_R.scale_y = 1 - col_sliders_R.alignment = 'CENTER' + col_sliders_R.alignment = 'CENTER' col_space = col_sliders_R.column() col_space.scale_x = 2.5 col_space.scale_y = 9 - col_space.alignment = 'CENTER' - col_space.separator() - + col_space.alignment = 'CENTER' + col_space.separator() + col_head_props = col_sliders_R.column() col_head_props.scale_x = 2.5 col_head_props.scale_y = 0.75 - col_head_props.alignment = 'CENTER' - col_head_props.label(text="HEAD") - col_head_props.prop(arm_bones['properties_head'], 'ik_head', text="{}".format("FK" if arm_bones['properties_head']['ik_head'] == 1 else "IK"), toggle=True, icon_only = 1, emboss = 1) - col_head_props.prop(arm_bones['properties_head'], 'hinge_head', text="Hinge", toggle=True, icon_only = 1, emboss = 1) - col_head_props.prop(arm_bones['properties_head'], 'toon_head', text="Str IK", toggle=True, icon_only = 1, emboss = 1) - + col_head_props.alignment = 'CENTER' + col_head_props.label("HEAD") + col_head_props.prop(arm_bones['properties_head'], 'ik_head', text="{}".format("FK" if arm_bones['properties_head']['ik_head'] == 1 else "IK"), toggle=True, icon_only = 1, emboss = 1) + col_head_props.prop(arm_bones['properties_head'], 'hinge_head', "Hinge", toggle=True, icon_only = 1, emboss = 1) + col_head_props.prop(arm_bones['properties_head'], 'toon_head', "Str IK", toggle=True, icon_only = 1, emboss = 1) + col_neck_props = col_sliders_R.column() col_neck_props.scale_x = 2.5 col_neck_props.scale_y = 0.75 - col_neck_props.alignment = 'CENTER' - col_neck_props.label(text="NECK") - col_neck_props.prop(arm_bones['properties_head'], 'hinge_neck', text="Hinge", toggle=True, icon_only = 1, emboss = 1) - + col_neck_props.alignment = 'CENTER' + col_neck_props.label("NECK") + col_neck_props.prop(arm_bones['properties_head'], 'hinge_neck', "Hinge", toggle=True, icon_only = 1, emboss = 1) + col_space = col_sliders_R.column() col_space.scale_x = 2.5 col_space.scale_y = 9 - col_space.alignment = 'CENTER' - col_space.separator() - + col_space.alignment = 'CENTER' + col_space.separator() + col_arm_R_props = col_sliders_R.column() col_arm_R_props.scale_x = 2.5 col_arm_R_props.scale_y = 0.75 - col_arm_R_props.alignment = 'CENTER' - col_arm_R_props.label(text="ARM_R") - col_arm_R_props.prop(arm_bones['properties_arm_R'], 'ik_arm_R', text="{}".format("FK" if arm_bones['properties_arm_R']['ik_arm_R'] == 1 else "IK"), toggle=True, icon_only = 1, emboss = 1) - col_arm_R_props.prop(arm_bones['properties_arm_R'], 'hinge_arm_R', text="Hinge", toggle=True, icon_only = 1, emboss = 1) - col_arm_R_props.prop(arm_bones['properties_arm_R'], 'toon_arm_R', text="Str IK", toggle=True, icon_only = 1, emboss = 1) + col_arm_R_props.alignment = 'CENTER' + col_arm_R_props.label("ARM_R") + col_arm_R_props.prop(arm_bones['properties_arm_R'], 'ik_arm_R', text="{}".format("FK" if arm_bones['properties_arm_R']['ik_arm_R'] == 1 else "IK"), toggle=True, icon_only = 1, emboss = 1) + col_arm_R_props.prop(arm_bones['properties_arm_R'], 'hinge_arm_R', "Hinge", toggle=True, icon_only = 1, emboss = 1) + col_arm_R_props.prop(arm_bones['properties_arm_R'], 'toon_arm_R', "Str IK", toggle=True, icon_only = 1, emboss = 1) col_space = col_sliders_R.column() col_space.scale_x = 2.5 col_space.scale_y = 8 - col_space.alignment = 'CENTER' - col_space.separator() + col_space.alignment = 'CENTER' + col_space.separator() col_hand_R_props = col_sliders_R.column() col_hand_R_props.scale_x = 2.5 col_hand_R_props.scale_y = 0.75 - col_hand_R_props.alignment = 'CENTER' - col_hand_R_props.label(text="HAND_R") - col_hand_R_props.prop(arm_bones['properties_arm_R'], 'hinge_hand_R', text="Hinge", toggle=True, icon_only = 1, emboss = 1) + col_hand_R_props.alignment = 'CENTER' + col_hand_R_props.label("HAND_R") + col_hand_R_props.prop(arm_bones['properties_arm_R'], 'hinge_hand_R', "Hinge", toggle=True, icon_only = 1, emboss = 1) col_space = col_sliders_R.column() col_space.scale_x = 2.5 col_space.scale_y = 4 - col_space.alignment = 'CENTER' - col_space.separator() + col_space.alignment = 'CENTER' + col_space.separator() col_fing_R_props = col_sliders_R.column() col_fing_R_props.scale_x = 2.5 col_fing_R_props.scale_y = 0.75 - col_fing_R_props.alignment = 'CENTER' - col_fing_R_props.label(text="FING_R") - col_fing_R_props.prop(arm_bones['properties_arm_R'], 'ik_fing_all_R', text="{}".format("IK" if arm_bones['properties_arm_R']['ik_fing_all_R'] == 1 else "FK"), toggle=True, icon_only = 1, emboss = 1) - col_fing_R_props.prop(arm_bones['properties_arm_R'], 'hinge_fing_all_R', text="Hinge", toggle=True, icon_only = 1, emboss = 1) + col_fing_R_props.alignment = 'CENTER' + col_fing_R_props.label("FING_R") + col_fing_R_props.prop(arm_bones['properties_arm_R'], 'ik_fing_all_R', text="{}".format("IK" if arm_bones['properties_arm_R']['ik_fing_all_R'] == 1 else "FK"), toggle=True, icon_only = 1, emboss = 1) + col_fing_R_props.prop(arm_bones['properties_arm_R'], 'hinge_fing_all_R', "Hinge", toggle=True, icon_only = 1, emboss = 1) col_space = col_sliders_R.column() col_space.scale_x = 2.5 col_space.scale_y = 4 - col_space.alignment = 'CENTER' - col_space.separator() + col_space.alignment = 'CENTER' + col_space.separator() col_leg_R_props = col_sliders_R.column() col_leg_R_props.scale_x = 2.5 col_leg_R_props.scale_y = 0.75 - col_leg_R_props.alignment = 'CENTER' - col_leg_R_props.label(text="LEG_R") - col_leg_R_props.prop(arm_bones['properties_leg_R'], 'ik_leg_R', text="{}".format("FK" if arm_bones['properties_leg_R']['ik_leg_R'] == 1 else "IK"), toggle=True, icon_only = 1, emboss = 1) - col_leg_R_props.prop(arm_bones['properties_leg_R'], 'hinge_leg_R', text="Hinge", toggle=True, icon_only = 1, emboss = 1) - col_leg_R_props.prop(arm_bones['properties_leg_R'], 'toon_leg_R', text="Str IK", toggle=True, icon_only = 1, emboss = 1) - + col_leg_R_props.alignment = 'CENTER' + col_leg_R_props.label("LEG_R") + col_leg_R_props.prop(arm_bones['properties_leg_R'], 'ik_leg_R', text="{}".format("FK" if arm_bones['properties_leg_R']['ik_leg_R'] == 1 else "IK"), toggle=True, icon_only = 1, emboss = 1) + col_leg_R_props.prop(arm_bones['properties_leg_R'], 'hinge_leg_R', "Hinge", toggle=True, icon_only = 1, emboss = 1) + col_leg_R_props.prop(arm_bones['properties_leg_R'], 'toon_leg_R', "Str IK", toggle=True, icon_only = 1, emboss = 1) + col_space = col_sliders_R.column() col_space.scale_x = 2.5 col_space.scale_y = 3 - col_space.alignment = 'CENTER' - col_space.separator() + col_space.alignment = 'CENTER' + col_space.separator() col_foot_R_props = col_sliders_R.column() col_foot_R_props.scale_x = 2.5 col_foot_R_props.scale_y = 0.75 - col_foot_R_props.alignment = 'CENTER' - col_foot_R_props.label(text="TOES_R") - col_foot_R_props.prop(arm_bones['properties_leg_R'], 'ik_toes_all_R', text="{}".format("FK" if arm_bones['properties_leg_R']['ik_toes_all_R'] == 1 else "IK"), toggle=True, icon_only = 1, emboss = 1) - col_foot_R_props.prop(arm_bones['properties_leg_R'], 'hinge_toes_all_R', text="Hinge", toggle=True, icon_only = 1, emboss = 1) + col_foot_R_props.alignment = 'CENTER' + col_foot_R_props.label("TOES_R") + col_foot_R_props.prop(arm_bones['properties_leg_R'], 'ik_toes_all_R', text="{}".format("FK" if arm_bones['properties_leg_R']['ik_toes_all_R'] == 1 else "IK"), toggle=True, icon_only = 1, emboss = 1) + col_foot_R_props.prop(arm_bones['properties_leg_R'], 'hinge_toes_all_R', "Hinge", toggle=True, icon_only = 1, emboss = 1) # Sliders_L - - col_sliders_L = box_L.column() + + col_sliders_L = box_L.column() col_sliders_L.scale_x = 1 col_sliders_L.scale_y = 1 - col_sliders_L.alignment = 'CENTER' + col_sliders_L.alignment = 'CENTER' col_space = col_sliders_L.column() col_space.scale_x = 2.5 col_space.scale_y = 36 - col_space.alignment = 'CENTER' + col_space.alignment = 'CENTER' col_space.separator() - + col_arm_L_props = col_sliders_L.column() col_arm_L_props.scale_x = 2.5 col_arm_L_props.scale_y = 0.75 - col_arm_L_props.alignment = 'CENTER' - col_arm_L_props.label(text="ARM_L") - col_arm_L_props.prop(arm_bones['properties_arm_L'], 'ik_arm_L', text="{}".format("FK" if arm_bones['properties_arm_L']['ik_arm_L'] == 1 else "IK"), toggle=True, icon_only = 1, emboss = 1) - col_arm_L_props.prop(arm_bones['properties_arm_L'], 'hinge_arm_L', text="Hinge", toggle=True, icon_only = 1, emboss = 1) - col_arm_L_props.prop(arm_bones['properties_arm_L'], 'toon_arm_L', text="Str IK", toggle=True, icon_only = 1, emboss = 1) + col_arm_L_props.alignment = 'CENTER' + col_arm_L_props.label("ARM_L") + col_arm_L_props.prop(arm_bones['properties_arm_L'], 'ik_arm_L', text="{}".format("FK" if arm_bones['properties_arm_L']['ik_arm_L'] == 1 else "IK"), toggle=True, icon_only = 1, emboss = 1) + col_arm_L_props.prop(arm_bones['properties_arm_L'], 'hinge_arm_L', "Hinge", toggle=True, icon_only = 1, emboss = 1) + col_arm_L_props.prop(arm_bones['properties_arm_L'], 'toon_arm_L', "Str IK", toggle=True, icon_only = 1, emboss = 1) col_space = col_sliders_L.column() col_space.scale_x = 2.5 col_space.scale_y = 8 - col_space.alignment = 'CENTER' - col_space.separator() + col_space.alignment = 'CENTER' + col_space.separator() col_hand_L_props = col_sliders_L.column() col_hand_L_props.scale_x = 2.5 col_hand_L_props.scale_y = 0.75 - col_hand_L_props.alignment = 'CENTER' - col_hand_L_props.label(text="HAND_L") - col_hand_L_props.prop(arm_bones['properties_arm_L'], 'hinge_hand_L', text="Hinge", toggle=True, icon_only = 1, emboss = 1) + col_hand_L_props.alignment = 'CENTER' + col_hand_L_props.label("HAND_L") + col_hand_L_props.prop(arm_bones['properties_arm_L'], 'hinge_hand_L', "Hinge", toggle=True, icon_only = 1, emboss = 1) col_space = col_sliders_L.column() col_space.scale_x = 2.5 col_space.scale_y = 4 - col_space.alignment = 'CENTER' - col_space.separator() + col_space.alignment = 'CENTER' + col_space.separator() col_fing_L_props = col_sliders_L.column() col_fing_L_props.scale_x = 2.5 col_fing_L_props.scale_y = 0.75 - col_fing_L_props.alignment = 'CENTER' - col_fing_L_props.label(text="FING_L") - col_fing_L_props.prop(arm_bones['properties_arm_L'], 'ik_fing_all_L', text="{}".format("IK" if arm_bones['properties_arm_L']['ik_fing_all_L'] == 1 else "FK"), toggle=True, icon_only = 1, emboss = 1) - col_fing_L_props.prop(arm_bones['properties_arm_L'], 'hinge_fing_all_L', text="Hinge", toggle=True, icon_only = 1, emboss = 1) + col_fing_L_props.alignment = 'CENTER' + col_fing_L_props.label("FING_L") + col_fing_L_props.prop(arm_bones['properties_arm_L'], 'ik_fing_all_L', text="{}".format("IK" if arm_bones['properties_arm_L']['ik_fing_all_L'] == 1 else "FK"), toggle=True, icon_only = 1, emboss = 1) + col_fing_L_props.prop(arm_bones['properties_arm_L'], 'hinge_fing_all_L', "Hinge", toggle=True, icon_only = 1, emboss = 1) col_space = col_sliders_L.column() col_space.scale_x = 2.5 col_space.scale_y = 4 - col_space.alignment = 'CENTER' - col_space.separator() + col_space.alignment = 'CENTER' + col_space.separator() col_leg_L_props = col_sliders_L.column() col_leg_L_props.scale_x = 2.5 col_leg_L_props.scale_y = 0.75 - col_leg_L_props.alignment = 'CENTER' - col_leg_L_props.label(text="LEG_L") - col_leg_L_props.prop(arm_bones['properties_leg_L'], 'ik_leg_L', text="{}".format("FK" if arm_bones['properties_leg_L']['ik_leg_L'] == 1 else "IK"), toggle=True, icon_only = 1, emboss = 1) - col_leg_L_props.prop(arm_bones['properties_leg_L'], 'hinge_leg_L', text="Hinge", toggle=True, icon_only = 1, emboss = 1) - col_leg_L_props.prop(arm_bones['properties_leg_L'], 'toon_leg_L', text="Str IK", toggle=True, icon_only = 1, emboss = 1) - + col_leg_L_props.alignment = 'CENTER' + col_leg_L_props.label("LEG_L") + col_leg_L_props.prop(arm_bones['properties_leg_L'], 'ik_leg_L', text="{}".format("FK" if arm_bones['properties_leg_L']['ik_leg_L'] == 1 else "IK"), toggle=True, icon_only = 1, emboss = 1) + col_leg_L_props.prop(arm_bones['properties_leg_L'], 'hinge_leg_L', "Hinge", toggle=True, icon_only = 1, emboss = 1) + col_leg_L_props.prop(arm_bones['properties_leg_L'], 'toon_leg_L', "Str IK", toggle=True, icon_only = 1, emboss = 1) + col_space = col_sliders_L.column() col_space.scale_x = 2.5 col_space.scale_y = 3 - col_space.alignment = 'CENTER' - col_space.separator() + col_space.alignment = 'CENTER' + col_space.separator() col_foot_L_props = col_sliders_L.column() col_foot_L_props.scale_x = 2.5 col_foot_L_props.scale_y = 0.75 - col_foot_L_props.alignment = 'CENTER' - col_foot_L_props.label(text="TOES_L") - col_foot_L_props.prop(arm_bones['properties_leg_L'], 'ik_toes_all_L', text="{}".format("FK" if arm_bones['properties_leg_L']['ik_toes_all_L'] == 1 else "IK"), toggle=True, icon_only = 1, emboss = 1) - col_foot_L_props.prop(arm_bones['properties_leg_L'], 'hinge_toes_all_L', text="Hinge", toggle=True, icon_only = 1, emboss = 1) + col_foot_L_props.alignment = 'CENTER' + col_foot_L_props.label("TOES_L") + col_foot_L_props.prop(arm_bones['properties_leg_L'], 'ik_toes_all_L', text="{}".format("FK" if arm_bones['properties_leg_L']['ik_toes_all_L'] == 1 else "IK"), toggle=True, icon_only = 1, emboss = 1) + col_foot_L_props.prop(arm_bones['properties_leg_L'], 'hinge_toes_all_L', "Hinge", toggle=True, icon_only = 1, emboss = 1) col_snap = box.column() col_snap.alignment ='LEFT' - col_snap.prop(props, "gui_snap", text="IK/FK SNAPPING") - + col_snap.prop(props, "gui_snap", text="IK/FK SNAPPING") + if props.gui_snap: - col_snap.prop(props, "gui_snap_all", text="ALL") - + col_snap.prop(props, "gui_snap_all", text="ALL") + if is_selected(head) or props.gui_snap_all: - box = col_snap.column() - box.label(text="SNAP HEAD") + box = col_snap.column() + box.label("SNAP HEAD") col = box.column() - row = col.row() - col2 = row.column() - row.operator("head_snap.fk_ik", text="FK >> IK", icon="NONE") - col2.operator("head_snap.ik_fk", text="IK >> FK", icon="NONE") - - if is_selected(torso) or props.gui_snap_all: - box = col_snap.column() - box.label(text="SNAP TORSO") + row = col.row() + col2 = row.column() + row.operator("head_snap.fk_ik", text="FK >> IK", icon="NONE") + col2.operator("head_snap.ik_fk", text="IK >> FK", icon="NONE") + + if is_selected(torso) or props.gui_snap_all: + box = col_snap.column() + box.label("SNAP TORSO") col = box.column() - row = col.row() - col2 = row.column() - row.operator("torso_snap.fk_ik", text="FK >> IK", icon="NONE") - col2.operator("torso_snap.ik_fk", text="IK >> FK", icon="NONE") - row = col.row() - col2 = row.column() - row.operator("torso_snap.up_inv", text="UP >> INV", icon="NONE") - col2.operator("torso_snap.inv_up", text="INV >> UP", icon="NONE") - - if is_selected(arm_l + hand_l) or props.gui_snap_all: - box = col_snap.column() - box.label(text="SNAP ARM LEFT") + row = col.row() + col2 = row.column() + row.operator("torso_snap.fk_ik", text="FK >> IK", icon="NONE") + col2.operator("torso_snap.ik_fk", text="IK >> FK", icon="NONE") + row = col.row() + col2 = row.column() + row.operator("torso_snap.up_inv", text="UP >> INV", icon="NONE") + col2.operator("torso_snap.inv_up", text="INV >> UP", icon="NONE") + + if is_selected(arm_l + hand_l) or props.gui_snap_all: + box = col_snap.column() + box.label("SNAP ARM LEFT") col = col_snap.column() - row = col.row() - col2 = row.column() - row.operator("arm_l_snap.fk_ik", text="FK >> IK", icon="NONE") - col2.operator("arm_l_snap.ik_fk", text="IK >> FK", icon="NONE") - - if is_selected(arm_r + hand_r) or props.gui_snap_all: - box = col_snap.column() - box.label(text="SNAP ARM RIGHT") + row = col.row() + col2 = row.column() + row.operator("arm_l_snap.fk_ik", text="FK >> IK", icon="NONE") + col2.operator("arm_l_snap.ik_fk", text="IK >> FK", icon="NONE") + + if is_selected(arm_r + hand_r) or props.gui_snap_all: + box = col_snap.column() + box.label("SNAP ARM RIGHT") col = col_snap.column() - row = col.row() - col2 = row.column() - row.operator("arm_r_snap.fk_ik", text="FK >> IK", icon="NONE") - col2.operator("arm_r_snap.ik_fk", text="IK >> FK", icon="NONE") - - if is_selected(leg_l + foot_l) or props.gui_snap_all: - box = col_snap.column() - box.label(text="SNAP LEG LEFT") + row = col.row() + col2 = row.column() + row.operator("arm_r_snap.fk_ik", text="FK >> IK", icon="NONE") + col2.operator("arm_r_snap.ik_fk", text="IK >> FK", icon="NONE") + + if is_selected(leg_l + foot_l) or props.gui_snap_all: + box = col_snap.column() + box.label("SNAP LEG LEFT") col = col_snap.column() - row = col.row() - col2 = row.column() - row.operator("leg_l_snap.fk_ik", text="FK >> IK", icon="NONE") - col2.operator("leg_l_snap.ik_fk", text="IK >> FK", icon="NONE") - - if is_selected(leg_r + foot_r) or props.gui_snap_all: - box = col_snap.column() - box.label(text="SNAP LEG RIGHT") + row = col.row() + col2 = row.column() + row.operator("leg_l_snap.fk_ik", text="FK >> IK", icon="NONE") + col2.operator("leg_l_snap.ik_fk", text="IK >> FK", icon="NONE") + + if is_selected(leg_r + foot_r) or props.gui_snap_all: + box = col_snap.column() + box.label("SNAP LEG RIGHT") col = col_snap.column() - row = col.row() - col2 = row.column() - row.operator("leg_r_snap.fk_ik", text="FK >> IK", icon="NONE") - col2.operator("leg_r_snap.ik_fk", text="IK >> FK", icon="NONE") - - col_snap.separator() - col_snap.separator() - # collapsed box + row = col.row() + col2 = row.column() + row.operator("leg_r_snap.fk_ik", text="FK >> IK", icon="NONE") + col2.operator("leg_r_snap.ik_fk", text="IK >> FK", icon="NONE") + + col_snap.separator() + col_snap.separator() + # collapsed box elif "gui_picker_body" in arm: row.operator("gui.blenrig_5_tabs", icon="MOD_ARMATURE", emboss = 1).tab = "gui_picker_body" row.label(text="BLENRIG BODY PICKER") - + ################ FACE ####################################### - if bpy.context.mode == "POSE": - - if "gui_picker_face" in arm: + if bpy.context.mode == "POSE": + + if "gui_picker_face" in arm: box = layout.column() col = box.column() - row = col.row() - # expanded box + row = col.row() + # expanded box if "gui_picker_face" in arm and arm["gui_picker_face"]: row.operator("gui.blenrig_5_tabs", icon="MONKEY", emboss = 1).tab = "gui_picker_face" row.label(text="BLENRIG FACE PICKER") box.separator() - + #Columns face_row = box.row(align = 1) face_row.scale_x = 1 face_row.scale_y = 1 - face_row.alignment = 'CENTER' - - #Right Column + face_row.alignment = 'CENTER' + + #Right Column right_col = face_row.column(align = 1) right_col.scale_x = 0.5 right_col.scale_y = 1 - right_col.alignment = 'CENTER' - + right_col.alignment = 'CENTER' + col_space = right_col.column() - col_space.scale_y = 15 - col_space.separator() + col_space.scale_y = 15 + col_space.separator() # Ear Up R - ear_up_R = right_col.column() + ear_up_R = right_col.column() ear_up_R.scale_x = 1 ear_up_R.scale_y = 0.5 - ear_up_R.alignment = 'CENTER' - ear_up_R.operator("operator.ear_up_r", text="") - + ear_up_R.alignment = 'CENTER' + ear_up_R.operator("operator.ear_up_r", text="") + # Ear R - ear_R = right_col.column() + ear_R = right_col.column() ear_R.scale_x = 1 ear_R.scale_y = 2 - ear_R.alignment = 'CENTER' - ear_R.operator("operator.ear_r", text="") - + ear_R.alignment = 'CENTER' + ear_R.operator("operator.ear_r", text="") + # Ear Low R - ear_low_R = right_col.column() + ear_low_R = right_col.column() ear_low_R.scale_x = 1 ear_low_R.scale_y = 0.5 - ear_low_R.alignment = 'CENTER' - ear_low_R.operator("operator.ear_low_r", text="") - + ear_low_R.alignment = 'CENTER' + ear_low_R.operator("operator.ear_low_r", text="") + # Main Face box_face = face_row.column(align = 1) - box_face.alignment = 'CENTER' - + box_face.alignment = 'CENTER' + # Head_Stretch - head_toon = box_face.row(align=1) + head_toon = box_face.row(align=1) head_toon.scale_x = 4 head_toon.scale_y = 0.5 - head_toon.alignment = 'CENTER' - head_toon.operator("operator.head_stretch", text="") - + head_toon.alignment = 'CENTER' + head_toon.operator("operator.head_stretch", text="") + # Head Top Ctrl - head_toon = box_face.row() + head_toon = box_face.row() head_toon.scale_x = 5 head_toon.scale_y = 0.5 - head_toon.alignment = 'CENTER' - head_toon.operator("operator.head_top_ctrl", text="") + head_toon.alignment = 'CENTER' + head_toon.operator("operator.head_top_ctrl", text="") box_face.separator() - box_face.separator() - - # Brows - brows = box_face.row() + box_face.separator() + + # Brows + brows = box_face.row() brows.scale_x = 0.75 brows.scale_y = 0.75 - brows.alignment = 'CENTER' - - brow_R = brows.column() + brows.alignment = 'CENTER' + + brow_R = brows.column() brow_R.scale_x = 1.2 brow_R.scale_y = 0.75 - brow_R.alignment = 'CENTER' - - brow_mid = brows.column() + brow_R.alignment = 'CENTER' + + brow_mid = brows.column() brow_mid.scale_x = 0.5 brow_mid.scale_y = 0.75 - brow_mid.alignment = 'CENTER' - - brow_L = brows.column() + brow_mid.alignment = 'CENTER' + + brow_L = brows.column() brow_L.scale_x = 1.2 brow_L.scale_y = 0.75 - brow_L.alignment = 'CENTER' - + brow_L.alignment = 'CENTER' + # Brow Ctrls R - brow_ctrls_R = brow_R.row(align=1) + brow_ctrls_R = brow_R.row(align=1) brow_ctrls_R.scale_x = 1 brow_ctrls_R.scale_y = 0.5 - brow_ctrls_R.alignment = 'CENTER' - brow_ctrls_R.operator("operator.brow_ctrl_4_r", text="", icon='DOT', emboss=0) - brow_ctrls_R.operator("operator.brow_ctrl_3_r", text="", icon='DOT', emboss=0) - brow_ctrls_R.operator("operator.brow_ctrl_2_r", text="", icon='DOT', emboss=0) - brow_ctrls_R.operator("operator.brow_ctrl_1_r", text="", icon='DOT', emboss=0) + brow_ctrls_R.alignment = 'CENTER' + brow_ctrls_R.operator("operator.brow_ctrl_4_r", text="", icon='LINK', emboss=0) + brow_ctrls_R.operator("operator.brow_ctrl_3_r", text="", icon='LINK', emboss=0) + brow_ctrls_R.operator("operator.brow_ctrl_2_r", text="", icon='LINK', emboss=0) + brow_ctrls_R.operator("operator.brow_ctrl_1_r", text="", icon='LINK', emboss=0) # Brow Ctrl R - brow_ctrl_R = brow_R.row() + brow_ctrl_R = brow_R.row() brow_ctrl_R.scale_x = 1 brow_ctrl_R.scale_y = 0.8 - brow_ctrl_R.alignment = 'CENTER' - brow_ctrl_R.operator("operator.brow_ctrl_r", text="Brow_R") - + brow_ctrl_R.alignment = 'CENTER' + brow_ctrl_R.operator("operator.brow_ctrl_r", text="Brow_R") + # Brow Toon R - brow_toon_R = brow_R.row() + brow_toon_R = brow_R.row() brow_toon_R.scale_x = 2 brow_toon_R.scale_y = 0.5 - brow_toon_R.alignment = 'CENTER' - brow_toon_R.operator("operator.toon_brow_r", text="", icon='KEYFRAME_HLT', emboss=0) + brow_toon_R.alignment = 'CENTER' + brow_toon_R.operator("operator.toon_brow_r", text="", icon='SPACE2', emboss=0) # Brow Frown - brow_frown = brow_mid.column() + brow_frown = brow_mid.column() brow_frown.scale_x = 2 brow_frown.scale_y = 0.5 - brow_frown.alignment = 'CENTER' - brow_frown.operator("operator.frown_ctrl", text="", icon='DOT', emboss=0) + brow_frown.alignment = 'CENTER' + brow_frown.operator("operator.frown_ctrl", text="", icon='LINK', emboss=0) brow_frown.separator() - brow_frown.operator("operator.nose_bridge_1_ctrl", text="") - - + brow_frown.operator("operator.nose_bridge_1_ctrl", text="") + + # Brow Ctrls R - brow_ctrls_L = brow_L.row(align=1) + brow_ctrls_L = brow_L.row(align=1) brow_ctrls_L.scale_x = 1 brow_ctrls_L.scale_y = 0.5 - brow_ctrls_L.alignment = 'CENTER' - brow_ctrls_L.operator("operator.brow_ctrl_1_l", text="", icon='DOT', emboss=0) - brow_ctrls_L.operator("operator.brow_ctrl_2_l", text="", icon='DOT', emboss=0) - brow_ctrls_L.operator("operator.brow_ctrl_3_l", text="", icon='DOT', emboss=0) - brow_ctrls_L.operator("operator.brow_ctrl_4_l", text="", icon='DOT', emboss=0) + brow_ctrls_L.alignment = 'CENTER' + brow_ctrls_L.operator("operator.brow_ctrl_1_l", text="", icon='LINK', emboss=0) + brow_ctrls_L.operator("operator.brow_ctrl_2_l", text="", icon='LINK', emboss=0) + brow_ctrls_L.operator("operator.brow_ctrl_3_l", text="", icon='LINK', emboss=0) + brow_ctrls_L.operator("operator.brow_ctrl_4_l", text="", icon='LINK', emboss=0) # Brow Ctrl R - brow_ctrl_L = brow_L.row() + brow_ctrl_L = brow_L.row() brow_ctrl_L.scale_x = 1 brow_ctrl_L.scale_y = 0.8 - brow_ctrl_L.alignment = 'CENTER' - brow_ctrl_L.operator("operator.brow_ctrl_l", text="Brow_L") - + brow_ctrl_L.alignment = 'CENTER' + brow_ctrl_L.operator("operator.brow_ctrl_l", text="Brow_L") + # Brow Toon R - brow_toon_L = brow_L.row() + brow_toon_L = brow_L.row() brow_toon_L.scale_x = 2 brow_toon_L.scale_y = 0.5 - brow_toon_L.alignment = 'CENTER' - brow_toon_L.operator("operator.toon_brow_l", text="", icon='KEYFRAME_HLT', emboss=0) + brow_toon_L.alignment = 'CENTER' + brow_toon_L.operator("operator.toon_brow_l", text="", icon='SPACE2', emboss=0) box_face.separator() - + col_space = box_face.column() - col_space.scale_y = 2 - col_space.separator() - - - # Eyes - eyes = box_face.row() + col_space.scale_y = 2 + col_space.separator() + + + # Eyes + eyes = box_face.row() eyes.scale_x = 1 eyes.scale_y = 0.75 - eyes.alignment = 'CENTER' - - col_R = eyes.column() + eyes.alignment = 'CENTER' + + col_R = eyes.column() col_R.scale_x = 1 col_R.scale_y = 0.75 - col_R.alignment = 'CENTER' - - col_mid = eyes.column() + col_R.alignment = 'CENTER' + + col_mid = eyes.column() col_mid.scale_x = 1 col_mid.scale_y = 0.75 - col_mid.alignment = 'CENTER' - - col_L = eyes.column() + col_mid.alignment = 'CENTER' + + col_L = eyes.column() col_L.scale_x = 1 col_L.scale_y = 0.75 - col_L.alignment = 'CENTER' - + col_L.alignment = 'CENTER' + # Eyelid Up Ctrl R - eyelid_up_R = col_R.row() + eyelid_up_R = col_R.row() eyelid_up_R.scale_x = 1 eyelid_up_R.scale_y = 0.8 - eyelid_up_R.alignment = 'CENTER' - eyelid_up_R.operator("operator.eyelid_up_ctrl_r", text="Eyelid_up_R") - - + eyelid_up_R.alignment = 'CENTER' + eyelid_up_R.operator("operator.eyelid_up_ctrl_r", text="Eyelid_up_R") + + # Eyelid Up Ctrls R - eyelid_up_ctrls_R = col_R.row() + eyelid_up_ctrls_R = col_R.row() eyelid_up_ctrls_R.scale_x = 1.2 eyelid_up_ctrls_R.scale_y = 0.5 - eyelid_up_ctrls_R.alignment = 'CENTER' - eyelid_up_ctrls_R.operator("operator.eyelid_up_ctrl_3_r", text="", icon='DOT', emboss=0) - eyelid_up_ctrls_R.operator("operator.eyelid_up_ctrl_2_r", text="", icon='DOT', emboss=0) - eyelid_up_ctrls_R.operator("operator.eyelid_up_ctrl_1_r", text="", icon='DOT', emboss=0) - + eyelid_up_ctrls_R.alignment = 'CENTER' + eyelid_up_ctrls_R.operator("operator.eyelid_up_ctrl_3_r", text="", icon='LINK', emboss=0) + eyelid_up_ctrls_R.operator("operator.eyelid_up_ctrl_2_r", text="", icon='LINK', emboss=0) + eyelid_up_ctrls_R.operator("operator.eyelid_up_ctrl_1_r", text="", icon='LINK', emboss=0) + # Eye_R - eye_R_row_1 = col_R.row() + eye_R_row_1 = col_R.row() eye_R_row_1.scale_x = 0.8 eye_R_row_1.scale_y = 1 - eye_R_row_1.alignment = 'CENTER' - eye_R_row_1.operator("operator.toon_eye_up_r", text="", icon='KEYFRAME_HLT', emboss=0) - - eye_R_row_2 = col_R.row() + eye_R_row_1.alignment = 'CENTER' + eye_R_row_1.operator("operator.toon_eye_up_r", text="", icon='SPACE2', emboss=0) + + eye_R_row_2 = col_R.row() eye_R_row_2.scale_x = 0.5 eye_R_row_2.scale_y = 1 - eye_R_row_2.alignment = 'CENTER' - eye_R_row_2.operator("operator.toon_eye_out_r", text="", icon='KEYFRAME_HLT', emboss=0) - + eye_R_row_2.alignment = 'CENTER' + eye_R_row_2.operator("operator.toon_eye_out_r", text="", icon='SPACE2', emboss=0) + eye_R_box = eye_R_row_2.box() eye_R_box.scale_x = 1.2 eye_R_box.scale_y = 1 - eye_R_box.alignment = 'CENTER' + eye_R_box.alignment = 'CENTER' eye_R = eye_R_box.row() - eye_R.operator("operator.pupil_ctrl_r", text="", icon='RADIOBUT_ON', emboss=0) - eye_R.operator("operator.eye_ctrl_r", text="", icon='HIDE_OFF', emboss=0) - eye_R.operator("operator.iris_ctrl_r", text="", icon='PROP_ON', emboss=0) - eye_R_row_2.operator("operator.toon_eye_in_r", text="", icon='KEYFRAME_HLT', emboss=0) - - eye_R_row_3 = col_R.row() + eye_R.operator("operator.pupil_ctrl_r", text="", icon='RADIOBUT_ON', emboss=0) + eye_R.operator("operator.eye_ctrl_r", text="", icon='RESTRICT_VIEW_OFF', emboss=0) + eye_R.operator("operator.iris_ctrl_r", text="", icon='INLINK', emboss=0) + eye_R_row_2.operator("operator.toon_eye_in_r", text="", icon='SPACE2', emboss=0) + + eye_R_row_3 = col_R.row() eye_R_row_3.scale_x = 0.8 eye_R_row_3.scale_y = 1 - eye_R_row_3.alignment = 'CENTER' - eye_R_row_3.operator("operator.toon_eye_low_r", text="", icon='KEYFRAME_HLT', emboss=0) + eye_R_row_3.alignment = 'CENTER' + eye_R_row_3.operator("operator.toon_eye_low_r", text="", icon='SPACE2', emboss=0) # Eyelid Low Ctrls R - eyelid_low_ctrls_R = col_R.row() + eyelid_low_ctrls_R = col_R.row() eyelid_low_ctrls_R.scale_x = 0.8 eyelid_low_ctrls_R.scale_y = 0.5 - eyelid_low_ctrls_R.alignment = 'CENTER' - eyelid_low_ctrls_R.operator("operator.eyelid_ctrl_out_r", text="", icon='DOT', emboss=0) - eyelid_low_ctrls_R.operator("operator.eyelid_low_ctrl_3_r", text="", icon='DOT', emboss=0) - eyelid_low_ctrls_R.operator("operator.eyelid_low_ctrl_2_r", text="", icon='DOT', emboss=0) - eyelid_low_ctrls_R.operator("operator.eyelid_low_ctrl_1_r", text="", icon='DOT', emboss=0) - eyelid_low_ctrls_R.operator("operator.eyelid_ctrl_in_r", text="", icon='DOT', emboss=0) + eyelid_low_ctrls_R.alignment = 'CENTER' + eyelid_low_ctrls_R.operator("operator.eyelid_ctrl_out_r", text="", icon='LINK', emboss=0) + eyelid_low_ctrls_R.operator("operator.eyelid_low_ctrl_3_r", text="", icon='LINK', emboss=0) + eyelid_low_ctrls_R.operator("operator.eyelid_low_ctrl_2_r", text="", icon='LINK', emboss=0) + eyelid_low_ctrls_R.operator("operator.eyelid_low_ctrl_1_r", text="", icon='LINK', emboss=0) + eyelid_low_ctrls_R.operator("operator.eyelid_ctrl_in_r", text="", icon='LINK', emboss=0) # Eyelid Low Ctrl R - eyelid_low_R = col_R.row() + eyelid_low_R = col_R.row() eyelid_low_R.scale_x = 1 eyelid_low_R.scale_y = 0.8 - eyelid_low_R.alignment = 'CENTER' - eyelid_low_R.operator("operator.eyelid_low_ctrl_r", text="Eyelid_low_R") - + eyelid_low_R.alignment = 'CENTER' + eyelid_low_R.operator("operator.eyelid_low_ctrl_r", text="Eyelid_low_R") + # Nose Bridge - nose_bridge = col_mid.column() + nose_bridge = col_mid.column() nose_bridge.scale_x = 0.5 nose_bridge.scale_y = 1 nose_bridge.separator() - nose_bridge.separator() - nose_bridge.separator() nose_bridge.separator() - nose_bridge.separator() - nose_bridge.alignment = 'CENTER' - nose_bridge.operator("operator.nose_bridge_2_ctrl", text="") - + nose_bridge.separator() + nose_bridge.separator() + nose_bridge.separator() + nose_bridge.alignment = 'CENTER' + nose_bridge.operator("operator.nose_bridge_2_ctrl", text="") + # Nose Frown nose_frown = nose_bridge.row() - nose_frown.operator("operator.nose_frown_ctrl_r", text="", icon='PMARKER', emboss=0) - nose_frown.operator("operator.nose_frown_ctrl_l", text="", icon='PMARKER', emboss=0) - + nose_frown.operator("operator.nose_frown_ctrl_r", text="", icon='PMARKER', emboss=0) + nose_frown.operator("operator.nose_frown_ctrl_l", text="", icon='PMARKER', emboss=0) + # Eyelid Up Ctrl L - eyelid_up_L = col_L.row() + eyelid_up_L = col_L.row() eyelid_up_L.scale_x = 1 eyelid_up_L.scale_y = 0.8 - eyelid_up_L.alignment = 'CENTER' - eyelid_up_L.operator("operator.eyelid_up_ctrl_l", text="Eyelid_up_L") - - + eyelid_up_L.alignment = 'CENTER' + eyelid_up_L.operator("operator.eyelid_up_ctrl_l", text="Eyelid_up_L") + + # Eyelid Up Ctrls L - eyelid_up_ctrls_L = col_L.row() + eyelid_up_ctrls_L = col_L.row() eyelid_up_ctrls_L.scale_x = 1.2 eyelid_up_ctrls_L.scale_y = 0.5 - eyelid_up_ctrls_L.alignment = 'CENTER' - eyelid_up_ctrls_L.operator("operator.eyelid_up_ctrl_1_l", text="", icon='DOT', emboss=0) - eyelid_up_ctrls_L.operator("operator.eyelid_up_ctrl_2_l", text="", icon='DOT', emboss=0) - eyelid_up_ctrls_L.operator("operator.eyelid_up_ctrl_3_l", text="", icon='DOT', emboss=0) - + eyelid_up_ctrls_L.alignment = 'CENTER' + eyelid_up_ctrls_L.operator("operator.eyelid_up_ctrl_1_l", text="", icon='LINK', emboss=0) + eyelid_up_ctrls_L.operator("operator.eyelid_up_ctrl_2_l", text="", icon='LINK', emboss=0) + eyelid_up_ctrls_L.operator("operator.eyelid_up_ctrl_3_l", text="", icon='LINK', emboss=0) + # Eye_L - eye_L_row_1 = col_L.row() + eye_L_row_1 = col_L.row() eye_L_row_1.scale_x = 0.8 eye_L_row_1.scale_y = 1 - eye_L_row_1.alignment = 'CENTER' - eye_L_row_1.operator("operator.toon_eye_up_l", text="", icon='KEYFRAME_HLT', emboss=0) - - eye_L_row_2 = col_L.row() + eye_L_row_1.alignment = 'CENTER' + eye_L_row_1.operator("operator.toon_eye_up_l", text="", icon='SPACE2', emboss=0) + + eye_L_row_2 = col_L.row() eye_L_row_2.scale_x = 0.5 eye_L_row_2.scale_y = 1 - eye_L_row_2.alignment = 'CENTER' - eye_L_row_2.operator("operator.toon_eye_in_l", text="", icon='KEYFRAME_HLT', emboss=0) - + eye_L_row_2.alignment = 'CENTER' + eye_L_row_2.operator("operator.toon_eye_in_l", text="", icon='SPACE2', emboss=0) + eye_L_box = eye_L_row_2.box() eye_L_box.scale_x = 1.2 eye_L_box.scale_y = 1 - eye_L_box.alignment = 'CENTER' + eye_L_box.alignment = 'CENTER' eye_L = eye_L_box.row() - eye_L.operator("operator.iris_ctrl_l", text="", icon='PROP_ON', emboss=0) - eye_L.operator("operator.eye_ctrl_l", text="", icon='HIDE_OFF', emboss=0) - eye_L.operator("operator.pupil_ctrl_l", text="", icon='RADIOBUT_ON', emboss=0) - eye_L_row_2.operator("operator.toon_eye_out_l", text="", icon='KEYFRAME_HLT', emboss=0) - - eye_L_row_3 = col_L.row() + eye_L.operator("operator.iris_ctrl_l", text="", icon='INLINK', emboss=0) + eye_L.operator("operator.eye_ctrl_l", text="", icon='RESTRICT_VIEW_OFF', emboss=0) + eye_L.operator("operator.pupil_ctrl_l", text="", icon='RADIOBUT_ON', emboss=0) + eye_L_row_2.operator("operator.toon_eye_out_l", text="", icon='SPACE2', emboss=0) + + eye_L_row_3 = col_L.row() eye_L_row_3.scale_x = 0.8 eye_L_row_3.scale_y = 1 - eye_L_row_3.alignment = 'CENTER' - eye_L_row_3.operator("operator.toon_eye_low_l", text="", icon='KEYFRAME_HLT', emboss=0) + eye_L_row_3.alignment = 'CENTER' + eye_L_row_3.operator("operator.toon_eye_low_l", text="", icon='SPACE2', emboss=0) # Eyelid Low Ctrls L - eyelid_low_ctrls_L = col_L.row() + eyelid_low_ctrls_L = col_L.row() eyelid_low_ctrls_L.scale_x = 0.8 eyelid_low_ctrls_L.scale_y = 0.5 - eyelid_low_ctrls_L.alignment = 'CENTER' - eyelid_low_ctrls_L.operator("operator.eyelid_ctrl_in_l", text="", icon='DOT', emboss=0) - eyelid_low_ctrls_L.operator("operator.eyelid_low_ctrl_1_l", text="", icon='DOT', emboss=0) - eyelid_low_ctrls_L.operator("operator.eyelid_low_ctrl_2_l", text="", icon='DOT', emboss=0) - eyelid_low_ctrls_L.operator("operator.eyelid_low_ctrl_3_l", text="", icon='DOT', emboss=0) - eyelid_low_ctrls_L.operator("operator.eyelid_ctrl_out_l", text="", icon='DOT', emboss=0) + eyelid_low_ctrls_L.alignment = 'CENTER' + eyelid_low_ctrls_L.operator("operator.eyelid_ctrl_in_l", text="", icon='LINK', emboss=0) + eyelid_low_ctrls_L.operator("operator.eyelid_low_ctrl_1_l", text="", icon='LINK', emboss=0) + eyelid_low_ctrls_L.operator("operator.eyelid_low_ctrl_2_l", text="", icon='LINK', emboss=0) + eyelid_low_ctrls_L.operator("operator.eyelid_low_ctrl_3_l", text="", icon='LINK', emboss=0) + eyelid_low_ctrls_L.operator("operator.eyelid_ctrl_out_l", text="", icon='LINK', emboss=0) # Eyelid Low Ctrl L - eyelid_low_L = col_L.row() + eyelid_low_L = col_L.row() eyelid_low_L.scale_x = 1 eyelid_low_L.scale_y = 0.8 - eyelid_low_L.alignment = 'CENTER' - eyelid_low_L.operator("operator.eyelid_low_ctrl_l", text="Eyelid_low_L") - + eyelid_low_L.alignment = 'CENTER' + eyelid_low_L.operator("operator.eyelid_low_ctrl_l", text="Eyelid_low_L") + box_face.separator() - - + + col_space = box_face.column() col_space.scale_y = 4 - col_space.separator() + col_space.separator() # Head Top Stretch head_mid_str = box_face.column(align=1) head_mid_row = head_mid_str.row(align=1) head_mid_row.scale_x = 9 head_mid_row.scale_y = 0.3 - head_mid_row.alignment = 'CENTER' - head_mid_row.operator("operator.head_mid_stretch", text="") - + head_mid_row.alignment = 'CENTER' + head_mid_row.operator("operator.head_mid_stretch", text="") + # Head Stretch Ctrls head_str_ctrls = box_face.column(align=1) head_str_ctrls.scale_x = 0.8 head_str_ctrls.scale_y = 0.3 - head_str_ctrls.alignment = 'CENTER' - head_str_ctrls.operator("operator.head_mid_ctrl", text="") - head_str_ctrls.operator("operator.head_mid_curve", text="") - + head_str_ctrls.alignment = 'CENTER' + head_str_ctrls.operator("operator.head_mid_ctrl", text="") + head_str_ctrls.operator("operator.head_mid_curve", text="") + # Head Low Stretch head_low_str = box_face.column(align=1) head_low_row = head_low_str.row(align=1) head_low_row.scale_x = 9 head_low_row.scale_y = 0.3 - head_low_row.alignment = 'CENTER' - head_low_row.operator("operator.head_low_stretch", text="") - - # Cheeks - cheeks = box_face.row() + head_low_row.alignment = 'CENTER' + head_low_row.operator("operator.head_low_stretch", text="") + + # Cheeks + cheeks = box_face.row() cheeks.scale_x = 1 cheeks.scale_y = 0.75 - cheeks.alignment = 'CENTER' - - col_R = cheeks.column() + cheeks.alignment = 'CENTER' + + col_R = cheeks.column() col_R.scale_x = 1 col_R.scale_y = 0.75 - col_R.alignment = 'CENTER' - - col_mid = cheeks.column() + col_R.alignment = 'CENTER' + + col_mid = cheeks.column() col_mid.scale_x = 0.5 col_mid.scale_y = 0.75 - col_mid.alignment = 'CENTER' - - col_L = cheeks.column() + col_mid.alignment = 'CENTER' + + col_L = cheeks.column() col_L.scale_x = 1 col_L.scale_y = 0.75 - col_L.alignment = 'CENTER' - + col_L.alignment = 'CENTER' + # Cheek Ctrl R - cheek_ctrl_R = col_R.row() + cheek_ctrl_R = col_R.row() cheek_ctrl_R.scale_x = 1.5 cheek_ctrl_R.scale_y = 0.8 - cheek_ctrl_R.alignment = 'CENTER' - cheek_ctrl_R.operator("operator.cheek_ctrl_r", text="Cheek_R") - + cheek_ctrl_R.alignment = 'CENTER' + cheek_ctrl_R.operator("operator.cheek_ctrl_r", text="Cheek_R") + # Cheek Ctrls R - cheek_ctrls_R = col_R.row() + cheek_ctrls_R = col_R.row() cheek_ctrls_R.scale_x = 1.5 cheek_ctrls_R.scale_y = 0.5 - cheek_ctrls_R.alignment = 'CENTER' - cheek_ctrls_R.operator("operator.cheek_ctrl_3_r", text="", icon='DOT', emboss=0) - cheek_ctrls_R.operator("operator.cheek_ctrl_2_r", text="", icon='DOT', emboss=0) - cheek_ctrls_R.operator("operator.cheek_ctrl_1_r", text="", icon='DOT', emboss=0) - + cheek_ctrls_R.alignment = 'CENTER' + cheek_ctrls_R.operator("operator.cheek_ctrl_3_r", text="", icon='LINK', emboss=0) + cheek_ctrls_R.operator("operator.cheek_ctrl_2_r", text="", icon='LINK', emboss=0) + cheek_ctrls_R.operator("operator.cheek_ctrl_1_r", text="", icon='LINK', emboss=0) + # Cheek Ctrls 2 R col_R.separator() - cheek_ctrls_2_R = col_R.row() + cheek_ctrls_2_R = col_R.row() cheek_ctrls_2_R.scale_x = 1.5 cheek_ctrls_2_R.scale_y = 0.5 - cheek_ctrls_2_R.alignment = 'CENTER' - cheek_ctrls_2_R.operator("operator.cheek2_ctrl_3_r", text="", icon='DOT', emboss=0) - cheek_ctrls_2_R.operator("operator.cheek2_ctrl_2_r", text="", icon='DOT', emboss=0) - cheek_ctrls_2_R.operator("operator.cheek2_ctrl_1_r", text="", icon='DOT', emboss=0) - + cheek_ctrls_2_R.alignment = 'CENTER' + cheek_ctrls_2_R.operator("operator.cheek2_ctrl_3_r", text="", icon='LINK', emboss=0) + cheek_ctrls_2_R.operator("operator.cheek2_ctrl_2_r", text="", icon='LINK', emboss=0) + cheek_ctrls_2_R.operator("operator.cheek2_ctrl_1_r", text="", icon='LINK', emboss=0) + # Cheek Ctrls 3 R col_R.separator() - cheek_ctrls_3_R = col_R.row() + cheek_ctrls_3_R = col_R.row() cheek_ctrls_3_R.scale_x = 1.5 cheek_ctrls_3_R.scale_y = 0.5 - cheek_ctrls_3_R.alignment = 'CENTER' - cheek_ctrls_3_R.operator("operator.lip_up3_ctrl_3_r", text="", icon='DOT', emboss=0) - cheek_ctrls_3_R.operator("operator.lip_up3_ctrl_2_r", text="", icon='DOT', emboss=0) - cheek_ctrls_3_R.operator("operator.lip_up3_ctrl_1_r", text="", icon='DOT', emboss=0) + cheek_ctrls_3_R.alignment = 'CENTER' + cheek_ctrls_3_R.operator("operator.lip_up3_ctrl_3_r", text="", icon='LINK', emboss=0) + cheek_ctrls_3_R.operator("operator.lip_up3_ctrl_2_r", text="", icon='LINK', emboss=0) + cheek_ctrls_3_R.operator("operator.lip_up3_ctrl_1_r", text="", icon='LINK', emboss=0) # Cheek Ctrls 4 R col_R.separator() - cheek_ctrls_4_R = col_R.row() + cheek_ctrls_4_R = col_R.row() cheek_ctrls_4_R.scale_x = 1.5 cheek_ctrls_4_R.scale_y = 0.5 - cheek_ctrls_4_R.alignment = 'CENTER' - cheek_ctrls_4_R.operator("operator.lip_up2_ctrl_3_r", text="", icon='DOT', emboss=0) - cheek_ctrls_4_R.operator("operator.lip_up2_ctrl_2_r", text="", icon='DOT', emboss=0) - cheek_ctrls_4_R.operator("operator.lip_up2_ctrl_1_r", text="", icon='DOT', emboss=0) - + cheek_ctrls_4_R.alignment = 'CENTER' + cheek_ctrls_4_R.operator("operator.lip_up2_ctrl_3_r", text="", icon='LINK', emboss=0) + cheek_ctrls_4_R.operator("operator.lip_up2_ctrl_2_r", text="", icon='LINK', emboss=0) + cheek_ctrls_4_R.operator("operator.lip_up2_ctrl_1_r", text="", icon='LINK', emboss=0) + # Nose col_mid.separator() col_mid.separator() col_mid.separator() - nose = col_mid.row(align=1) + nose = col_mid.row(align=1) nose.scale_x = 1.2 nose.scale_y = 0.8 - nose.alignment = 'CENTER' - nose.operator("operator.nostril_ctrl_r", text="", icon='DOT', emboss=0) - nose.operator("operator.nose_ctrl", text="") - nose.operator("operator.nostril_ctrl_l", text="", icon='DOT', emboss=0) - - # Lip Up Ctrls + nose.alignment = 'CENTER' + nose.operator("operator.nostril_ctrl_r", text="", icon='LINK', emboss=0) + nose.operator("operator.nose_ctrl", text="") + nose.operator("operator.nostril_ctrl_l", text="", icon='LINK', emboss=0) + + # Lip Up Ctrls col_mid.separator() lip_up_ctrls = col_mid.column() lip_up_ctrls.scale_x = 0.25 - lip_up_ctrls.scale_y = 0.5 - lip_up_ctrls.operator("operator.lip_up3_ctrl_mid", text="", icon='DOT', emboss=0) - + lip_up_ctrls.scale_y = 0.5 + lip_up_ctrls.operator("operator.lip_up3_ctrl_mid", text="", icon='LINK', emboss=0) + lip_up_3_ctrl = col_mid.column() lip_up_3_ctrl.scale_x = 0.25 - lip_up_3_ctrl.scale_y = 0.3 - lip_up_3_ctrl.operator("operator.lip_up3_ctrl", text="") - + lip_up_3_ctrl.scale_y = 0.3 + lip_up_3_ctrl.operator("operator.lip_up3_ctrl", text="") + lip_up_2_ctrl = col_mid.column() lip_up_2_ctrl.scale_x = 0.25 - lip_up_2_ctrl.scale_y = 0.3 - lip_up_2_ctrl.operator("operator.lip_up2_ctrl_mid", text="", icon='DOT', emboss=0) - lip_up_2_ctrl.operator("operator.lip_up2_ctrl", text="") - + lip_up_2_ctrl.scale_y = 0.3 + lip_up_2_ctrl.operator("operator.lip_up2_ctrl_mid", text="", icon='LINK', emboss=0) + lip_up_2_ctrl.operator("operator.lip_up2_ctrl", text="") + # Cheek Ctrl L - cheek_ctrl_L = col_L.row() + cheek_ctrl_L = col_L.row() cheek_ctrl_L.scale_x = 1.5 cheek_ctrl_L.scale_y = 0.8 - cheek_ctrl_L.alignment = 'CENTER' - cheek_ctrl_L.operator("operator.cheek_ctrl_l", text="Cheek_L") - + cheek_ctrl_L.alignment = 'CENTER' + cheek_ctrl_L.operator("operator.cheek_ctrl_l", text="Cheek_L") + # Cheek Ctrls L - cheek_ctrls_L = col_L.row() + cheek_ctrls_L = col_L.row() cheek_ctrls_L.scale_x = 1.5 cheek_ctrls_L.scale_y = 0.5 - cheek_ctrls_L.alignment = 'CENTER' - cheek_ctrls_L.operator("operator.cheek_ctrl_1_l", text="", icon='DOT', emboss=0) - cheek_ctrls_L.operator("operator.cheek_ctrl_2_l", text="", icon='DOT', emboss=0) - cheek_ctrls_L.operator("operator.cheek_ctrl_3_l", text="", icon='DOT', emboss=0) + cheek_ctrls_L.alignment = 'CENTER' + cheek_ctrls_L.operator("operator.cheek_ctrl_1_l", text="", icon='LINK', emboss=0) + cheek_ctrls_L.operator("operator.cheek_ctrl_2_l", text="", icon='LINK', emboss=0) + cheek_ctrls_L.operator("operator.cheek_ctrl_3_l", text="", icon='LINK', emboss=0) # Cheek Ctrls 2 L col_L.separator() - cheek_ctrls_2_L = col_L.row() + cheek_ctrls_2_L = col_L.row() cheek_ctrls_2_L.scale_x = 1.5 cheek_ctrls_2_L.scale_y = 0.5 - cheek_ctrls_2_L.alignment = 'CENTER' - cheek_ctrls_2_L.operator("operator.cheek2_ctrl_1_l", text="", icon='DOT', emboss=0) - cheek_ctrls_2_L.operator("operator.cheek2_ctrl_2_l", text="", icon='DOT', emboss=0) - cheek_ctrls_2_L.operator("operator.cheek2_ctrl_3_l", text="", icon='DOT', emboss=0) - + cheek_ctrls_2_L.alignment = 'CENTER' + cheek_ctrls_2_L.operator("operator.cheek2_ctrl_1_l", text="", icon='LINK', emboss=0) + cheek_ctrls_2_L.operator("operator.cheek2_ctrl_2_l", text="", icon='LINK', emboss=0) + cheek_ctrls_2_L.operator("operator.cheek2_ctrl_3_l", text="", icon='LINK', emboss=0) + # Cheek Ctrls 3 L col_L.separator() - cheek_ctrls_3_L = col_L.row() + cheek_ctrls_3_L = col_L.row() cheek_ctrls_3_L.scale_x = 1.5 cheek_ctrls_3_L.scale_y = 0.5 - cheek_ctrls_3_L.alignment = 'CENTER' - cheek_ctrls_3_L.operator("operator.lip_up3_ctrl_1_l", text="", icon='DOT', emboss=0) - cheek_ctrls_3_L.operator("operator.lip_up3_ctrl_2_l", text="", icon='DOT', emboss=0) - cheek_ctrls_3_L.operator("operator.lip_up3_ctrl_3_l", text="", icon='DOT', emboss=0) + cheek_ctrls_3_L.alignment = 'CENTER' + cheek_ctrls_3_L.operator("operator.lip_up3_ctrl_1_l", text="", icon='LINK', emboss=0) + cheek_ctrls_3_L.operator("operator.lip_up3_ctrl_2_l", text="", icon='LINK', emboss=0) + cheek_ctrls_3_L.operator("operator.lip_up3_ctrl_3_l", text="", icon='LINK', emboss=0) # Cheek Ctrls 4 L col_L.separator() - cheek_ctrls_4_L = col_L.row() + cheek_ctrls_4_L = col_L.row() cheek_ctrls_4_L.scale_x = 1.5 cheek_ctrls_4_L.scale_y = 0.5 - cheek_ctrls_4_L.alignment = 'CENTER' - cheek_ctrls_4_L.operator("operator.lip_up2_ctrl_1_l", text="", icon='DOT', emboss=0) - cheek_ctrls_4_L.operator("operator.lip_up2_ctrl_2_l", text="", icon='DOT', emboss=0) - cheek_ctrls_4_L.operator("operator.lip_up2_ctrl_3_l", text="", icon='DOT', emboss=0) - - col_space = box_face.column() - col_space.scale_y = 4 - col_space.separator() + cheek_ctrls_4_L.alignment = 'CENTER' + cheek_ctrls_4_L.operator("operator.lip_up2_ctrl_1_l", text="", icon='LINK', emboss=0) + cheek_ctrls_4_L.operator("operator.lip_up2_ctrl_2_l", text="", icon='LINK', emboss=0) + cheek_ctrls_4_L.operator("operator.lip_up2_ctrl_3_l", text="", icon='LINK', emboss=0) - # Mouth - mouth = box_face.row() + col_space = box_face.column() + col_space.scale_y = 4 + col_space.separator() + + # Mouth + mouth = box_face.row() mouth.scale_x = 1 mouth.scale_y = 1 - mouth.alignment = 'CENTER' - - col_R = mouth.column() + mouth.alignment = 'CENTER' + + col_R = mouth.column() col_R.scale_x = 0.5 col_R.scale_y = 1 - col_R.alignment = 'CENTER' - - col_mid = mouth.column(align=1) + col_R.alignment = 'CENTER' + + col_mid = mouth.column(align=1) col_mid.scale_x = 1 col_mid.scale_y = 1 - col_mid.alignment = 'CENTER' - - col_L = mouth.column() + col_mid.alignment = 'CENTER' + + col_L = mouth.column() col_L.scale_x = 0.5 col_L.scale_y = 1 - col_L.alignment = 'CENTER' + col_L.alignment = 'CENTER' # Lip Mid Ctrls R col_R.separator() col_R.separator() col_R.separator() - col_R.separator() - col_R.separator() - col_R.separator() - col_R.separator() - lip_mid_ctrls_R = col_R.row() + col_R.separator() + col_R.separator() + col_R.separator() + col_R.separator() + lip_mid_ctrls_R = col_R.row() lip_mid_ctrls_R.scale_x = 1.5 lip_mid_ctrls_R.scale_y = 0.5 - lip_mid_ctrls_R.alignment = 'CENTER' - lip_mid_ctrls_R.operator("operator.cheek_ctrl_4_r", text="", icon='DOT', emboss=0) - lip_mid_ctrls_R.operator("operator.cheek2_ctrl_4_r", text="", icon='DOT', emboss=0) - lip_mid_ctrls_R.operator("operator.lip_up3_ctrl_4_r", text="", icon='DOT', emboss=0) - lip_mid_ctrls_R.operator("operator.lip_up2_ctrl_4_r", text="", icon='DOT', emboss=0) - + lip_mid_ctrls_R.alignment = 'CENTER' + lip_mid_ctrls_R.operator("operator.cheek_ctrl_4_r", text="", icon='LINK', emboss=0) + lip_mid_ctrls_R.operator("operator.cheek2_ctrl_4_r", text="", icon='LINK', emboss=0) + lip_mid_ctrls_R.operator("operator.lip_up3_ctrl_4_r", text="", icon='LINK', emboss=0) + lip_mid_ctrls_R.operator("operator.lip_up2_ctrl_4_r", text="", icon='LINK', emboss=0) + # Mouth Ctrls - + # Mouth Mstr Up - mouth_mstr_up = col_mid.column(align=1) + mouth_mstr_up = col_mid.column(align=1) mouth_mstr_up.scale_x = 1 mouth_mstr_up.scale_y = 0.5 - mouth_mstr_up.alignment = 'CENTER' - mouth_mstr_up.operator("operator.mouth_mstr_up", text="") - - mouth_box = col_mid.box() + mouth_mstr_up.alignment = 'CENTER' + mouth_mstr_up.operator("operator.mouth_mstr_up", text="") + + mouth_box = col_mid.box() mouth_box.scale_x = 1 mouth_box.scale_y = 1 - mouth_box.alignment = 'CENTER' - - mouth_row = mouth_box.row(align=1) + mouth_box.alignment = 'CENTER' + + mouth_row = mouth_box.row(align=1) mouth_row.scale_x = 1 - mouth_row.scale_y = 1 - mouth_row.alignment = 'CENTER' - - mouth_col_R = mouth_row.column() + mouth_row.scale_y = 1 + mouth_row.alignment = 'CENTER' + + mouth_col_R = mouth_row.column() mouth_col_R.scale_x = 1 mouth_col_R.scale_y = 1 - mouth_col_R.alignment = 'CENTER' - - mouth_col_mid = mouth_row.column() + mouth_col_R.alignment = 'CENTER' + + mouth_col_mid = mouth_row.column() mouth_col_mid.scale_x = 3 mouth_col_mid.scale_y = 1 - mouth_col_mid.alignment = 'CENTER' - - mouth_col_L = mouth_row.column() + mouth_col_mid.alignment = 'CENTER' + + mouth_col_L = mouth_row.column() mouth_col_L.scale_x = 1 mouth_col_L.scale_y = 1 - mouth_col_L.alignment = 'CENTER' - + mouth_col_L.alignment = 'CENTER' + # Mouth Corner R mouth_col_R.separator() mouth_col_R.separator() - mouth_col_R.separator() - mouth_col_R.separator() + mouth_col_R.separator() + mouth_col_R.separator() corner_R = mouth_col_R.column() corner_R.scale_x = 0.5 corner_R.scale_y = 1 - corner_R.alignment = 'CENTER' - corner_R.operator("operator.mouth_corner_r", text="") - + corner_R.alignment = 'CENTER' + corner_R.operator("operator.mouth_corner_r", text="") + # Lips Ctrls - lip_up = mouth_col_mid.column(align=1) + lip_up = mouth_col_mid.column(align=1) lip_up.scale_x = 1 lip_up.scale_y = 0.4 - lip_up.alignment = 'CENTER' - lip_up.operator("operator.lip_up_ctrl", text="") - lip_up.operator("operator.lip_up_ctrl_collision", text="") - - # Lip Up Ctrls - lip_up_col = mouth_col_mid.column() + lip_up.alignment = 'CENTER' + lip_up.operator("operator.lip_up_ctrl", text="") + lip_up.operator("operator.lip_up_ctrl_collision", text="") + + # Lip Up Ctrls + lip_up_col = mouth_col_mid.column() lip_up_col.scale_x = 0.3 lip_up_col.scale_y = 0.4 - lip_up_col.alignment = 'CENTER' - lip_up_ctrls = lip_up_col.row() + lip_up_col.alignment = 'CENTER' + lip_up_ctrls = lip_up_col.row() lip_up_ctrls.scale_x = 0.3 lip_up_ctrls.scale_y = 0.4 - lip_up_ctrls.alignment = 'CENTER' - lip_up_ctrls.operator("operator.lip_up_ctrl_3_r", text="", icon='DOT', emboss=0) - lip_up_ctrls.operator("operator.lip_up_ctrl_2_r", text="", icon='DOT', emboss=0) - lip_up_ctrls.operator("operator.lip_up_ctrl_1_r", text="", icon='DOT', emboss=0) - lip_up_ctrls.operator("operator.lip_up_ctrl_mid", text="", icon='DOT', emboss=0) - lip_up_ctrls.operator("operator.lip_up_ctrl_1_l", text="", icon='DOT', emboss=0) - lip_up_ctrls.operator("operator.lip_up_ctrl_2_l", text="", icon='DOT', emboss=0) - lip_up_ctrls.operator("operator.lip_up_ctrl_3_l", text="", icon='DOT', emboss=0) + lip_up_ctrls.alignment = 'CENTER' + lip_up_ctrls.operator("operator.lip_up_ctrl_3_r", text="", icon='LINK', emboss=0) + lip_up_ctrls.operator("operator.lip_up_ctrl_2_r", text="", icon='LINK', emboss=0) + lip_up_ctrls.operator("operator.lip_up_ctrl_1_r", text="", icon='LINK', emboss=0) + lip_up_ctrls.operator("operator.lip_up_ctrl_mid", text="", icon='LINK', emboss=0) + lip_up_ctrls.operator("operator.lip_up_ctrl_1_l", text="", icon='LINK', emboss=0) + lip_up_ctrls.operator("operator.lip_up_ctrl_2_l", text="", icon='LINK', emboss=0) + lip_up_ctrls.operator("operator.lip_up_ctrl_3_l", text="", icon='LINK', emboss=0) lip_up_col.separator() - + # Mouth Ctrl - mouth_ctrl_col = mouth_col_mid.column() + mouth_ctrl_col = mouth_col_mid.column() mouth_ctrl_col.scale_x = 0.3 mouth_ctrl_col.scale_y = .8 - mouth_ctrl_col.alignment = 'CENTER' - - mouth_up_ctrl = mouth_ctrl_col.row() + mouth_ctrl_col.alignment = 'CENTER' + + mouth_up_ctrl = mouth_ctrl_col.row() mouth_up_ctrl.scale_x = 1.5 mouth_up_ctrl.scale_y = 0.4 - mouth_up_ctrl.alignment = 'CENTER' - mouth_up_ctrl.operator("operator.mouth_up_ctrl", text="") - + mouth_up_ctrl.alignment = 'CENTER' + mouth_up_ctrl.operator("operator.mouth_up_ctrl", text="") + mouth_ctrl_col_2 = mouth_ctrl_col.column(align=1) mouth_ctrl_row = mouth_ctrl_col_2.row(align=1) mouth_ctrl_row_1 = mouth_ctrl_row.row(align=1) mouth_ctrl_row_1.scale_x = 0.5 mouth_ctrl_row_1.scale_y = 1 - mouth_ctrl_row_1.alignment = 'CENTER' - mouth_ctrl_row_1.operator("operator.lip_up_ctrl_4_r", text="", icon='DOT', emboss=0) - + mouth_ctrl_row_1.alignment = 'CENTER' + mouth_ctrl_row_1.operator("operator.lip_up_ctrl_4_r", text="", icon='LINK', emboss=0) + mouth_ctrl_row_2 = mouth_ctrl_row.row(align=1) mouth_ctrl_row_2.scale_x = 1 mouth_ctrl_row_2.scale_y = 1 - mouth_ctrl_row_2.alignment = 'CENTER' - mouth_ctrl_row_2.operator("operator.mouth_ctrl", text="Mouth_ctrl") - + mouth_ctrl_row_2.alignment = 'CENTER' + mouth_ctrl_row_2.operator("operator.mouth_ctrl", text="Mouth_ctrl") + mouth_ctrl_row_3 = mouth_ctrl_row.row(align=1) mouth_ctrl_row_3.scale_x = 0.5 mouth_ctrl_row_3.scale_y = 1 - mouth_ctrl_row_3.alignment = 'CENTER' - mouth_ctrl_row_3.operator("operator.lip_up_ctrl_4_l", text="", icon='DOT', emboss=0) - - mouth_low_ctrl = mouth_ctrl_col.row() + mouth_ctrl_row_3.alignment = 'CENTER' + mouth_ctrl_row_3.operator("operator.lip_up_ctrl_4_l", text="", icon='LINK', emboss=0) + + mouth_low_ctrl = mouth_ctrl_col.row() mouth_low_ctrl.scale_x = 1.5 mouth_low_ctrl.scale_y = 0.4 - mouth_low_ctrl.alignment = 'CENTER' - mouth_low_ctrl.operator("operator.mouth_low_ctrl", text="") + mouth_low_ctrl.alignment = 'CENTER' + mouth_low_ctrl.operator("operator.mouth_low_ctrl", text="") - # Lip Low Ctrls - lip_low_col = mouth_col_mid.column() + # Lip Low Ctrls + lip_low_col = mouth_col_mid.column() lip_low_col.scale_x = 0.3 lip_low_col.scale_y = 1 - lip_low_col.alignment = 'CENTER' - lip_low_ctrls = lip_low_col.row() + lip_low_col.alignment = 'CENTER' + lip_low_ctrls = lip_low_col.row() lip_low_ctrls.scale_x = 0.3 lip_low_ctrls.scale_y = 0.5 - lip_low_ctrls.alignment = 'CENTER' - lip_low_ctrls.operator("operator.lip_low_ctrl_3_r", text="", icon='DOT', emboss=0) - lip_low_ctrls.operator("operator.lip_low_ctrl_2_r", text="", icon='DOT', emboss=0) - lip_low_ctrls.operator("operator.lip_low_ctrl_1_r", text="", icon='DOT', emboss=0) - lip_low_ctrls.operator("operator.lip_low_ctrl_mid", text="", icon='DOT', emboss=0) - lip_low_ctrls.operator("operator.lip_low_ctrl_1_l", text="", icon='DOT', emboss=0) - lip_low_ctrls.operator("operator.lip_low_ctrl_2_l", text="", icon='DOT', emboss=0) - lip_low_ctrls.operator("operator.lip_low_ctrl_3_l", text="", icon='DOT', emboss=0) + lip_low_ctrls.alignment = 'CENTER' + lip_low_ctrls.operator("operator.lip_low_ctrl_3_r", text="", icon='LINK', emboss=0) + lip_low_ctrls.operator("operator.lip_low_ctrl_2_r", text="", icon='LINK', emboss=0) + lip_low_ctrls.operator("operator.lip_low_ctrl_1_r", text="", icon='LINK', emboss=0) + lip_low_ctrls.operator("operator.lip_low_ctrl_mid", text="", icon='LINK', emboss=0) + lip_low_ctrls.operator("operator.lip_low_ctrl_1_l", text="", icon='LINK', emboss=0) + lip_low_ctrls.operator("operator.lip_low_ctrl_2_l", text="", icon='LINK', emboss=0) + lip_low_ctrls.operator("operator.lip_low_ctrl_3_l", text="", icon='LINK', emboss=0) - mouth_mstr_low = mouth_col_mid.column(align=1) + mouth_mstr_low = mouth_col_mid.column(align=1) mouth_mstr_low.scale_x = 1 mouth_mstr_low.scale_y = 0.4 - mouth_mstr_low.alignment = 'CENTER' - mouth_mstr_low.operator("operator.lip_low_ctrl_collision", text="") - mouth_mstr_low.operator("operator.lip_low_ctrl", text="") - + mouth_mstr_low.alignment = 'CENTER' + mouth_mstr_low.operator("operator.lip_low_ctrl_collision", text="") + mouth_mstr_low.operator("operator.lip_low_ctrl", text="") + # Mouth Mstr Low - mouth_mstr_low = col_mid.column(align=1) + mouth_mstr_low = col_mid.column(align=1) mouth_mstr_low.scale_x = 1 mouth_mstr_low.scale_y = 0.5 - mouth_mstr_low.alignment = 'CENTER' - mouth_mstr_low.operator("operator.mouth_mstr_low", text="") - + mouth_mstr_low.alignment = 'CENTER' + mouth_mstr_low.operator("operator.mouth_mstr_low", text="") + # Mouth Mstr Ctrl - mouth_mstr_ctrl = col_mid.column(align=1) + mouth_mstr_ctrl = col_mid.column(align=1) mouth_mstr_ctrl.scale_x = 1 mouth_mstr_ctrl.scale_y = 0.8 - mouth_mstr_ctrl.alignment = 'CENTER' - mouth_mstr_ctrl.operator("operator.mouth_mstr_ctrl", text="Mouth_mstr_ctrl") - + mouth_mstr_ctrl.alignment = 'CENTER' + mouth_mstr_ctrl.operator("operator.mouth_mstr_ctrl", text="Mouth_mstr_ctrl") + # Mouth Corner L mouth_col_L.separator() mouth_col_L.separator() - mouth_col_L.separator() - mouth_col_L.separator() + mouth_col_L.separator() + mouth_col_L.separator() corner_L = mouth_col_L.column() corner_L.scale_x = 0.5 corner_L.scale_y = 1 - corner_L.alignment = 'CENTER' - corner_L.operator("operator.mouth_corner_l", text="") - + corner_L.alignment = 'CENTER' + corner_L.operator("operator.mouth_corner_l", text="") + # Lip Mid Ctrls L col_L.separator() col_L.separator() @@ -3212,325 +3207,325 @@ class BLENRIG_PT_BlenRig_5_Interface(bpy.types.Panel): col_L.separator() col_L.separator() col_L.separator() - col_L.separator() - lip_mid_ctrls_L = col_L.row() + col_L.separator() + lip_mid_ctrls_L = col_L.row() lip_mid_ctrls_L.scale_x = 1.5 lip_mid_ctrls_L.scale_y = 0.5 - lip_mid_ctrls_L.alignment = 'CENTER' - lip_mid_ctrls_L.operator("operator.lip_up2_ctrl_4_l", text="", icon='DOT', emboss=0) - lip_mid_ctrls_L.operator("operator.lip_up3_ctrl_4_l", text="", icon='DOT', emboss=0) - lip_mid_ctrls_L.operator("operator.cheek2_ctrl_4_l", text="", icon='DOT', emboss=0) - lip_mid_ctrls_L.operator("operator.cheek_ctrl_4_l", text="", icon='DOT', emboss=0) + lip_mid_ctrls_L.alignment = 'CENTER' + lip_mid_ctrls_L.operator("operator.lip_up2_ctrl_4_l", text="", icon='LINK', emboss=0) + lip_mid_ctrls_L.operator("operator.lip_up3_ctrl_4_l", text="", icon='LINK', emboss=0) + lip_mid_ctrls_L.operator("operator.cheek2_ctrl_4_l", text="", icon='LINK', emboss=0) + lip_mid_ctrls_L.operator("operator.cheek_ctrl_4_l", text="", icon='LINK', emboss=0) - # Jaw - jaw = box_face.row() + # Jaw + jaw = box_face.row() jaw.scale_x = 0.8 jaw.scale_y = 0.75 - jaw.alignment = 'CENTER' - - col_R = jaw.column() + jaw.alignment = 'CENTER' + + col_R = jaw.column() col_R.scale_x = 1 col_R.scale_y = 0.75 - col_R.alignment = 'CENTER' - - col_mid = jaw.column() + col_R.alignment = 'CENTER' + + col_mid = jaw.column() col_mid.scale_x = 1 col_mid.scale_y = 0.75 - col_mid.alignment = 'CENTER' - - col_L = jaw.column() + col_mid.alignment = 'CENTER' + + col_L = jaw.column() col_L.scale_x = 1 col_L.scale_y = 0.75 - col_L.alignment = 'CENTER' - + col_L.alignment = 'CENTER' + # Mouth Frown R - cheek_ctrl_R = col_R.row() + cheek_ctrl_R = col_R.row() cheek_ctrl_R.scale_x = 1.5 cheek_ctrl_R.scale_y = 1 - cheek_ctrl_R.alignment = 'CENTER' - cheek_ctrl_R.operator("operator.mouth_frown_ctrl_r", text="", icon='PMARKER', emboss=0) - + cheek_ctrl_R.alignment = 'CENTER' + cheek_ctrl_R.operator("operator.mouth_frown_ctrl_r", text="", icon='PMARKER', emboss=0) + # Jaw Ctrls R - cheek_ctrls_R = col_R.row() + cheek_ctrls_R = col_R.row() cheek_ctrls_R.scale_x = 1.5 cheek_ctrls_R.scale_y = 0.5 - cheek_ctrls_R.alignment = 'CENTER' - cheek_ctrls_R.operator("operator.lip_low2_ctrl_3_r", text="", icon='DOT', emboss=0) - cheek_ctrls_R.operator("operator.lip_low2_ctrl_2_r", text="", icon='DOT', emboss=0) - cheek_ctrls_R.operator("operator.lip_low2_ctrl_1_r", text="", icon='DOT', emboss=0) + cheek_ctrls_R.alignment = 'CENTER' + cheek_ctrls_R.operator("operator.lip_low2_ctrl_3_r", text="", icon='LINK', emboss=0) + cheek_ctrls_R.operator("operator.lip_low2_ctrl_2_r", text="", icon='LINK', emboss=0) + cheek_ctrls_R.operator("operator.lip_low2_ctrl_1_r", text="", icon='LINK', emboss=0) # Jaw Ctrls 2 R col_R.separator() - cheek_ctrls_2_R = col_R.row() + cheek_ctrls_2_R = col_R.row() cheek_ctrls_2_R.scale_x = 1.5 cheek_ctrls_2_R.scale_y = 0.5 - cheek_ctrls_2_R.alignment = 'CENTER' - cheek_ctrls_2_R.operator("operator.lip_low3_ctrl_3_r", text="", icon='DOT', emboss=0) - cheek_ctrls_2_R.operator("operator.lip_low3_ctrl_2_r", text="", icon='DOT', emboss=0) - cheek_ctrls_2_R.operator("operator.lip_low3_ctrl_1_r", text="", icon='DOT', emboss=0) - + cheek_ctrls_2_R.alignment = 'CENTER' + cheek_ctrls_2_R.operator("operator.lip_low3_ctrl_3_r", text="", icon='LINK', emboss=0) + cheek_ctrls_2_R.operator("operator.lip_low3_ctrl_2_r", text="", icon='LINK', emboss=0) + cheek_ctrls_2_R.operator("operator.lip_low3_ctrl_1_r", text="", icon='LINK', emboss=0) + # Jaw Ctrls 3 R col_R.separator() - cheek_ctrls_3_R = col_R.row() + cheek_ctrls_3_R = col_R.row() cheek_ctrls_3_R.scale_x = 1 cheek_ctrls_3_R.scale_y = 0.5 - cheek_ctrls_3_R.alignment = 'CENTER' - cheek_ctrls_3_R.operator("operator.cheek_ctrl_5_r", text="", icon='DOT', emboss=0) - cheek_ctrls_3_R.operator("operator.chin_ctrl_3_r", text="", icon='DOT', emboss=0) - cheek_ctrls_3_R.operator("operator.chin_ctrl_2_r", text="", icon='DOT', emboss=0) - cheek_ctrls_3_R.operator("operator.chin_ctrl_1_r", text="", icon='DOT', emboss=0) - - # Lip Low Ctrls + cheek_ctrls_3_R.alignment = 'CENTER' + cheek_ctrls_3_R.operator("operator.cheek_ctrl_5_r", text="", icon='LINK', emboss=0) + cheek_ctrls_3_R.operator("operator.chin_ctrl_3_r", text="", icon='LINK', emboss=0) + cheek_ctrls_3_R.operator("operator.chin_ctrl_2_r", text="", icon='LINK', emboss=0) + cheek_ctrls_3_R.operator("operator.chin_ctrl_1_r", text="", icon='LINK', emboss=0) + + # Lip Low Ctrls + col_mid.separator() col_mid.separator() - col_mid.separator() lip_low_ctrls = col_mid.column() lip_low_ctrls.scale_x = 0.25 - lip_low_ctrls.scale_y = 1 - lip_low_ctrls.operator("operator.lip_low2_ctrl_mid", text="", icon='DOT', emboss=0) - + lip_low_ctrls.scale_y = 1 + lip_low_ctrls.operator("operator.lip_low2_ctrl_mid", text="", icon='LINK', emboss=0) + lip_low_2_ctrl = col_mid.column() lip_low_2_ctrl.scale_x = 0.25 - lip_low_2_ctrl.scale_y = 0.3 - lip_low_2_ctrl.operator("operator.lip_low2_ctrl", text="") - + lip_low_2_ctrl.scale_y = 0.3 + lip_low_2_ctrl.operator("operator.lip_low2_ctrl", text="") + lip_low_3_ctrl = col_mid.column() lip_low_3_ctrl.scale_x = 0.25 - lip_low_3_ctrl.scale_y = 0.3 - lip_low_3_ctrl.operator("operator.lip_low3_ctrl_mid", text="", icon='DOT', emboss=0) - lip_low_3_ctrl.operator("operator.lip_low3_ctrl", text="") - lip_low_3_ctrl.operator("operator.chin_ctrl_mid", text="", icon='DOT', emboss=0) - + lip_low_3_ctrl.scale_y = 0.3 + lip_low_3_ctrl.operator("operator.lip_low3_ctrl_mid", text="", icon='LINK', emboss=0) + lip_low_3_ctrl.operator("operator.lip_low3_ctrl", text="") + lip_low_3_ctrl.operator("operator.chin_ctrl_mid", text="", icon='LINK', emboss=0) + # Mouth Frown L - cheek_ctrl_L = col_L.row() + cheek_ctrl_L = col_L.row() cheek_ctrl_L.scale_x = 1.5 cheek_ctrl_L.scale_y = 1 - cheek_ctrl_L.alignment = 'CENTER' - cheek_ctrl_L.operator("operator.mouth_frown_ctrl_l", text="", icon='PMARKER', emboss=0) - + cheek_ctrl_L.alignment = 'CENTER' + cheek_ctrl_L.operator("operator.mouth_frown_ctrl_l", text="", icon='PMARKER', emboss=0) + # Jaw Ctrls L - cheek_ctrls_L = col_L.row() + cheek_ctrls_L = col_L.row() cheek_ctrls_L.scale_x = 1.5 cheek_ctrls_L.scale_y = 0.5 - cheek_ctrls_L.alignment = 'CENTER' - cheek_ctrls_L.operator("operator.lip_low2_ctrl_1_l", text="", icon='DOT', emboss=0) - cheek_ctrls_L.operator("operator.lip_low2_ctrl_2_l", text="", icon='DOT', emboss=0) - cheek_ctrls_L.operator("operator.lip_low2_ctrl_3_l", text="", icon='DOT', emboss=0) + cheek_ctrls_L.alignment = 'CENTER' + cheek_ctrls_L.operator("operator.lip_low2_ctrl_1_l", text="", icon='LINK', emboss=0) + cheek_ctrls_L.operator("operator.lip_low2_ctrl_2_l", text="", icon='LINK', emboss=0) + cheek_ctrls_L.operator("operator.lip_low2_ctrl_3_l", text="", icon='LINK', emboss=0) # Jaw Ctrls 2 L col_L.separator() - cheek_ctrls_2_L = col_L.row() + cheek_ctrls_2_L = col_L.row() cheek_ctrls_2_L.scale_x = 1.5 cheek_ctrls_2_L.scale_y = 0.5 - cheek_ctrls_2_L.alignment = 'CENTER' - cheek_ctrls_2_L.operator("operator.lip_low3_ctrl_1_l", text="", icon='DOT', emboss=0) - cheek_ctrls_2_L.operator("operator.lip_low3_ctrl_2_l", text="", icon='DOT', emboss=0) - cheek_ctrls_2_L.operator("operator.lip_low3_ctrl_3_l", text="", icon='DOT', emboss=0) - + cheek_ctrls_2_L.alignment = 'CENTER' + cheek_ctrls_2_L.operator("operator.lip_low3_ctrl_1_l", text="", icon='LINK', emboss=0) + cheek_ctrls_2_L.operator("operator.lip_low3_ctrl_2_l", text="", icon='LINK', emboss=0) + cheek_ctrls_2_L.operator("operator.lip_low3_ctrl_3_l", text="", icon='LINK', emboss=0) + # Jaw Ctrls 3 L col_L.separator() - cheek_ctrls_3_L = col_L.row() + cheek_ctrls_3_L = col_L.row() cheek_ctrls_3_L.scale_x = 1 cheek_ctrls_3_L.scale_y = 0.5 - cheek_ctrls_3_L.alignment = 'CENTER' - cheek_ctrls_3_L.operator("operator.chin_ctrl_1_l", text="", icon='DOT', emboss=0) - cheek_ctrls_3_L.operator("operator.chin_ctrl_2_l", text="", icon='DOT', emboss=0) - cheek_ctrls_3_L.operator("operator.chin_ctrl_3_l", text="", icon='DOT', emboss=0) - cheek_ctrls_3_L.operator("operator.cheek_ctrl_5_l", text="", icon='DOT', emboss=0) + cheek_ctrls_3_L.alignment = 'CENTER' + cheek_ctrls_3_L.operator("operator.chin_ctrl_1_l", text="", icon='LINK', emboss=0) + cheek_ctrls_3_L.operator("operator.chin_ctrl_2_l", text="", icon='LINK', emboss=0) + cheek_ctrls_3_L.operator("operator.chin_ctrl_3_l", text="", icon='LINK', emboss=0) + cheek_ctrls_3_L.operator("operator.cheek_ctrl_5_l", text="", icon='LINK', emboss=0) col_space = box_face.column() - col_space.scale_y = 4 - col_space.separator() + col_space.scale_y = 4 + col_space.separator() # Chin jaw_row = box_face.row() jaw_row.scale_x = 2 jaw_row.scale_y = 0.75 - jaw_row.alignment = 'CENTER' - - jaw_ctrls = jaw_row.column(align=1) + jaw_row.alignment = 'CENTER' + + jaw_ctrls = jaw_row.column(align=1) jaw_ctrls.scale_x = 1 jaw_ctrls.scale_y = 1 - jaw_ctrls.alignment = 'CENTER' + jaw_ctrls.alignment = 'CENTER' - chin = jaw_ctrls.row(align=1) + chin = jaw_ctrls.row(align=1) chin.scale_x = 1 chin.scale_y = 0.5 - chin.alignment = 'CENTER' - chin.operator("operator.chin_ctrl", text="") - - # Maxi - maxi = jaw_ctrls.column(align=1) + chin.alignment = 'CENTER' + chin.operator("operator.chin_ctrl", text="") + + # Maxi + maxi = jaw_ctrls.column(align=1) maxi.scale_x = 0.5 maxi.scale_y = 0.8 - maxi.alignment = 'CENTER' - maxi.operator("operator.maxi", text="Maxi") - - # Mouth Str - mouth_str = jaw_ctrls.row(align=1) + maxi.alignment = 'CENTER' + maxi.operator("operator.maxi", text="Maxi") + + # Mouth Str + mouth_str = jaw_ctrls.row(align=1) mouth_str.scale_x = 2 mouth_str.scale_y = 0.5 - mouth_str.alignment = 'CENTER' - mouth_str.operator("operator.mouth_str_ctrl", text="") + mouth_str.alignment = 'CENTER' + mouth_str.operator("operator.mouth_str_ctrl", text="") - #Left Column + #Left Column left_col = face_row.column(align = 1) left_col.scale_x = 0.5 left_col.scale_y = 1 - left_col.alignment = 'CENTER' + left_col.alignment = 'CENTER' col_space = left_col.column() - col_space.scale_y = 15 - col_space.separator() + col_space.scale_y = 15 + col_space.separator() # Ear Up L - ear_up_L = left_col.column() + ear_up_L = left_col.column() ear_up_L.scale_x = 1 ear_up_L.scale_y = 0.5 - ear_up_L.alignment = 'CENTER' - ear_up_L.operator("operator.ear_up_l", text="") - + ear_up_L.alignment = 'CENTER' + ear_up_L.operator("operator.ear_up_l", text="") + # Ear L - ear_L = left_col.column() + ear_L = left_col.column() ear_L.scale_x = 1 ear_L.scale_y = 2 - ear_L.alignment = 'CENTER' - ear_L.operator("operator.ear_l", text="") - + ear_L.alignment = 'CENTER' + ear_L.operator("operator.ear_l", text="") + # Ear Low L - ear_low_L = left_col.column() + ear_low_L = left_col.column() ear_low_L.scale_x = 1 ear_low_L.scale_y = 0.5 - ear_low_L.alignment = 'CENTER' - ear_low_L.operator("operator.ear_low_l", text="") + ear_low_L.alignment = 'CENTER' + ear_low_L.operator("operator.ear_low_l", text="") box_face.separator() - box_face.separator() + box_face.separator() # Inner Mouth inner_col = box.column(align = 1) inner_col.scale_x = 1 inner_col.scale_y = 1 - inner_col.alignment = 'CENTER' - inner_col.label(text='Inner Mouth') - inner_col.separator() - + inner_col.alignment = 'CENTER' + inner_col.label('Inner Mouth') + inner_col.separator() + inner_row = inner_col.row(align = 1) inner_row.scale_x = 1 inner_row.scale_y = 1 - inner_row.alignment = 'CENTER' - + inner_row.alignment = 'CENTER' + # Teeth Column teeth_col = inner_row.column(align = 1) teeth_col.scale_x = 1 teeth_col.scale_y = 1 - teeth_col.alignment = 'CENTER' - + teeth_col.alignment = 'CENTER' + # Teeth Up Ctrls teeth_up_ctrls = teeth_col.row(align=1) teeth_up_ctrls.scale_x = 0.6 teeth_up_ctrls.scale_y = 0.5 - teeth_up_ctrls.alignment = 'CENTER' - teeth_up_ctrls.operator("operator.teeth_up_ctrl_r", text="") - teeth_up_ctrls.operator("operator.teeth_up_ctrl_mid_r", text="") - teeth_up_ctrls.operator("operator.teeth_up_ctrl_mid", text="") - teeth_up_ctrls.operator("operator.teeth_up_ctrl_mid_l", text="") - teeth_up_ctrls.operator("operator.teeth_up_ctrl_l", text="") - + teeth_up_ctrls.alignment = 'CENTER' + teeth_up_ctrls.operator("operator.teeth_up_ctrl_r", text="") + teeth_up_ctrls.operator("operator.teeth_up_ctrl_mid_r", text="") + teeth_up_ctrls.operator("operator.teeth_up_ctrl_mid", text="") + teeth_up_ctrls.operator("operator.teeth_up_ctrl_mid_l", text="") + teeth_up_ctrls.operator("operator.teeth_up_ctrl_l", text="") + # Teeth Up teeth_up = teeth_col.row() - teeth_up.scale_x = 1.2 + teeth_up.scale_x = 1.2 teeth_up.scale_y = 0.8 - teeth_up.alignment = 'CENTER' + teeth_up.alignment = 'CENTER' teeth_up.operator("operator.teeth_up", text="Teeth_up ") - + # Teeth Low teeth_low = teeth_col.row() teeth_low.scale_x = 1.2 teeth_low.scale_y = 0.8 - teeth_low.alignment = 'CENTER' - teeth_low.operator("operator.teeth_low", text="Teeth_low") - + teeth_low.alignment = 'CENTER' + teeth_low.operator("operator.teeth_low", text="Teeth_low") + # Teeth Low Ctrls teeth_low_ctrls = teeth_col.row(align=1) teeth_low_ctrls.scale_x = 0.6 teeth_low_ctrls.scale_y = 0.5 - teeth_low_ctrls.alignment = 'CENTER' - teeth_low_ctrls.operator("operator.teeth_low_ctrl_r", text="") - teeth_low_ctrls.operator("operator.teeth_low_ctrl_mid_r", text="") - teeth_low_ctrls.operator("operator.teeth_low_ctrl_mid", text="") - teeth_low_ctrls.operator("operator.teeth_low_ctrl_mid_l", text="") - teeth_low_ctrls.operator("operator.teeth_low_ctrl_l", text="") - + teeth_low_ctrls.alignment = 'CENTER' + teeth_low_ctrls.operator("operator.teeth_low_ctrl_r", text="") + teeth_low_ctrls.operator("operator.teeth_low_ctrl_mid_r", text="") + teeth_low_ctrls.operator("operator.teeth_low_ctrl_mid", text="") + teeth_low_ctrls.operator("operator.teeth_low_ctrl_mid_l", text="") + teeth_low_ctrls.operator("operator.teeth_low_ctrl_l", text="") + inner_row.separator() inner_row.separator() inner_row.separator() - inner_row.separator() - + inner_row.separator() + # Tongue Column tongue_col = inner_row.column(align = 1) tongue_col.scale_x = 1 tongue_col.scale_y = 1 - tongue_col.alignment = 'CENTER' - tongue_col.separator() - + tongue_col.alignment = 'CENTER' + tongue_col.separator() + tongue_row = tongue_col.row(align=1) tongue_row.scale_x = 0.6 tongue_row.scale_y = 1 - tongue_row.alignment = 'CENTER' - + tongue_row.alignment = 'CENTER' + # Uvula uvula = tongue_row.column(align=1) uvula.scale_x = 0.5 uvula.scale_y = 1 - uvula.alignment = 'CENTER' - uvula.operator("operator.uvula_1", text="") - uvula.operator("operator.uvula_2", text="") - + uvula.alignment = 'CENTER' + uvula.operator("operator.uvula_1", text="") + uvula.operator("operator.uvula_2", text="") + # Tongue Ctrls tongue_ctrl_col = tongue_row.column() tongue_ctrl_col.scale_x = 1 tongue_ctrl_col.scale_y = 1 - tongue_ctrl_col.alignment = 'CENTER' - + tongue_ctrl_col.alignment = 'CENTER' + teeth_low_ctrls = tongue_ctrl_col.row(align=1) teeth_low_ctrls.scale_x = 1 teeth_low_ctrls.scale_y = 0.8 - teeth_low_ctrls.alignment = 'CENTER' - teeth_low_ctrls.operator("operator.tongue_1_fk", text="FK") - teeth_low_ctrls.operator("operator.tongue_2_fk", text="FK") - teeth_low_ctrls.operator("operator.tongue_1_ik", text="IK") - teeth_low_ctrls.operator("operator.tongue_2_ik", text="IK") - teeth_low_ctrls.operator("operator.tongue_3_ik", text="IK") - + teeth_low_ctrls.alignment = 'CENTER' + teeth_low_ctrls.operator("operator.tongue_1_fk", text="FK") + teeth_low_ctrls.operator("operator.tongue_2_fk", text="FK") + teeth_low_ctrls.operator("operator.tongue_1_ik", text="IK") + teeth_low_ctrls.operator("operator.tongue_2_ik", text="IK") + teeth_low_ctrls.operator("operator.tongue_3_ik", text="IK") + # Tongue Mstr tongue_mstr = tongue_ctrl_col.column() - tongue_mstr.operator("operator.tongue_mstr", text="Tongue_mstr") - + tongue_mstr.operator("operator.tongue_mstr", text="Tongue_mstr") + # View box.separator() - row_view_main = box.row(align = 0) + row_view_main = box.row(align = 0) row_view_main.scale_x = 1 row_view_main.scale_y = 1 - row_view_main.alignment = 'CENTER' - - row_view = row_view_main.row(align = 0) + row_view_main.alignment = 'CENTER' + + row_view = row_view_main.row(align = 0) row_view.scale_x = 1 row_view.scale_y = 1 - row_view.alignment = 'CENTER' + row_view.alignment = 'CENTER' row_view.operator("operator.zoom", text="Zoom to Selected", icon='ZOOM_IN') - row_model_res = row_view_main.row(align = 0) + row_model_res = row_view_main.row(align = 0) row_model_res.scale_x = 0.7 row_model_res.scale_y = 1 - row_model_res.alignment = 'CENTER' - row_model_res.prop(arm_bones['properties'], '["model_res"]', text="Model_Res", toggle=True) - - # collapsed box - + row_model_res.alignment = 'CENTER' + row_model_res.prop(arm_bones['properties'], '["model_res"]', "Model_Res", toggle=True) + + # collapsed box + elif "gui_picker_face" in arm: row.operator("gui.blenrig_5_tabs", icon="MOD_MASK", emboss = 1).tab = "gui_picker_face" row.label(text="BLENRIG FACE PICKER") - + ########### Extra Properties if bpy.context.mode == "POSE": @@ -3544,213 +3539,218 @@ class BLENRIG_PT_BlenRig_5_Interface(bpy.types.Panel): row.label(text="EXTRA PROPERTIES") # Teeth - Follow Smile - box.prop(props, "gui_extra_props_head", text = 'Head') + box.prop(props, "gui_extra_props_head", text = 'Head') if props.gui_extra_props_head: - head_col = box.box() + head_col = box.box() head_col.scale_x = 1 - head_col.scale_y = 1 - head_col.alignment = 'CENTER' - head_col.label(text='Teeth - Follow Smile') + head_col.scale_y = 0.5 + head_col.alignment = 'CENTER' + head_col.label('Teeth - Follow Smile') teeth_row = head_col.row() - col_1 = teeth_row.column() + col_1 = teeth_row.column() col_1.scale_x = 1 - col_1.scale_y = 1 - col_1.alignment = 'CENTER' - col_2 = teeth_row.column() + col_1.scale_y = 0.8 + col_1.alignment = 'CENTER' + col_2 = teeth_row.column() col_2.scale_x = 1 - col_2.scale_y = 1 - col_2.alignment = 'CENTER' - col_1.prop(arm_bones['properties_head'], '["toon_teeth_up"]', text="Upper Teeth", slider=True) - col_2.prop(arm_bones['properties_head'], '["toon_teeth_low"]', text="Lower Teeth", slider=True) + col_2.scale_y = 0.8 + col_2.alignment = 'CENTER' + col_1.prop(arm_bones['properties_head'], '["toon_teeth_up"]', "Upper Teeth", slider=True) + col_2.prop(arm_bones['properties_head'], '["toon_teeth_low"]', "Lower Teeth", slider=True) head_col.separator() - # Fleshy Eyes - head_col.label(text='Fleshy Eyes') + # Fleshy Eyes + head_col.label('Fleshy Eyes') fleshy_row = head_col.row() - col_1 = fleshy_row.column() + col_1 = fleshy_row.column() col_1.scale_x = 1 - col_1.scale_y = 1 - col_1.alignment = 'CENTER' - col_2 = fleshy_row.column() + col_1.scale_y = 0.8 + col_1.alignment = 'CENTER' + col_2 = fleshy_row.column() col_2.scale_x = 1 - col_2.scale_y = 1 - col_2.alignment = 'CENTER' - col_1.prop(arm_bones['look_R'], '["FLESHY_EYE_R"]', text="Eye_R", slider=True) - col_2.prop(arm_bones['look_L'], '["FLESHY_EYE_L"]', text="Eye_L", slider=True) - head_col.separator() + col_2.scale_y = 0.8 + col_2.alignment = 'CENTER' + col_1.prop(arm_bones['look_R'], '["FLESHY_EYE_R"]', "Eye_R", slider=True) + col_2.prop(arm_bones['look_L'], '["FLESHY_EYE_L"]', "Eye_L", slider=True) + head_col.separator() + - # Arms - box.prop(props, "gui_extra_props_arms", text = 'Arms') - if props.gui_extra_props_arms: - arms_col = box.box() + box.prop(props, "gui_extra_props_arms", text = 'Arms') + if props.gui_extra_props_arms: + arms_col = box.box() arms_col.scale_x = 1 - arms_col.scale_y = 1 - arms_col.alignment = 'CENTER' - arms_col.label(text='Curved Arms') + arms_col.scale_y = 0.5 + arms_col.alignment = 'CENTER' + arms_col.label('Curved Arms') arms_row = arms_col.row() - col_1 = arms_row.column() + col_1 = arms_row.column() col_1.scale_x = 1 - col_1.scale_y = 1 - col_1.alignment = 'CENTER' - col_2 = arms_row.column() + col_1.scale_y = 0.8 + col_1.alignment = 'CENTER' + col_2 = arms_row.column() col_2.scale_x = 1 - col_2.scale_y = 1 - col_2.alignment = 'CENTER' - col_1.prop(arm_bones['properties_arm_R'], '["curved_arm_R"]', text="Curve_R", slider=True) - col_1.prop(arm_bones['properties_arm_R'], '["curved_arm_tweak_R"]', text="Tweak_R", slider=True) - col_2.prop(arm_bones['properties_arm_L'], '["curved_arm_L"]', text="Curve_L", slider=True) - col_2.prop(arm_bones['properties_arm_L'], '["curved_arm_tweak_L"]', text="Tweak_L", slider=True) + col_2.scale_y = 0.8 + col_2.alignment = 'CENTER' + col_1.prop(arm_bones['properties_arm_R'], '["curved_arm_R"]', "Curve_R", slider=True) + col_1.prop(arm_bones['properties_arm_R'], '["curved_arm_tweak_R"]', "Tweak_R", slider=True) + col_2.prop(arm_bones['properties_arm_L'], '["curved_arm_L"]', "Curve_L", slider=True) + col_2.prop(arm_bones['properties_arm_L'], '["curved_arm_tweak_L"]', "Tweak_L", slider=True) + arms_col.separator() arms_col.separator() - arms_col.separator() - # Elbow Poles - arms_col.label(text='Elbow Poles') + # Elbow Poles + arms_col.label('Elbow Poles') elbows_row = arms_col.row() - col_1 = elbows_row.column() + col_1 = elbows_row.column() col_1.scale_x = 1 - col_1.scale_y = 1 - col_1.alignment = 'CENTER' - col_2 = elbows_row.column() + col_1.scale_y = 0.8 + col_1.alignment = 'CENTER' + col_2 = elbows_row.column() col_2.scale_x = 1 - col_2.scale_y = 1 - col_2.alignment = 'CENTER' - col_1.prop(arm_bones['elbow_pole_R'], '["FOLLOW_TORSO_R"]', text="Follow_Torso_R", slider=True) - col_2.prop(arm_bones['elbow_pole_L'], '["FOLLOW_TORSO_L"]', text="Follow_Torso_L", slider=True) - arms_col.separator() + col_2.scale_y = 0.8 + col_2.alignment = 'CENTER' + col_1.prop(arm_bones['elbow_pole_R'], '["FOLLOW_TORSO_R"]', "Follow_Torso_R", slider=True) + col_2.prop(arm_bones['elbow_pole_L'], '["FOLLOW_TORSO_L"]', "Follow_Torso_L", slider=True) + arms_col.separator() # Fingers - box.prop(props, "gui_extra_props_fingers", text = 'Fingers') - if props.gui_extra_props_fingers: - hands_col = box.box() + box.prop(props, "gui_extra_props_fingers", text = 'Fingers') + if props.gui_extra_props_fingers: + hands_col = box.box() hands_col.scale_x = 1 - hands_col.scale_y = 1 - hands_col.alignment = 'CENTER' + hands_col.scale_y = 0.5 + hands_col.alignment = 'CENTER' hands_row = hands_col.row() - col_1 = hands_row.column() + col_1 = hands_row.column() col_1.scale_x = 1 - col_1.scale_y = 1 - col_1.alignment = 'CENTER' - col_2 = hands_row.column() - col_2.scale_x = 1 - col_2.scale_y = 1 - col_2.alignment = 'CENTER' - col_2.label(text='IK_R') - col_3 = hands_row.column() - col_3.scale_x = 1 - col_3.scale_y = 1 - col_3.alignment = 'CENTER' - col_3.label(text='Hinge_R') - col_4 = hands_row.column() - col_4.scale_x = 1 - col_4.scale_y = 1 - col_4.alignment = 'CENTER' - col_4.label(text='IK_L') - col_5 = hands_row.column() - col_5.scale_x = 1 - col_5.scale_y = 1 - col_5.alignment = 'CENTER' - col_5.label(text='Hinge_L') + col_1.scale_y = 0.8 + col_1.alignment = 'CENTER' + col_2 = hands_row.column() + col_2.scale_x = 0.8 + col_2.scale_y = 0.8 + col_2.alignment = 'CENTER' + col_2.label('IK_R') + col_3 = hands_row.column() + col_3.scale_x = 0.8 + col_3.scale_y = 0.8 + col_3.alignment = 'CENTER' + col_3.label('Hinge_R') + col_4 = hands_row.column() + col_4.scale_x = 0.8 + col_4.scale_y = 0.8 + col_4.alignment = 'CENTER' + col_4.label('IK_L') + col_5 = hands_row.column() + col_5.scale_x = 0.8 + col_5.scale_y = 0.8 + col_5.alignment = 'CENTER' + col_5.label('Hinge_L') col_1.separator() - col_1.separator() - col_1.separator() - col_1.label(text='All') - col_1.label(text='Thumb') - col_1.label(text='Index') - col_1.label(text='Middle') - col_1.label(text='Ring') - col_1.label(text='Little') - col_2.prop(arm_bones['properties_arm_R'], 'ik_fing_all_R', text="", toggle=True, icon_only = 1, emboss = 1) - col_2.prop(arm_bones['properties_arm_R'], 'ik_fing_thumb_R', text="", toggle=True, icon_only = 1, emboss = 1) - col_2.prop(arm_bones['properties_arm_R'], 'ik_fing_ind_R', text="", toggle=True, icon_only = 1, emboss = 1) - col_2.prop(arm_bones['properties_arm_R'], 'ik_fing_mid_R', text="", toggle=True, icon_only = 1, emboss = 1) - col_2.prop(arm_bones['properties_arm_R'], 'ik_fing_ring_R', text="", toggle=True, icon_only = 1, emboss = 1) - col_2.prop(arm_bones['properties_arm_R'], 'ik_fing_lit_R', text="", toggle=True, icon_only = 1, emboss = 1) - col_3.prop(arm_bones['properties_arm_R'], 'hinge_fing_all_R', text="", toggle=True, icon_only = 1, emboss = 1) - col_3.prop(arm_bones['properties_arm_R'], 'hinge_fing_thumb_R', text="", toggle=True, icon_only = 1, emboss = 1) - col_3.prop(arm_bones['properties_arm_R'], 'hinge_fing_ind_R', text="", toggle=True, icon_only = 1, emboss = 1) - col_3.prop(arm_bones['properties_arm_R'], 'hinge_fing_mid_R', text="", toggle=True, icon_only = 1, emboss = 1) - col_3.prop(arm_bones['properties_arm_R'], 'hinge_fing_ring_R', text="", toggle=True, icon_only = 1, emboss = 1) - col_3.prop(arm_bones['properties_arm_R'], 'hinge_fing_lit_R', text="", toggle=True, icon_only = 1, emboss = 1) - col_4.prop(arm_bones['properties_arm_L'], 'ik_fing_all_L', text="", toggle=True, icon_only = 1, emboss = 1) - col_4.prop(arm_bones['properties_arm_L'], 'ik_fing_thumb_L', text="", toggle=True, icon_only = 1, emboss = 1) - col_4.prop(arm_bones['properties_arm_L'], 'ik_fing_ind_L', text="", toggle=True, icon_only = 1, emboss = 1) - col_4.prop(arm_bones['properties_arm_L'], 'ik_fing_mid_L', text="", toggle=True, icon_only = 1, emboss = 1) - col_4.prop(arm_bones['properties_arm_L'], 'ik_fing_ring_L', text="", toggle=True, icon_only = 1, emboss = 1) - col_4.prop(arm_bones['properties_arm_L'], 'ik_fing_lit_L', text="", toggle=True, icon_only = 1, emboss = 1) - col_5.prop(arm_bones['properties_arm_L'], 'hinge_fing_all_L', text="", toggle=True, icon_only = 1, emboss = 1) - col_5.prop(arm_bones['properties_arm_L'], 'hinge_fing_thumb_L', text="", toggle=True, icon_only = 1, emboss = 1) - col_5.prop(arm_bones['properties_arm_L'], 'hinge_fing_ind_L', text="", toggle=True, icon_only = 1, emboss = 1) - col_5.prop(arm_bones['properties_arm_L'], 'hinge_fing_mid_L', text="", toggle=True, icon_only = 1, emboss = 1) - col_5.prop(arm_bones['properties_arm_L'], 'hinge_fing_ring_L', text="", toggle=True, icon_only = 1, emboss = 1) - col_5.prop(arm_bones['properties_arm_L'], 'hinge_fing_lit_L', text="", toggle=True, icon_only = 1, emboss = 1) - hands_col.separator() + col_1.separator() + col_1.separator() + col_1.label('All') + col_1.label('Thumb') + col_1.label('Index') + col_1.label('Middle') + col_1.label('Ring') + col_1.label('Little') + col_2.prop(arm_bones['properties_arm_R'], 'ik_fing_all_R', "", toggle=True, icon_only = 1, emboss = 1) + col_2.prop(arm_bones['properties_arm_R'], 'ik_fing_thumb_R', "", toggle=True, icon_only = 1, emboss = 1) + col_2.prop(arm_bones['properties_arm_R'], 'ik_fing_ind_R', "", toggle=True, icon_only = 1, emboss = 1) + col_2.prop(arm_bones['properties_arm_R'], 'ik_fing_mid_R', "", toggle=True, icon_only = 1, emboss = 1) + col_2.prop(arm_bones['properties_arm_R'], 'ik_fing_ring_R', "", toggle=True, icon_only = 1, emboss = 1) + col_2.prop(arm_bones['properties_arm_R'], 'ik_fing_lit_R', "", toggle=True, icon_only = 1, emboss = 1) + col_3.prop(arm_bones['properties_arm_R'], 'hinge_fing_all_R', "", toggle=True, icon_only = 1, emboss = 1) + col_3.prop(arm_bones['properties_arm_R'], 'hinge_fing_thumb_R', "", toggle=True, icon_only = 1, emboss = 1) + col_3.prop(arm_bones['properties_arm_R'], 'hinge_fing_ind_R', "", toggle=True, icon_only = 1, emboss = 1) + col_3.prop(arm_bones['properties_arm_R'], 'hinge_fing_mid_R', "", toggle=True, icon_only = 1, emboss = 1) + col_3.prop(arm_bones['properties_arm_R'], 'hinge_fing_ring_R', "", toggle=True, icon_only = 1, emboss = 1) + col_3.prop(arm_bones['properties_arm_R'], 'hinge_fing_lit_R', "", toggle=True, icon_only = 1, emboss = 1) + col_4.prop(arm_bones['properties_arm_L'], 'ik_fing_all_L', "", toggle=True, icon_only = 1, emboss = 1) + col_4.prop(arm_bones['properties_arm_L'], 'ik_fing_thumb_L', "", toggle=True, icon_only = 1, emboss = 1) + col_4.prop(arm_bones['properties_arm_L'], 'ik_fing_ind_L', "", toggle=True, icon_only = 1, emboss = 1) + col_4.prop(arm_bones['properties_arm_L'], 'ik_fing_mid_L', "", toggle=True, icon_only = 1, emboss = 1) + col_4.prop(arm_bones['properties_arm_L'], 'ik_fing_ring_L', "", toggle=True, icon_only = 1, emboss = 1) + col_4.prop(arm_bones['properties_arm_L'], 'ik_fing_lit_L', "", toggle=True, icon_only = 1, emboss = 1) + col_5.prop(arm_bones['properties_arm_L'], 'hinge_fing_all_L', "", toggle=True, icon_only = 1, emboss = 1) + col_5.prop(arm_bones['properties_arm_L'], 'hinge_fing_thumb_L', "", toggle=True, icon_only = 1, emboss = 1) + col_5.prop(arm_bones['properties_arm_L'], 'hinge_fing_ind_L', "", toggle=True, icon_only = 1, emboss = 1) + col_5.prop(arm_bones['properties_arm_L'], 'hinge_fing_mid_L', "", toggle=True, icon_only = 1, emboss = 1) + col_5.prop(arm_bones['properties_arm_L'], 'hinge_fing_ring_L', "", toggle=True, icon_only = 1, emboss = 1) + col_5.prop(arm_bones['properties_arm_L'], 'hinge_fing_lit_L', "", toggle=True, icon_only = 1, emboss = 1) + hands_col.separator() + hands_col.separator() + hands_col.separator() + hands_col.separator() + hands_col.separator() + hands_col.separator() # Legs - box.prop(props, "gui_extra_props_legs", text = 'Legs') - if props.gui_extra_props_legs: - legs_col = box.box() + box.prop(props, "gui_extra_props_legs", text = 'Legs') + if props.gui_extra_props_legs: + legs_col = box.box() legs_col.scale_x = 1 - legs_col.scale_y = 1 - legs_col.alignment = 'CENTER' - legs_col.label(text='Curved Legs') + legs_col.scale_y = 0.5 + legs_col.alignment = 'CENTER' + legs_col.label('Curved Legs') legs_row = legs_col.row() - col_1 = legs_row.column() + col_1 = legs_row.column() col_1.scale_x = 1 - col_1.scale_y = 1 - col_1.alignment = 'CENTER' - col_2 = legs_row.column() + col_1.scale_y = 0.8 + col_1.alignment = 'CENTER' + col_2 = legs_row.column() col_2.scale_x = 1 - col_2.scale_y = 1 - col_2.alignment = 'CENTER' - col_1.prop(arm_bones['properties_leg_R'], '["curved_leg_R"]', text="Curve_R", slider=True) - col_1.prop(arm_bones['properties_leg_R'], '["curved_leg_tweak_R"]', text="Tweak_R", slider=True) - col_2.prop(arm_bones['properties_leg_L'], '["curved_leg_L"]', text="Curve_L", slider=True) - col_2.prop(arm_bones['properties_leg_L'], '["curved_leg_tweak_L"]', text="Tweak_L", slider=True) - legs_col.separator() - legs_col.separator() + col_2.scale_y = 0.8 + col_2.alignment = 'CENTER' + col_1.prop(arm_bones['properties_leg_R'], '["curved_leg_R"]', "Curve_R", slider=True) + col_1.prop(arm_bones['properties_leg_R'], '["curved_leg_tweak_R"]', "Tweak_R", slider=True) + col_2.prop(arm_bones['properties_leg_L'], '["curved_leg_L"]', "Curve_L", slider=True) + col_2.prop(arm_bones['properties_leg_L'], '["curved_leg_tweak_L"]', "Tweak_L", slider=True) + legs_col.separator() + legs_col.separator() - # Knee Poles - legs_col.label(text='Knee Poles') + # Knee Poles + legs_col.label('Knee Poles') knees_row = legs_col.row() - col_1 = knees_row.column() + col_1 = knees_row.column() col_1.scale_x = 1 - col_1.scale_y = 1 - col_1.alignment = 'CENTER' - col_2 = knees_row.column() + col_1.scale_y = 0.8 + col_1.alignment = 'CENTER' + col_2 = knees_row.column() col_2.scale_x = 1 - col_2.scale_y = 1 - col_2.alignment = 'CENTER' - col_1.prop(arm_bones['knee_pole_R'], '["FOLLOW_FOOT_R"]', text="Follow_foot_R", slider=True) - col_2.prop(arm_bones['knee_pole_L'], '["FOLLOW_FOOT_L"]', text="Follow_foot_L", slider=True) - legs_col.separator() + col_2.scale_y = 0.8 + col_2.alignment = 'CENTER' + col_1.prop(arm_bones['knee_pole_R'], '["FOLLOW_FOOT_R"]', "Follow_foot_R", slider=True) + col_2.prop(arm_bones['knee_pole_L'], '["FOLLOW_FOOT_L"]', "Follow_foot_L", slider=True) + legs_col.separator() # Accessories - box.prop(props, "gui_extra_props_accessories", text = 'Accessories') - if props.gui_extra_props_accessories: - accessories_col = box.box() + box.prop(props, "gui_extra_props_accessories", text = 'Accessories') + if props.gui_extra_props_accessories: + accessories_col = box.box() accessories_col.scale_x = 1 - accessories_col.scale_y = 1 - accessories_col.alignment = 'CENTER' - accessories_col.label(text='Toggle Sticky or Free') + accessories_col.scale_y = 0.5 + accessories_col.alignment = 'CENTER' + accessories_col.label('Toggle Sticky or Free') accessories_row = accessories_col.row() - col_1 = accessories_row.column() + col_1 = accessories_row.column() col_1.scale_x = 1 - col_1.scale_y = 1 - col_1.alignment = 'CENTER' - col_2 = accessories_row.column() + col_1.scale_y = 0.8 + col_1.alignment = 'CENTER' + col_2 = accessories_row.column() col_2.scale_x = 1 - col_2.scale_y = 1 - col_2.alignment = 'CENTER' - col_1.prop(arm_bones['properties_head'], '["hat_free"]', text="Hat", toggle=True, icon_only = 0, emboss = 1) - col_1.prop(arm_bones['properties_arm_R'], '["hand_accessory_R"]', text="Hand_R", slider=True, icon_only = 0, emboss = 1) - col_2.prop(arm_bones['properties_head'], '["glasses_free"]', text="Glasses", toggle=True, icon_only = 0, emboss = 1) - col_2.prop(arm_bones['properties_arm_L'], '["hand_accessory_L"]', text="Hand_L", slider=True, icon_only = 0, emboss = 1) - accessories_col.separator() - accessories_col.separator() + col_2.scale_y = 0.8 + col_2.alignment = 'CENTER' + col_1.prop(arm_bones['properties_head'], '["hat_free"]', "Hat", toggle=True, icon_only = 0, emboss = 1) + col_1.prop(arm_bones['properties_arm_R'], '["hand_accessory_R"]', "Hand_R", slider=True, icon_only = 0, emboss = 1) + col_2.prop(arm_bones['properties_head'], '["glasses_free"]', "Glasses", toggle=True, icon_only = 0, emboss = 1) + col_2.prop(arm_bones['properties_arm_L'], '["hand_accessory_L"]', "Hand_L", slider=True, icon_only = 0, emboss = 1) + accessories_col.separator() + accessories_col.separator() box.separator() - box.separator() + box.separator() # collapsed box elif "gui_misc" in arm: @@ -3771,40 +3771,40 @@ class BLENRIG_PT_BlenRig_5_Interface(bpy.types.Panel): # Head Accessories col = box.column() - row_rot = col.row() - col_rot = row_rot.column() + row_rot = col.row() + col_rot = row_rot.column() if act_bone is not None: for cust_prop in act_bone.keys(): if cust_prop == 'ROT_MODE': - col_rot.separator() - col_rot.label(text = 'ACTIVE BONE ROTATION ORDER', icon = "AXIS_TOP") - box_rot = col_rot.box() - box_rot.prop(act_bone, '["ROT_MODE"]', toggle=True) - col_rot.separator() - col_rot.separator() + col_rot.separator() + col_rot.label(text = 'ACTIVE BONE ROTATION ORDER', icon = "AXIS_TOP") + box_rot = col_rot.box() + box_rot.prop(act_bone, '["ROT_MODE"]', toggle=True) + col_rot.separator() + col_rot.separator() - row_props = col.row() - col_props = row_props.column() - col_props.label(text ='CUSTOM PROPERTIES', icon = "BONE_DATA") + row_props = col.row() + col_props = row_props.column() + col_props.label(text ='CUSTOM PROPERTIES', icon = "BONE_DATA") row_all = col_props.row() row_all.alignment = "LEFT" - row_all.prop(props, "gui_cust_props_all", text="All") - col_props.separator() + row_all.prop(props, "gui_cust_props_all", text="All") + col_props.separator() if not props.gui_cust_props_all: - if act_bone is not None: - if ('properties' not in act_bone.name): + if act_bone is not None: + if ('properties' not in act_bone.name): for cust_prop in act_bone.keys(): excluded = ['_RNA_UI', 'ROT_MODE'] if (cust_prop not in excluded): box_props = col_props.box() - box_props.prop(act_bone, '["{}"]'.format(cust_prop)) - if props.gui_cust_props_all: + box_props.prop(act_bone, '["{}"]'.format(cust_prop)) + if props.gui_cust_props_all: for b in arm_bones: - if ('properties' not in b.name ): + if ('properties' not in b.name ): for cust_prop in b.keys(): - if cust_prop != '_RNA_UI' and cust_prop != 'ROT_MODE': - box_props = col_props.box() - box_props.prop(b, '["{}"]'.format(cust_prop), text = '["{} {}"]'.format(b.name, cust_prop)) + if cust_prop != '_RNA_UI' and cust_prop != 'ROT_MODE': + box_props = col_props.box() + box_props.prop(b, '["{}"]'.format(cust_prop), text = '["{} {}"]'.format(b.name, cust_prop)) col_props.separator() # collapsed box @@ -3842,11 +3842,11 @@ class BLENRIG_PT_BlenRig_5_Interface(bpy.types.Panel): # Extras Deformation col = box.column() - col.prop(arm_bones['properties'], '["deformation_extras"]', text="Deformation Extras", toggle=True) + col.prop(arm_bones['properties'], '["deformation_extras"]', "Deformation Extras", toggle=True) # collapsed box elif "gui_muscle" in arm: row.operator("gui.blenrig_5_tabs", icon="FORCE_LENNARDJONES", emboss = 1).tab = "gui_muscle" - row.label(text="MUSCLE SYSTEM") - - + row.label("MUSCLE SYSTEM") + + diff --git a/ui_panel_rigging.py b/ui_panel_rigging.py index d315e8a..6ecc69e 100644 --- a/ui_panel_rigging.py +++ b/ui_panel_rigging.py @@ -15,13 +15,13 @@ class BLENRIG_PT_BlenRig_5_rigging_panel(bpy.types.Panel): return False if (bpy.context.active_object.type in ["ARMATURE"]): for prop in bpy.context.active_object.data.items(): - if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': - return True + if prop[0] == 'rig_name' and prop[1] == 'BlenRig_5': + return True def draw(self, context): - arm = bpy.context.active_object - arm_data = bpy.context.active_object.data - p_bones = arm.pose.bones + arm = bpy.context.active_object + arm_data = bpy.context.active_object.data + p_bones = arm.pose.bones layout = self.layout ####### Body Settings @@ -30,508 +30,508 @@ class BLENRIG_PT_BlenRig_5_rigging_panel(bpy.types.Panel): box = layout.column() col = box.column() row = col.row() - # expanded box + # expanded box if "gui_rig_body" in arm_data and arm_data["gui_rig_body"]: - row.operator("gui.blenrig_5_tabs", icon="OUTLINER_OB_ARMATURE", emboss = 1).tab = "gui_rig_body" + row.operator("gui.blenrig_5_tabs", icon="OUTLINER_OB_ARMATURE", emboss = 1).tab = "gui_rig_body" row.label(text="BODY SETTINGS") - col.separator() + col.separator() # IK Initial Rotation - col.prop(props, "gui_body_ik_rot", text = 'IK:') + col.prop(props, "gui_body_ik_rot", text = 'IK:') if props.gui_body_ik_rot: - box = col.box() - box.label(text="IK Initial Rotation:") + box = col.box() + box.label("IK Initial Rotation:") row_props = box.row() col_R = row_props.column() - col_L = row_props.column() + col_L = row_props.column() for b in p_bones: - if '_R' in b.name: + if '_R' in b.name: for C in b.constraints: if C.name == 'Ik_Initial_Rotation': - col_R.prop(C, 'to_min_x_rot', text = "{}".format(b.name), toggle=True) + col_R.prop(C, 'to_min_x_rot', text = "{}".format(b.name), toggle=True) for b in p_bones: if '_L' in b.name: for C in b.constraints: if C.name == 'Ik_Initial_Rotation': - col_L.prop(C, 'to_min_x_rot', text = "{}".format(b.name), toggle=True) + col_L.prop(C, 'to_min_x_rot', text = "{}".format(b.name), toggle=True) # Atuomated Movement - col.prop(props, "gui_body_auto_move", text = 'Automated Movement:') - if props.gui_body_auto_move: - box = col.box() - box.label(text="IK Auto Shoulder:") + col.prop(props, "gui_body_auto_move", text = 'Automated Movement:') + if props.gui_body_auto_move: + box = col.box() + box.label("IK Auto Shoulder:") row_props = box.row() col_R = row_props.column() - col_L = row_props.column() + col_L = row_props.column() for b in p_bones: - if 'shoulder' in b.name: + if 'shoulder' in b.name: if '_R' in b.name: for cust_prop in b.keys(): if 'SHLDR_AUTO' in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{} {}".format(b.name, ((cust_prop).replace('SHLDR_AUTO_', '').replace('_R', ''))), toggle=True) + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{} {}".format(b.name, ((cust_prop).replace('SHLDR_AUTO_', '').replace('_R', ''))), toggle=True) for b in p_bones: - if 'shoulder' in b.name: + if 'shoulder' in b.name: if '_L' in b.name: for cust_prop in b.keys(): if 'SHLDR_AUTO' in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{} {}".format(b.name, ((cust_prop).replace('SHLDR_AUTO_', '').replace('_L', ''))), toggle=True) - box = col.box() - row_props = box.row() + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{} {}".format(b.name, ((cust_prop).replace('SHLDR_AUTO_', '').replace('_L', ''))), toggle=True) + box = col.box() + row_props = box.row() col_R = row_props.column() - col_L = row_props.column() - col_R.label(text='Torso FK Ctrl Influence:') - col_R.prop(p_bones['spine_1_fk'], '["fk_follow_main"]', text="Spine 1", toggle=True) - col_R.prop(p_bones['spine_2_fk'], '["fk_follow_main"]', text="Spine 2", toggle=True) - col_R.prop(p_bones['spine_3_fk'], '["fk_follow_main"]', text="Spine 3", toggle=True) - col_R.label(text='Torso INV Ctrl Influence:') - col_R.prop(p_bones['spine_2_inv'], '["fk_follow_main"]', text="Spine 2 inv", toggle=True) - col_R.prop(p_bones['spine_1_inv'], '["fk_follow_main"]', text="Spine 1 inv", toggle=True) - col_R.prop(p_bones['pelvis_inv'], '["fk_follow_main"]', text="Pelvis inv", toggle=True) - col_L.label(text='Neck FK Ctrl Influence:') - col_L.prop(p_bones['neck_1_fk'], '["fk_follow_main"]', text="Neck 1", toggle=True) - col_L.prop(p_bones['neck_2_fk'], '["fk_follow_main"]', text="Neck 2", toggle=True) - col_L.prop(p_bones['neck_3_fk'], '["fk_follow_main"]', text="Neck 3", toggle=True) - - box = col.box() - row_props = box.row() + col_L = row_props.column() + col_R.label('Torso FK Ctrl Influence:') + col_R.prop(p_bones['spine_1_fk'], '["fk_follow_main"]', "Spine 1", toggle=True) + col_R.prop(p_bones['spine_2_fk'], '["fk_follow_main"]', "Spine 2", toggle=True) + col_R.prop(p_bones['spine_3_fk'], '["fk_follow_main"]', "Spine 3", toggle=True) + col_R.label('Torso INV Ctrl Influence:') + col_R.prop(p_bones['spine_2_inv'], '["fk_follow_main"]', "Spine 2 inv", toggle=True) + col_R.prop(p_bones['spine_1_inv'], '["fk_follow_main"]', "Spine 1 inv", toggle=True) + col_R.prop(p_bones['pelvis_inv'], '["fk_follow_main"]', "Pelvis inv", toggle=True) + col_L.label('Neck FK Ctrl Influence:') + col_L.prop(p_bones['neck_1_fk'], '["fk_follow_main"]', "Neck 1", toggle=True) + col_L.prop(p_bones['neck_2_fk'], '["fk_follow_main"]', "Neck 2", toggle=True) + col_L.prop(p_bones['neck_3_fk'], '["fk_follow_main"]', "Neck 3", toggle=True) + + box = col.box() + row_props = box.row() col_R = row_props.column() - col_L = row_props.column() - col_R.label(text='Foot Roll R:') - col_L.label(text='Foot Roll L:') + col_L = row_props.column() + col_R.label('Foot Roll R:') + col_L.label('Foot Roll L:') for b in p_bones: - if 'foot_roll_ctrl_R' in b.name: + if 'foot_roll_ctrl_R' in b.name: for cust_prop in b.keys(): if 'ROLL' in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format((cust_prop).replace('_L', '')), toggle=True) + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format((cust_prop).replace('_L', '')), toggle=True) for b in p_bones: - if 'foot_roll_ctrl_L' in b.name: + if 'foot_roll_ctrl_L' in b.name: for cust_prop in b.keys(): if 'ROLL' in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format((cust_prop).replace('_L', '')), toggle=True) - + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format((cust_prop).replace('_L', '')), toggle=True) + # Realistic Joints - col.prop(props, "gui_body_rj", text = 'Realistic Joints:') - if props.gui_body_rj: - box = col.box() - box.label(text="Bone Movement") - row_props = box.row() + col.prop(props, "gui_body_rj", text = 'Realistic Joints:') + if props.gui_body_rj: + box = col.box() + box.label("Bone Movement") + row_props = box.row() col_R = row_props.column() - col_L = row_props.column() + col_L = row_props.column() for b in p_bones: - if 'properties' in b.name: - if 'arm' in b.name: + if 'properties' in b.name: + if 'arm' in b.name: if '_R' in b.name: for cust_prop in b.keys(): if 'realistic_joints' in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop).replace('realistic_joints_', ''), toggle=True) + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop).replace('realistic_joints_', ''), toggle=True) col_R.separator() for b in p_bones: - if 'properties' in b.name: - if 'leg' in b.name: + if 'properties' in b.name: + if 'leg' in b.name: if '_R' in b.name: for cust_prop in b.keys(): if 'realistic_joints' in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop).replace('realistic_joints_', ''), toggle=True) + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop).replace('realistic_joints_', ''), toggle=True) for b in p_bones: - if 'properties' in b.name: - if 'arm' in b.name: + if 'properties' in b.name: + if 'arm' in b.name: if '_L' in b.name: for cust_prop in b.keys(): if 'realistic_joints' in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop).replace('realistic_joints_', ''), toggle=True) + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop).replace('realistic_joints_', ''), toggle=True) col_L.separator() for b in p_bones: - if 'properties' in b.name: - if 'leg' in b.name: + if 'properties' in b.name: + if 'leg' in b.name: if '_L' in b.name: for cust_prop in b.keys(): if 'realistic_joints' in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop).replace('realistic_joints_', ''), toggle=True) + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop).replace('realistic_joints_', ''), toggle=True) # Body Toggles - col.prop(props, "gui_body_toggles", text = 'Toggles:') - if props.gui_body_toggles: - box = col.box() - row_props = box.row() + col.prop(props, "gui_body_toggles", text = 'Toggles:') + if props.gui_body_toggles: + box = col.box() + row_props = box.row() col_R = row_props.column() - col_L = row_props.column() + col_L = row_props.column() for b in p_bones: - if 'properties' in b.name: - if 'arm' in b.name: + if 'properties' in b.name: + if 'arm' in b.name: if '_R' in b.name: for cust_prop in b.keys(): if 'toggle' in cust_prop: - col_R.prop(b, '{}'.format(cust_prop)) + col_R.prop(b, '{}'.format(cust_prop)) for b in p_bones: - if 'properties' in b.name: - if 'leg' in b.name: + if 'properties' in b.name: + if 'leg' in b.name: if '_R' in b.name: for cust_prop in b.keys(): if 'toggle' in cust_prop: - col_R.prop(b, '{}'.format(cust_prop)) + col_R.prop(b, '{}'.format(cust_prop)) for b in p_bones: - if 'properties' in b.name: - if 'arm' in b.name: + if 'properties' in b.name: + if 'arm' in b.name: if '_L' in b.name: for cust_prop in b.keys(): if 'toggle' in cust_prop: - col_L.prop(b, '{}'.format(cust_prop)) + col_L.prop(b, '{}'.format(cust_prop)) for b in p_bones: - if 'properties' in b.name: - if 'leg' in b.name: + if 'properties' in b.name: + if 'leg' in b.name: if '_L' in b.name: for cust_prop in b.keys(): if 'toggle' in cust_prop: - col_L.prop(b, '{}'.format(cust_prop)) - + col_L.prop(b, '{}'.format(cust_prop)) + else: row.operator("gui.blenrig_5_tabs", icon="ARMATURE_DATA", emboss = 1).tab = "gui_rig_body" - row.label(text="BODY SETTINGS") + row.label(text="BODY SETTINGS") ####### Facial Settings if "gui_rig_face" in arm_data: props = context.window_manager.blenrig_5_props box = layout.column() col = box.column() row = col.row() - # expanded box + # expanded box if "gui_rig_face" in arm_data and arm_data["gui_rig_face"]: - row.operator("gui.blenrig_5_tabs", icon="MONKEY", emboss = 1).tab = "gui_rig_face" + row.operator("gui.blenrig_5_tabs", icon="MONKEY", emboss = 1).tab = "gui_rig_face" row.label(text="FACIAL SETTINGS") col.separator # Face movement ranges col.prop(props, "gui_face_movement_ranges", text = 'Facial Movement Ranges:') - if props.gui_face_movement_ranges: - box = col.box() + if props.gui_face_movement_ranges: + box = col.box() row_props = box.row() col_R = row_props.column() - col_L = row_props.column() - col_R.label(text="Mouth_Corner_R") + col_L = row_props.column() + col_R.label(text="Mouth_Corner_R") for b in p_bones: - if 'mouth_corner' in b.name: + if 'mouth_corner' in b.name: if '_R' in b.name: for cust_prop in b.keys(): - if '_RNA_UI' not in cust_prop: - if 'ACTION' not in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '').replace('_R', '')), toggle=True) - col_L.label(text="Mouth_Corner_L") + if '_RNA_UI' not in cust_prop: + if 'ACTION' not in cust_prop: + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '').replace('_R', '')), toggle=True) + col_L.label(text="Mouth_Corner_L") for b in p_bones: - if 'mouth_corner' in b.name: + if 'mouth_corner' in b.name: if '_L' in b.name: for cust_prop in b.keys(): - if '_RNA_UI' not in cust_prop: + if '_RNA_UI' not in cust_prop: if 'ACTION' not in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '').replace('_L', '')), toggle=True) - box = col.box() - box.label(text="Mouth_Ctrl") + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '').replace('_L', '')), toggle=True) + box = col.box() + box.label(text="Mouth_Ctrl") row_props = box.row() col_R = row_props.column() - col_L = row_props.column() + col_L = row_props.column() for b in p_bones: - if 'mouth_ctrl' in b.name: + if 'mouth_ctrl' in b.name: for cust_prop in b.keys(): if 'OUT' in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '')), toggle=True) + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '')), toggle=True) if 'SMILE' in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '')), toggle=True) + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '')), toggle=True) if 'IN' in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '')), toggle=True) + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '')), toggle=True) if 'JAW' in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '')), toggle=True) - if 'maxi' in b.name: + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '')), toggle=True) + if 'maxi' in b.name: for cust_prop in b.keys(): - if 'ACTION' not in cust_prop: + if 'ACTION' not in cust_prop: if 'UP' in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '')), toggle=True) + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '')), toggle=True) if 'DOWN' in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '')), toggle=True) - box = col.box() + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '')), toggle=True) + box = col.box() row_props = box.row() col_R = row_props.column() - col_L = row_props.column() - col_R.label(text="Mouth_Frown_R") + col_L = row_props.column() + col_R.label(text="Mouth_Frown_R") for b in p_bones: - if 'mouth_frown' in b.name: + if 'mouth_frown' in b.name: if '_R' in b.name: for cust_prop in b.keys(): - if '_RNA_UI' not in cust_prop: + if '_RNA_UI' not in cust_prop: if 'ACTION' not in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT_R', '')), toggle=True) - col_L.label(text="Mouth_Frown_L") + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT_R', '')), toggle=True) + col_L.label(text="Mouth_Frown_L") for b in p_bones: - if 'mouth_frown' in b.name: + if 'mouth_frown' in b.name: if '_L' in b.name: for cust_prop in b.keys(): - if '_RNA_UI' not in cust_prop: + if '_RNA_UI' not in cust_prop: if 'ACTION' not in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT_L', '')), toggle=True) - box = col.box() + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT_L', '')), toggle=True) + box = col.box() row_props = box.row() col_R = row_props.column() - col_L = row_props.column() - col_R.label(text="Cheek_Ctrl_R") - col_L.label(text="Cheek_Ctrl_L") + col_L = row_props.column() + col_R.label(text="Cheek_Ctrl_R") + col_L.label(text="Cheek_Ctrl_L") for b in p_bones: - if 'cheek_ctrl' in b.name: - if '_R'in b.name: + if 'cheek_ctrl' in b.name: + if '_R'in b.name: for cust_prop in b.keys(): - if '_RNA_UI' not in cust_prop: + if '_RNA_UI' not in cust_prop: if 'ACTION' not in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_R', '').replace('_LIMIT', '')), toggle=True) - if '_L'in b.name: + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_R', '').replace('_LIMIT', '')), toggle=True) + if '_L'in b.name: for cust_prop in b.keys(): - if '_RNA_UI' not in cust_prop: + if '_RNA_UI' not in cust_prop: if 'ACTION' not in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '').replace('_L', '')), toggle=True) - box = col.box() + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '').replace('_L', '')), toggle=True) + box = col.box() row_props = box.row() col_R = row_props.column() - col_L = row_props.column() - col_R.label(text="Nose_Frown_R") + col_L = row_props.column() + col_R.label(text="Nose_Frown_R") for b in p_bones: - if 'nose_frown' in b.name: + if 'nose_frown' in b.name: if '_R' in b.name: for cust_prop in b.keys(): - if '_RNA_UI' not in cust_prop: + if '_RNA_UI' not in cust_prop: if 'ACTION' not in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT_R', '')), toggle=True) - col_L.label(text="Nose_Frown_L") + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT_R', '')), toggle=True) + col_L.label(text="Nose_Frown_L") for b in p_bones: - if 'nose_frown' in b.name: + if 'nose_frown' in b.name: if '_L' in b.name: for cust_prop in b.keys(): - if '_RNA_UI' not in cust_prop: + if '_RNA_UI' not in cust_prop: if 'ACTION' not in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT_L', '')), toggle=True) - box = col.box() + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT_L', '')), toggle=True) + box = col.box() row_props = box.row() col_R = row_props.column() - col_L = row_props.column() - col_R.label(text="Eyelid_Low_R") - col_L.label(text="Eyelid_Low_L") + col_L = row_props.column() + col_R.label(text="Eyelid_Low_R") + col_L.label(text="Eyelid_Low_L") for b in p_bones: - if 'eyelid_low_ctrl' in b.name: - if '_R'in b.name: + if 'eyelid_low_ctrl' in b.name: + if '_R'in b.name: for cust_prop in b.keys(): - if '_RNA_UI' not in cust_prop: + if '_RNA_UI' not in cust_prop: if 'ACTION' not in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_R', '').replace('_LIMIT', '')), toggle=True) - if '_L'in b.name: + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_R', '').replace('_LIMIT', '')), toggle=True) + if '_L'in b.name: for cust_prop in b.keys(): - if '_RNA_UI' not in cust_prop: + if '_RNA_UI' not in cust_prop: if 'ACTION' not in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '').replace('_L', '')), toggle=True) - col_R.label(text="Eyelid_Up_R") - col_L.label(text="Eyelid_Up_L") + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '').replace('_L', '')), toggle=True) + col_R.label(text="Eyelid_Up_R") + col_L.label(text="Eyelid_Up_L") for b in p_bones: - if 'eyelid_up_ctrl' in b.name: - if '_R'in b.name: + if 'eyelid_up_ctrl' in b.name: + if '_R'in b.name: for cust_prop in b.keys(): - if '_RNA_UI' not in cust_prop: + if '_RNA_UI' not in cust_prop: if 'ACTION' not in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_R', '').replace('_LIMIT', '')), toggle=True) - if '_L'in b.name: + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_R', '').replace('_LIMIT', '')), toggle=True) + if '_L'in b.name: for cust_prop in b.keys(): - if '_RNA_UI' not in cust_prop: + if '_RNA_UI' not in cust_prop: if 'ACTION' not in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '').replace('_L', '')), toggle=True) - # Face action toggles + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_LIMIT', '').replace('_L', '')), toggle=True) + # Face action toggles col.prop(props, "gui_face_action_toggles", text = 'Action Toggles:') - if props.gui_face_action_toggles: - box = col.box() + if props.gui_face_action_toggles: + box = col.box() row_props = box.row() col_R = row_props.column() - col_L = row_props.column() - col_R.label(text="Mouth_Corner_R") + col_L = row_props.column() + col_R.label(text="Mouth_Corner_R") for b in p_bones: - if 'mouth_corner' in b.name: + if 'mouth_corner' in b.name: if '_R' in b.name: for cust_prop in b.keys(): if 'ACTION' in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('ACTION_', '').replace('_R', '')), toggle=True) - col_L.label(text="Mouth_Corner_L") + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('ACTION_', '').replace('_R', '')), toggle=True) + col_L.label(text="Mouth_Corner_L") for b in p_bones: - if 'mouth_corner' in b.name: + if 'mouth_corner' in b.name: if '_L' in b.name: for cust_prop in b.keys(): if 'ACTION'in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('ACTION_', '').replace('_L', '')), toggle=True) - box = col.box() - box.label(text="Mouth_Ctrl") + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('ACTION_', '').replace('_L', '')), toggle=True) + box = col.box() + box.label(text="Mouth_Ctrl") row_props = box.row() col_R = row_props.column() - col_L = row_props.column() + col_L = row_props.column() for b in p_bones: - if 'mouth_ctrl' in b.name: + if 'mouth_ctrl' in b.name: for cust_prop in b.keys(): if 'ACTION' in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('ACTION_', '')), toggle=True) - if 'maxi' in b.name: + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('ACTION_', '')), toggle=True) + if 'maxi' in b.name: for cust_prop in b.keys(): - if 'ACTION' in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('ACTION', 'JAW')), toggle=True) - box = col.box() + if 'ACTION' in cust_prop: + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('ACTION', 'JAW')), toggle=True) + box = col.box() row_props = box.row() col_R = row_props.column() - col_L = row_props.column() - col_R.label(text="Cheek_Ctrl_R") - col_L.label(text="Cheek_Ctrl_L") + col_L = row_props.column() + col_R.label(text="Cheek_Ctrl_R") + col_L.label(text="Cheek_Ctrl_L") for b in p_bones: - if 'cheek_ctrl' in b.name: - if '_R'in b.name: + if 'cheek_ctrl' in b.name: + if '_R'in b.name: for cust_prop in b.keys(): if 'ACTION' in cust_prop: - col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_R', '').replace('ACTION_', '')), toggle=True) - if '_L'in b.name: + col_R.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('_R', '').replace('ACTION_', '')), toggle=True) + if '_L'in b.name: for cust_prop in b.keys(): if 'ACTION' in cust_prop: - col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('ACTION_', '').replace('_L', '')), toggle=True) + col_L.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('ACTION_', '').replace('_L', '')), toggle=True) # Lip Shaping col.prop(props, "gui_face_lip_shaping", text = 'Lip Shaping:') - if props.gui_face_lip_shaping: - box = col.box() + if props.gui_face_lip_shaping: + box = col.box() row_props = box.row() col_1 = row_props.column() - col_1.label(text="Follow Left Corner") - col_2 = row_props.column() + col_1.label("Follow Left Corner") + col_2 = row_props.column() col_2.scale_x = 0.6 - col_2.label(text="X:") + col_2.label("X:") col_3 = row_props.column() - col_3.label(text="Y:") - col_3.scale_x = 0.6 - col_4 = row_props.column() - col_4.label(text="Z:") - col_4.scale_x = 0.6 + col_3.label("Y:") + col_3.scale_x = 0.6 + col_4 = row_props.column() + col_4.label("Z:") + col_4.scale_x = 0.6 for b in p_bones: - if 'lip_up_ctrl_1_mstr_L' in b.name: - col_1.label(text="{}".format(b.name.replace('_mstr', ''))) + if 'lip_up_ctrl_1_mstr_L' in b.name: + col_1.label("{}".format(b.name.replace('_mstr', ''))) for cust_prop in b.keys(): if '_X_' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Y_' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Z_' in cust_prop: - col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) for b in p_bones: - if 'lip_low_ctrl_1_mstr_L' in b.name: - col_1.label(text="{}".format(b.name.replace('_mstr', ''))) + if 'lip_low_ctrl_1_mstr_L' in b.name: + col_1.label("{}".format(b.name.replace('_mstr', ''))) for cust_prop in b.keys(): if '_X_' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Y_' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Z_' in cust_prop: - col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) for b in p_bones: - if 'lip_up_ctrl_2_mstr_L' in b.name: - col_1.label(text="{}".format(b.name.replace('_mstr', ''))) + if 'lip_up_ctrl_2_mstr_L' in b.name: + col_1.label("{}".format(b.name.replace('_mstr', ''))) for cust_prop in b.keys(): if '_X_' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Y_' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Z_' in cust_prop: - col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) for b in p_bones: - if 'lip_low_ctrl_2_mstr_L' in b.name: - col_1.label(text="{}".format(b.name.replace('_mstr', ''))) + if 'lip_low_ctrl_2_mstr_L' in b.name: + col_1.label("{}".format(b.name.replace('_mstr', ''))) for cust_prop in b.keys(): if '_X_' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Y_' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Z_' in cust_prop: - col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) for b in p_bones: - if 'lip_up_ctrl_3_mstr_L' in b.name: - col_1.label(text="{}".format(b.name.replace('_mstr', ''))) + if 'lip_up_ctrl_3_mstr_L' in b.name: + col_1.label("{}".format(b.name.replace('_mstr', ''))) for cust_prop in b.keys(): if '_X_' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Y_' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Z_' in cust_prop: - col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) for b in p_bones: - if 'lip_low_ctrl_3_mstr_L' in b.name: - col_1.label(text="{}".format(b.name.replace('_mstr', ''))) + if 'lip_low_ctrl_3_mstr_L' in b.name: + col_1.label("{}".format(b.name.replace('_mstr', ''))) for cust_prop in b.keys(): if '_X_' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Y_' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Z_' in cust_prop: - col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) row_props = box.row() col_1 = row_props.column() - col_1.label(text="Follow Right Corner") - col_2 = row_props.column() + col_1.label("Follow Right Corner") + col_2 = row_props.column() col_2.scale_x = 0.6 - col_2.label(text="X:") + col_2.label("X:") col_3 = row_props.column() - col_3.label(text="Y:") - col_3.scale_x = 0.6 - col_4 = row_props.column() - col_4.label(text="Z:") - col_4.scale_x = 0.6 + col_3.label("Y:") + col_3.scale_x = 0.6 + col_4 = row_props.column() + col_4.label("Z:") + col_4.scale_x = 0.6 for b in p_bones: - if 'lip_up_ctrl_1_mstr_R' in b.name: - col_1.label(text="{}".format(b.name.replace('_mstr', ''))) + if 'lip_up_ctrl_1_mstr_R' in b.name: + col_1.label("{}".format(b.name.replace('_mstr', ''))) for cust_prop in b.keys(): if '_X_' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Y_' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Z_' in cust_prop: - col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) for b in p_bones: - if 'lip_low_ctrl_1_mstr_R' in b.name: - col_1.label(text="{}".format(b.name.replace('_mstr', ''))) + if 'lip_low_ctrl_1_mstr_R' in b.name: + col_1.label("{}".format(b.name.replace('_mstr', ''))) for cust_prop in b.keys(): if '_X_' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Y_' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Z_' in cust_prop: - col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) for b in p_bones: - if 'lip_up_ctrl_2_mstr_R' in b.name: - col_1.label(text="{}".format(b.name.replace('_mstr', ''))) + if 'lip_up_ctrl_2_mstr_R' in b.name: + col_1.label("{}".format(b.name.replace('_mstr', ''))) for cust_prop in b.keys(): if '_X_' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Y_' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Z_' in cust_prop: - col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) for b in p_bones: - if 'lip_low_ctrl_2_mstr_R' in b.name: - col_1.label(text="{}".format(b.name.replace('_mstr', ''))) + if 'lip_low_ctrl_2_mstr_R' in b.name: + col_1.label("{}".format(b.name.replace('_mstr', ''))) for cust_prop in b.keys(): if '_X_' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Y_' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Z_' in cust_prop: - col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) for b in p_bones: - if 'lip_up_ctrl_3_mstr_R' in b.name: - col_1.label(text="{}".format(b.name.replace('_mstr', ''))) + if 'lip_up_ctrl_3_mstr_R' in b.name: + col_1.label("{}".format(b.name.replace('_mstr', ''))) for cust_prop in b.keys(): if '_X_' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Y_' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Z_' in cust_prop: - col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) for b in p_bones: - if 'lip_low_ctrl_3_mstr_R' in b.name: - col_1.label(text="{}".format(b.name.replace('_mstr', ''))) + if 'lip_low_ctrl_3_mstr_R' in b.name: + col_1.label("{}".format(b.name.replace('_mstr', ''))) for cust_prop in b.keys(): if '_X_' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Y_' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_3.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) if '_Z_' in cust_prop: - col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) + col_4.prop(b, '["{}"]'.format(cust_prop), text = '%', icon_only = True, toggle=True) col.separator - + else: row.operator("gui.blenrig_5_tabs", icon="MESH_MONKEY", emboss = 1).tab = "gui_rig_face" row.label(text="FACIAL SETTINGS") @@ -541,288 +541,275 @@ class BLENRIG_PT_BlenRig_5_rigging_panel(bpy.types.Panel): box = layout.column() col = box.column() row = col.row() - # expanded box + # expanded box if "gui_rig_layers" in arm_data and arm_data["gui_rig_layers"]: - row.operator("gui.blenrig_5_tabs", icon="RENDERLAYERS", emboss = 1).tab = "gui_rig_layers" + row.operator("gui.blenrig_5_tabs", icon="RENDERLAYERS", emboss = 1).tab = "gui_rig_layers" row.label(text="LAYERS SETTING") col.separator - box = col.box() - col_2 = box.column() - row_props = col_2.row() - row_props.scale_y = 0.75 - row_props.scale_x = 1 - row_props.alignment = 'LEFT' - row_props.prop(arm_data, '["layers_count"]', text="Layers", toggle=True) + box = col.box() + col_2 = box.column() + row_props = col_2.row() + row_props.scale_y = 0.75 + row_props.scale_x = 1 + row_props.alignment = 'LEFT' + row_props.prop(arm_data, '["layers_count"]', "Layers", toggle=True) if arm_data['bone_auto_hide'] == 1: - row_props.operator("gui.blenrig_5_tabs",text = " Bone Auto Hiding", icon="CHECKBOX_HLT", emboss = 0).tab = "bone_auto_hide" + row_props.operator("gui.blenrig_5_tabs",text = " Bone Auto Hiding", icon="CHECKBOX_HLT", emboss = 0).tab = "bone_auto_hide" else: - row_props.operator("gui.blenrig_5_tabs",text = " Bone Auto Hiding", icon="CHECKBOX_DEHLT", emboss = 0).tab = "bone_auto_hide" - col_2.label(text='Layers Schemes:') + row_props.operator("gui.blenrig_5_tabs",text = " Bone Auto Hiding", icon="CHECKBOX_DEHLT", emboss = 0).tab = "bone_auto_hide" + col_2.label('Layers Schemes:') row_schemes = col_2.row() row_schemes.operator("blenrig5.layers_scheme_compact", text="Compact") - row_schemes.operator("blenrig5.layers_scheme_expanded", text="Expanded") - col_2.label(text='Layers Names: (Always keep 32 items)') + row_schemes.operator("blenrig5.layers_scheme_expanded", text="Expanded") + col_2.label('Layers Names: (Always keep 32 items)') row_layers = col_2.row() - row_layers.prop(arm_data, '["layer_list"]', text="", toggle=True) + row_layers.prop(arm_data, '["layer_list"]', "", toggle=True) else: row.operator("gui.blenrig_5_tabs", icon="RENDER_RESULT", emboss = 1).tab = "gui_rig_layers" - row.label(text="LAYERS SETTING") + row.label(text="LAYERS SETTING") ####### Dynamic Shaping if "gui_rig_flex" in arm_data: box = layout.column() col = box.column() row = col.row() - # expanded box + # expanded box if "gui_rig_flex" in arm_data and arm_data["gui_rig_flex"]: - row.operator("gui.blenrig_5_tabs", icon="OUTLINER_OB_ARMATURE", emboss = 1).tab = "gui_rig_flex" + row.operator("gui.blenrig_5_tabs", icon="OUTLINER_OB_ARMATURE", emboss = 1).tab = "gui_rig_flex" row.label(text="DYNAMIC SHAPING (Flex Rig Way)") - col.separator - box = col.box() + col.separator + box = col.box() row_props = box.row() col_1 = row_props.column() col_1.scale_x = 0.5 - col_2 = row_props.column() - col_2.label(text="Head:") - col_2.scale_x = 2 - col_3 = row_props.column() - col_3.scale_x = 0.5 + col_2 = row_props.column() + col_2.label("Head:") + col_2.scale_x = 2 + col_3 = row_props.column() + col_3.scale_x = 0.5 for b in p_bones: - if 'properties_head' in b.name: + if 'properties_head' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: if 'head' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_head_', '')), toggle=True) - col_2.label(text="Neck:") + col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_head_', '')), toggle=True) + col_2.label("Neck:") for b in p_bones: - if 'properties_head' in b.name: + if 'properties_head' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: if 'neck' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_neck_', '')), toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_neck_', '')), toggle=True) row_props = box.row() col_1 = row_props.column() - col_1.label(text="Arm_R:") - col_2 = row_props.column() - col_2.label(text="Torso:") - col_3 = row_props.column() - col_3.label(text="Arm_L:") + col_1.label("Arm_R:") + col_2 = row_props.column() + col_2.label("Torso:") + col_3 = row_props.column() + col_3.label("Arm_L:") for b in p_bones: - if 'properties_arm_R' in b.name: + if 'properties_arm_R' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: if 'forearm' not in cust_prop: if 'hand' not in cust_prop: - col_1.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_arm_', '')), toggle=True) - col_1.label(text="Forearm_R:") + col_1.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_arm_', '')), toggle=True) + col_1.label("Forearm_R:") for b in p_bones: - if 'properties_arm_R' in b.name: + if 'properties_arm_R' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: if 'forearm' in cust_prop: - col_1.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_forearm_', '')), toggle=True) - col_1.label(text="Hand_R:") + col_1.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_forearm_', '')), toggle=True) + col_1.label("Hand_R:") for b in p_bones: - if 'properties_arm_R' in b.name: + if 'properties_arm_R' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: if 'hand' in cust_prop: - col_1.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_hand_', '')), toggle=True) + col_1.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_hand_', '')), toggle=True) for b in p_bones: - if 'properties_torso' in b.name: + if 'properties_torso' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: - if 'torso' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_torso_', '')), toggle=True) - col_2.label(text="Chest:") + if 'torso' in cust_prop: + col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_torso_', '')), toggle=True) + col_2.label("Chest:") for b in p_bones: - if 'properties_torso' in b.name: + if 'properties_torso' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: - if 'chest' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_chest_', '')), toggle=True) - col_2.label(text="Ribs:") + if 'chest' in cust_prop: + col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_chest_', '')), toggle=True) + col_2.label("Ribs:") for b in p_bones: - if 'properties_torso' in b.name: + if 'properties_torso' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: - if 'ribs' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_ribs_', '')), toggle=True) - col_2.label(text="waist:") + if 'ribs' in cust_prop: + col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_ribs_', '')), toggle=True) + col_2.label("waist:") for b in p_bones: - if 'properties_torso' in b.name: + if 'properties_torso' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: - if 'waist' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_waist_', '')), toggle=True) - col_2.label(text="pelvis:") + if 'waist' in cust_prop: + col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_waist_', '')), toggle=True) + col_2.label("pelvis:") for b in p_bones: - if 'properties_torso' in b.name: + if 'properties_torso' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: - if 'pelvis' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_pelvis_', '')), toggle=True) + if 'pelvis' in cust_prop: + col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_pelvis_', '')), toggle=True) for b in p_bones: - if 'properties_arm_L' in b.name: + if 'properties_arm_L' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: if 'forearm' not in cust_prop: if 'hand' not in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_arm_', '')), toggle=True) - col_3.label(text="Forearm_L:") + col_3.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_arm_', '')), toggle=True) + col_3.label("Forearm_L:") for b in p_bones: - if 'properties_arm_L' in b.name: + if 'properties_arm_L' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: if 'forearm' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_forearm_', '')), toggle=True) - col_3.label(text="Hand_L:") + col_3.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_forearm_', '')), toggle=True) + col_3.label("Hand_L:") for b in p_bones: - if 'properties_arm_L' in b.name: + if 'properties_arm_L' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: if 'hand' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_hand_', '')), toggle=True) + col_3.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_hand_', '')), toggle=True) row_props = box.row() - col_1 = row_props.column() - col_2 = row_props.column() - col_2.label(text="Leg_R:") - col_2.scale_x = 4 - col_3 = row_props.column() - col_3.label(text="Leg_L:") - col_3.scale_x = 4 - col_4 = row_props.column() + col_1 = row_props.column() + col_2 = row_props.column() + col_2.label("Leg_R:") + col_2.scale_x = 4 + col_3 = row_props.column() + col_3.label("Leg_L:") + col_3.scale_x = 4 + col_4 = row_props.column() for b in p_bones: - if 'properties_leg_R' in b.name: + if 'properties_leg_R' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: if 'leg' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_leg_', '')), toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_leg_', '')), toggle=True) if 'thigh' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_thigh_', '')), toggle=True) - col_2.label(text="Shin_R:") + col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_thigh_', '')), toggle=True) + col_2.label("Shin_R:") for b in p_bones: - if 'properties_leg_R' in b.name: + if 'properties_leg_R' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: if 'shin' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_shin_', '')), toggle=True) - col_2.label(text="Foot_R:") + col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_shin_', '')), toggle=True) + col_2.label("Foot_R:") for b in p_bones: - if 'properties_leg_R' in b.name: + if 'properties_leg_R' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: if 'foot' in cust_prop: - col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_foot_', '')), toggle=True) + col_2.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_foot_', '')), toggle=True) for b in p_bones: - if 'properties_leg_L' in b.name: + if 'properties_leg_L' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: if 'leg' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_leg_', '')), toggle=True) + col_3.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_leg_', '')), toggle=True) if 'thigh' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_thigh_', '')), toggle=True) - col_3.label(text="Shin_L:") + col_3.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_thigh_', '')), toggle=True) + col_3.label("Shin_L:") for b in p_bones: - if 'properties_leg_L' in b.name: + if 'properties_leg_L' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: if 'shin' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_shin_', '')), toggle=True) - col_3.label(text="Foot_L:") + col_3.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_shin_', '')), toggle=True) + col_3.label("Foot_L:") for b in p_bones: - if 'properties_leg_L' in b.name: + if 'properties_leg_L' in b.name: for cust_prop in b.keys(): if 'flex' in cust_prop: if 'foot' in cust_prop: - col_3.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_foot_', '')), toggle=True) - box.separator() + col_3.prop(b, '["{}"]'.format(cust_prop), text = "{}".format(cust_prop.replace('flex_foot_', '')), toggle=True) + box.separator() row_reset = box.row() row_reset.alignment = 'CENTER' row_reset.scale_x = 1 - row_reset.operator("blenrig5.reset_dynamic_shaping") - + row_reset.operator("blenrig5.reset_dynamic_shaping") + else: row.operator("gui.blenrig_5_tabs", icon="OUTLINER_DATA_ARMATURE", emboss = 1).tab = "gui_rig_flex" - row.label(text="DYNAMIC SHAPING (Flex Rig Way)") + row.label(text="DYNAMIC SHAPING (Flex Rig Way)") ####### Rig Optimizations if "gui_rig_optimize" in arm_data: box = layout.column() col = box.column() row = col.row() - # expanded box + # expanded box if "gui_rig_optimize" in arm_data and arm_data["gui_rig_optimize"]: - row.operator("gui.blenrig_5_tabs", icon="TOOL_SETTINGS", emboss = 1).tab = "gui_rig_optimize" + row.operator("gui.blenrig_5_tabs", icon="POSE_HLT", emboss = 1).tab = "gui_rig_optimize" row.label(text="RIG OPTIMIZATIONS") col.separator - box = col.box() - row_props = box.row() + box = col.box() + row_props = box.row() col_R = row_props.column() - col_L = row_props.column() - col_R.prop(arm_data, 'toggle_face_drivers', text="Enable Face Drivers",) - col_L.prop(arm_data, 'toggle_body_drivers', text="Enable Body Drivers",) - col_R.prop(arm_data, 'toggle_flex_drivers', text="Enable Flex Scaling",) - + col_L = row_props.column() + col_R.prop(arm_data, 'toggle_face_drivers', "Enable Face Drivers",) + col_L.prop(arm_data, 'toggle_body_drivers', "Enable Body Drivers",) + col_R.prop(arm_data, 'toggle_flex_drivers', "Enable Flex Scaling",) + else: - row.operator("gui.blenrig_5_tabs", icon="TOOL_SETTINGS", emboss = 1).tab = "gui_rig_optimize" - row.label(text="RIG OPTIMIZATIONS") + row.operator("gui.blenrig_5_tabs", icon="POSE_DATA", emboss = 1).tab = "gui_rig_optimize" + row.label(text="RIG OPTIMIZATIONS") ####### Rigging & Baking if "gui_rig_bake" in arm_data: props = context.window_manager.blenrig_5_props box = layout.column() col = box.column() row = col.row() - # expanded box + # expanded box if "gui_rig_bake" in arm_data and arm_data["gui_rig_bake"]: - row.operator("gui.blenrig_5_tabs", icon="PREFERENCES", emboss = 1).tab = "gui_rig_bake" + row.operator("gui.blenrig_5_tabs", icon="SCRIPTWIN", emboss = 1).tab = "gui_rig_bake" row.label(text="RIGGING & BAKING") col.separator() box = col.box() - box.prop(arm_data, 'reproportion', text="Reproportion Mode", toggle=True, icon_only=True, icon='SHADERFX') - # col.label(text="Setup:") - # box = col.box() - # split = box.split() - # row = split.row() - # row.operator("blenrig5.reset_constraints", text="Paste Pose Flipped") - # row = box.row() - # row.prop(props,"align_selected_only",text="Hide Left Side") - # row = box.row() - # row.prop(props,"align_selected_only",text="Hide Rigth Side") - # scn = bpy.context.scene - # rs = row.split(factor=0.8, align=True) - # rs.prop(scn, "comboBox", text="") - # row = box.row() - - col.label(text="Baking:") - box = col.box() + box.prop(arm_data, 'reproportion', "Reproportion Mode", toggle=True, icon_only=True, icon='SCRIPTWIN') + col.separator() + col.label("Baking:") + box = col.box() + row = box.row() + row.operator("blenrig5.armature_baker", text="Bake Armature") + box.label("Fix Alignment (Edit Mode):") + row = box.row() + row.operator("blenrig5.fix_misaligned_bones", text="Fix Joints") + row.operator("blenrig5.auto_bone_roll", text="Calc Rolls") + row.operator("blenrig5.custom_bone_roll", text="Custom Aligns") + row = box.row() + row.operator("blenrig5.store_roll_angles", text="Store Roll Angles") + row.operator("blenrig5.restore_roll_angles", text="Restore Roll Angles") row = box.row() - row.operator("blenrig5.armature_baker", text="Bake Armature") - box.label(text="Fix Alignment (Edit Mode):") - row = box.row() - row.operator("blenrig5.fix_misaligned_bones", text="Fix Joints") - row.operator("blenrig5.auto_bone_roll", text="Calc Rolls") - row.operator("blenrig5.custom_bone_roll", text="Custom Aligns") - row = box.row() - row.operator("blenrig5.store_roll_angles", text="Store Roll Angles") - row.operator("blenrig5.restore_roll_angles", text="Restore Roll Angles") - row = box.row() row.prop(props, "align_selected_only") row.prop(arm_data, "use_mirror_x") - col.label(text="Extras:") - box = col.box() + col.label("Extras:") + box = col.box() split = box.split() row = split.row() row.operator("blenrig5.reset_constraints") - row.operator("blenrig5.reset_deformers", text="Reset Deformers") - col.separator() + row.operator("blenrig5.reset_deformers", text="Reset Deformers") + col.separator() else: row.operator("gui.blenrig_5_tabs", icon="PREFERENCES", emboss = 1).tab = "gui_rig_bake" row.label(text="RIGGING & BAKING") - + ####### Rig Version Info col = layout.column() row = col.row() - row.label(text="Armature Ver. " + str(arm_data['rig_version'])) + row.label("Armature Ver. " + str(arm_data['rig_version'])) ####### Object Baking Panel @@ -838,22 +825,22 @@ class BLENRIG_PT_BlenRig_5_mesh_panel(bpy.types.Panel): if not bpy.context.active_object: return False if (bpy.context.active_object.type in ["MESH"]): - for mod in bpy.context.active_object.modifiers: + for mod in bpy.context.active_object.modifiers: if (mod.type in ["ARMATURE", "MESH_DEFORM"]): - return True + return True def draw(self, context): - props = context.window_manager.blenrig_5_props + props = context.window_manager.blenrig_5_props layout = self.layout box = layout.column() col = box.column() row = col.row() - # expanded box - col.separator - row = col.row() + # expanded box + col.separator + row = col.row() row.operator("blenrig5.mesh_pose_baker", text="Bake Mesh") - row.prop(props, "bake_to_shape") + row.prop(props, "bake_to_shape") ####### Lattice & Curves Panel @@ -868,9 +855,9 @@ class BLENRIG_PT_BlenRig_5_lattice_panel(bpy.types.Panel): if not bpy.context.active_object: return False if (bpy.context.active_object.type in ["LATTICE", "CURVE"]): - for mod in bpy.context.active_object.modifiers: + for mod in bpy.context.active_object.modifiers: if (mod.type in ["HOOK"]): - return True + return True def draw(self, context): layout = self.layout @@ -878,8 +865,8 @@ class BLENRIG_PT_BlenRig_5_lattice_panel(bpy.types.Panel): box = layout.column() col = box.column() row = col.row() - # expanded box - col.separator - row = col.row() - row.operator("blenrig5.reset_hooks", text="Reset Hooks") + # expanded box + col.separator + row = col.row() + row.operator("blenrig5.reset_hooks", text="Reset Hooks")