Rigify: update super_chain to 2.8 and hide most operators from search.
This commit is contained in:
parent
25f1c2b04e
commit
6b753382d6
|
@ -62,7 +62,7 @@ class DATA_OT_rigify_add_feature_set(bpy.types.Operator):
|
|||
bl_idname = "wm.rigify_add_feature_set"
|
||||
bl_label = "Add External Feature Set"
|
||||
bl_description = "Add external feature set (rigs, metarigs, ui templates)"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_options = {"REGISTER", "UNDO", "INTERNAL"}
|
||||
|
||||
filter_glob: StringProperty(default="*.zip", options={'HIDDEN'})
|
||||
filepath: StringProperty(maxlen=1024, subtype='FILE_PATH', options={'HIDDEN', 'SKIP_SAVE'})
|
||||
|
@ -107,7 +107,7 @@ class DATA_OT_rigify_remove_feature_set(bpy.types.Operator):
|
|||
bl_idname = "wm.rigify_remove_feature_set"
|
||||
bl_label = "Remove External Feature Set"
|
||||
bl_description = "Remove external feature set (rigs, metarigs, ui templates)"
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
bl_options = {"REGISTER", "UNDO", "INTERNAL"}
|
||||
|
||||
featureset: StringProperty(maxlen=1024, options={'HIDDEN', 'SKIP_SAVE'})
|
||||
|
||||
|
|
|
@ -623,7 +623,7 @@ class Rigify_Arm_FK2IK(bpy.types.Operator):
|
|||
"""
|
||||
bl_idname = "pose.rigify_arm_fk2ik_" + rig_id
|
||||
bl_label = "Rigify Snap FK arm to IK"
|
||||
bl_options = {'UNDO'}
|
||||
bl_options = {'UNDO', 'INTERNAL'}
|
||||
|
||||
uarm_fk: StringProperty(name="Upper Arm FK Name")
|
||||
farm_fk: StringProperty(name="Forerm FK Name")
|
||||
|
@ -647,7 +647,7 @@ class Rigify_Arm_IK2FK(bpy.types.Operator):
|
|||
"""
|
||||
bl_idname = "pose.rigify_arm_ik2fk_" + rig_id
|
||||
bl_label = "Rigify Snap IK arm to FK"
|
||||
bl_options = {'UNDO'}
|
||||
bl_options = {'UNDO', 'INTERNAL'}
|
||||
|
||||
uarm_fk: StringProperty(name="Upper Arm FK Name")
|
||||
farm_fk: StringProperty(name="Forerm FK Name")
|
||||
|
@ -681,7 +681,7 @@ class Rigify_Leg_FK2IK(bpy.types.Operator):
|
|||
"""
|
||||
bl_idname = "pose.rigify_leg_fk2ik_" + rig_id
|
||||
bl_label = "Rigify Snap FK leg to IK"
|
||||
bl_options = {'UNDO'}
|
||||
bl_options = {'UNDO', 'INTERNAL'}
|
||||
|
||||
thigh_fk: StringProperty(name="Thigh FK Name")
|
||||
shin_fk: StringProperty(name="Shin FK Name")
|
||||
|
@ -707,7 +707,7 @@ class Rigify_Leg_IK2FK(bpy.types.Operator):
|
|||
"""
|
||||
bl_idname = "pose.rigify_leg_ik2fk_" + rig_id
|
||||
bl_label = "Rigify Snap IK leg to FK"
|
||||
bl_options = {'UNDO'}
|
||||
bl_options = {'UNDO', 'INTERNAL'}
|
||||
|
||||
thigh_fk: StringProperty(name="Thigh FK Name")
|
||||
shin_fk: StringProperty(name="Shin FK Name")
|
||||
|
|
|
@ -29,11 +29,11 @@ class Rig:
|
|||
setattr(v, axis, scale)
|
||||
|
||||
if reverse:
|
||||
tail_vec = v * self.obj.matrix_world
|
||||
tail_vec = v @ self.obj.matrix_world
|
||||
eb.head[:] = eb.tail
|
||||
eb.tail[:] = eb.head + tail_vec
|
||||
else:
|
||||
tail_vec = v * self.obj.matrix_world
|
||||
tail_vec = v @ self.obj.matrix_world
|
||||
eb.tail[:] = eb.head + tail_vec
|
||||
|
||||
def create_pivot(self, pivot=None):
|
||||
|
|
|
@ -259,7 +259,7 @@ class CONVERT_OT_quat2eu_current_action(bpy.types.Operator):
|
|||
bl_label = 'Convert Current Action'
|
||||
bl_idname = 'rigify_quat2eu.current'
|
||||
bl_description = 'Converts bones in current Action'
|
||||
bl_options = {'REGISTER', 'UNDO'}
|
||||
bl_options = {'REGISTER', 'UNDO', 'INTERNAL'}
|
||||
|
||||
# on mouse up:
|
||||
def invoke(self, context, event):
|
||||
|
@ -285,7 +285,7 @@ class CONVERT_OT_quat2eu_all_actions(bpy.types.Operator):
|
|||
bl_label = 'Convert All Actions'
|
||||
bl_idname = 'rigify_quat2eu.all'
|
||||
bl_description = 'Converts bones in every Action'
|
||||
bl_options = {'REGISTER', 'UNDO'}
|
||||
bl_options = {'REGISTER', 'UNDO', 'INTERNAL'}
|
||||
|
||||
# on mouse up:
|
||||
def invoke(self, context, event):
|
||||
|
|
14
rigify/ui.py
14
rigify/ui.py
|
@ -731,7 +731,7 @@ class LayerInit(bpy.types.Operator):
|
|||
|
||||
bl_idname = "pose.rigify_layer_init"
|
||||
bl_label = "Add Rigify Layers"
|
||||
bl_options = {'UNDO'}
|
||||
bl_options = {'UNDO', 'INTERNAL'}
|
||||
|
||||
def execute(self, context):
|
||||
obj = context.object
|
||||
|
@ -748,7 +748,7 @@ class Generate(bpy.types.Operator):
|
|||
|
||||
bl_idname = "pose.rigify_generate"
|
||||
bl_label = "Rigify Generate Rig"
|
||||
bl_options = {'UNDO'}
|
||||
bl_options = {'UNDO', 'INTERNAL'}
|
||||
bl_description = 'Generates a rig from the active metarig armature'
|
||||
|
||||
def execute(self, context):
|
||||
|
@ -784,7 +784,7 @@ class SwitchToLegacy(bpy.types.Operator):
|
|||
bl_idname = "pose.rigify_switch_to_legacy"
|
||||
bl_label = "Legacy Mode will disable Rigify new features"
|
||||
bl_description = 'Switches Rigify to Legacy Mode'
|
||||
bl_options = {'UNDO'}
|
||||
bl_options = {'UNDO', 'INTERNAL'}
|
||||
|
||||
def invoke(self, context, event):
|
||||
return context.window_manager.invoke_confirm(self, event)
|
||||
|
@ -799,7 +799,7 @@ class Sample(bpy.types.Operator):
|
|||
|
||||
bl_idname = "armature.metarig_sample_add"
|
||||
bl_label = "Add a sample metarig for a rig type"
|
||||
bl_options = {'UNDO'}
|
||||
bl_options = {'UNDO', 'INTERNAL'}
|
||||
|
||||
metarig_type: StringProperty(
|
||||
name="Type",
|
||||
|
@ -1211,6 +1211,7 @@ class OBJECT_OT_IK2FK(bpy.types.Operator):
|
|||
bl_idname = "rigify.ik2fk"
|
||||
bl_label = "IK2FK"
|
||||
bl_description = "Snaps IK limb on FK"
|
||||
bl_options = {'INTERNAL'}
|
||||
|
||||
def execute(self,context):
|
||||
rig = context.object
|
||||
|
@ -1226,6 +1227,7 @@ class OBJECT_OT_FK2IK(bpy.types.Operator):
|
|||
bl_idname = "rigify.fk2ik"
|
||||
bl_label = "FK2IK"
|
||||
bl_description = "Snaps FK limb on IK"
|
||||
bl_options = {'INTERNAL'}
|
||||
|
||||
def execute(self,context):
|
||||
rig = context.object
|
||||
|
@ -1240,6 +1242,7 @@ class OBJECT_OT_TransferFKtoIK(bpy.types.Operator):
|
|||
bl_idname = "rigify.transfer_fk_to_ik"
|
||||
bl_label = "Transfer FK anim to IK"
|
||||
bl_description = "Transfer FK animation to IK bones"
|
||||
bl_options = {'INTERNAL'}
|
||||
|
||||
def execute(self, context):
|
||||
rig = context.object
|
||||
|
@ -1255,6 +1258,7 @@ class OBJECT_OT_TransferIKtoFK(bpy.types.Operator):
|
|||
bl_idname = "rigify.transfer_ik_to_fk"
|
||||
bl_label = "Transfer IK anim to FK"
|
||||
bl_description = "Transfer IK animation to FK bones"
|
||||
bl_options = {'INTERNAL'}
|
||||
|
||||
def execute(self, context):
|
||||
rig = context.object
|
||||
|
@ -1268,6 +1272,7 @@ class OBJECT_OT_ClearAnimation(bpy.types.Operator):
|
|||
bl_idname = "rigify.clear_animation"
|
||||
bl_label = "Clear Animation"
|
||||
bl_description = "Clear Animation For FK or IK Bones"
|
||||
bl_options = {'INTERNAL'}
|
||||
|
||||
anim_type: StringProperty()
|
||||
|
||||
|
@ -1290,6 +1295,7 @@ class OBJECT_OT_Rot2Pole(bpy.types.Operator):
|
|||
bl_idname = "rigify.rotation_pole"
|
||||
bl_label = "Rotation - Pole toggle"
|
||||
bl_description = "Toggles IK chain between rotation and pole target"
|
||||
bl_options = {'INTERNAL'}
|
||||
|
||||
bone_name: StringProperty(default='')
|
||||
window: StringProperty(default='ALL')
|
||||
|
|
Loading…
Reference in New Issue