Skip to content

Commit

Permalink
Removed some that do not have any function
Browse files Browse the repository at this point in the history
  • Loading branch information
Menithal committed Oct 10, 2021
1 parent 011aaf1 commit 4e52dbd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 deletions metaverse_tools/ui/pose_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ def draw(self, context):
ARMATURE_OT_MVT_TOOLSET_Copy_Limits.bl_idname)


layout.operator(
ARMATURE_OT_MVT_TOOLSET_Normalize_Influences.bl_idname)
# layout.operator(
# ARMATURE_OT_MVT_TOOLSET_Normalize_Influences.bl_idname)
return None



class ARMATURE_OT_MVT_TOOLSET_Clear_Constraint(bpy.types.Operator):
""" """
""" Removes all Constraints from bones """
bl_idname = "metaverse_toolset.armature_clear_constraint"
bl_label = "Clear Constraints"
bl_region_type = "TOOLS"
Expand Down Expand Up @@ -202,7 +202,7 @@ def execute(self, context):


class ARMATURE_OT_MVT_TOOLSET_Add_Copy_Rotational_Constraint(bpy.types.Operator):
""" """
""" Adds COPY Rotation constraint from active bone to selected bones """
bl_idname = "metaverse_toolset.pose_rotation_copy_constraints"
bl_label = "Rotational Copy"
bl_region_type = "TOOLS"
Expand Down Expand Up @@ -242,7 +242,7 @@ def execute(self, context):


class ARMATURE_OT_MVT_TOOLSET_Mirror_Constraints(bpy.types.Operator):
""" """
""" Mirrors all constraints to selected bones from the last selected to ones selected before """
bl_idname = "metaverse_toolset.mirror_constraints"
bl_label = "Mirror Constraints"
bl_region_type = "TOOLS"
Expand Down Expand Up @@ -372,7 +372,7 @@ def execute(self, context):

# Add Max Normalization Amount allowing for override?
class ARMATURE_OT_MVT_TOOLSET_Copy_Limits(bpy.types.Operator):
""" """
""" Copies all Constraints that limit the movement of a bone from one to another """
bl_idname = "metaverse_toolset.copy_pose_constraint_limits"
bl_label = "Copy Limits"
bl_region_type = "TOOLS"
Expand All @@ -387,20 +387,20 @@ def execute(self, context):
return {'FINISHED'}

# Add Max Normalization Amount allowing for override?
class ARMATURE_OT_MVT_TOOLSET_Normalize_Influences(bpy.types.Operator):
""" """
bl_idname = "metaverse_toolset.normalize_pose_constrain_influences"
bl_label = "Normalize Constraint Influences"
bl_region_type = "TOOLS"
#class ARMATURE_OT_MVT_TOOLSET_Normalize_Influences(bpy.types.Operator):
# """ Normalizes influences between any copy location/rotation/ """
# bl_idname = "metaverse_toolset.normalize_pose_constrain_influences"
# bl_label = "Normalize Constraint Influences"
# bl_region_type = "TOOLS"

bl_space_type = "VIEW_3D"
@classmethod
def poll(self, context):
return context.selected_pose_bones is not None and len(context.selected_pose_bones) >= 1
# bl_space_type = "VIEW_3D"
# @classmethod
# def poll(self, context):
# return context.selected_pose_bones is not None and len(context.selected_pose_bones) >= 1

def execute(self, context):
pose_helper.normalize_pose_copy_location_rotation(context.selected_pose_bones)
return {'FINISHED'}
# def execute(self, context):
# pose_helper.normalize_constraints_rotation(context.selected_pose_bones)
# return {'FINISHED'}


classes = (
Expand All @@ -423,7 +423,7 @@ def execute(self, context):
ARMATURE_OT_MVT_TOOLSET_Unlock_Translations,
ARMATURE_OT_MVT_TOOLSET_Copy_Custom_Shapes,
ARMATURE_OT_MVT_TOOLSET_Clear_Custom_Shapes,
ARMATURE_OT_MVT_TOOLSET_Normalize_Influences,
#ARMATURE_OT_MVT_TOOLSET_Normalize_Influences,
ARMATURE_OT_MVT_TOOLSET_Copy_Limits,
ARMATURE_OT_MVT_TOOLSET_Add_Copy_Rotational_Constraint,
ARMATURE_PT_MVT_BONE_UTILITY
Expand Down
2 changes: 1 addition & 1 deletion metaverse_tools/utils/animation/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def split_bone_frames_into_mirrored_action(armature, action, half = False):
return

split_action_name = mirrorable_name_re.split(name)
keyframed_bones: List[BoneData] = get_bone_frames_in_action(armature, action)
keyframed_bones: [BoneData] = get_bone_frames_in_action(armature, action)

def check_side (side, short_side, long_side, bone_side):
return (side == short_side or side == long_side) and long_side == bone_side
Expand Down

0 comments on commit 4e52dbd

Please sign in to comment.