Using type declarations for properties
This commit is contained in:
38
__init__.py
38
__init__.py
@@ -1247,7 +1247,7 @@ 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
|
||||
@@ -1259,24 +1259,24 @@ class ARMATURE_OT_blenrig_5_gui(bpy.types.Operator):
|
||||
|
||||
# Needed for property registration
|
||||
class Blenrig_5_Props(bpy.types.PropertyGroup):
|
||||
gui_picker_body_props : bpy.props.BoolProperty(default=True, description="Toggle properties display")
|
||||
gui_snap_all : bpy.props.BoolProperty(default=False, description="Display ALL Snapping Buttons")
|
||||
gui_snap : bpy.props.BoolProperty(default=False, description="Display Snapping Buttons")
|
||||
gui_cust_props_all : bpy.props.BoolProperty(default=False, description="Show ALL Custom Properties")
|
||||
gui_extra_props_head : bpy.props.BoolProperty(default=False, description="Tweak head extra options")
|
||||
gui_extra_props_arms : bpy.props.BoolProperty(default=False, description="Tweak arms extra options")
|
||||
gui_extra_props_fingers : bpy.props.BoolProperty(default=False, description="Tweak fingers extra options")
|
||||
gui_extra_props_legs : bpy.props.BoolProperty(default=False, description="Tweak legs extra options")
|
||||
gui_extra_props_accessories : bpy.props.BoolProperty(default=False, description="Tweak accessories options")
|
||||
gui_face_movement_ranges : bpy.props.BoolProperty(default=False, description="Set limits to facial movement")
|
||||
gui_face_lip_shaping : bpy.props.BoolProperty(default=False, description="Parameters to define lips curvature")
|
||||
gui_face_action_toggles : bpy.props.BoolProperty(default=False, description="Toggle facial actions off for editing")
|
||||
gui_body_ik_rot : bpy.props.BoolProperty(default=False, description="Set the initial rotation of IK bones")
|
||||
gui_body_auto_move : bpy.props.BoolProperty(default=False, description="Parameters for automated movement")
|
||||
gui_body_rj : bpy.props.BoolProperty(default=False, description="Simulate how bone thickness affects joint rotation")
|
||||
gui_body_toggles : bpy.props.BoolProperty(default=False, description="Toggle body parts")
|
||||
bake_to_shape : bpy.props.BoolProperty(name="Bake to Shape Key", default=False, description="Bake the mesh into a separate Shape Key")
|
||||
align_selected_only : bpy.props.BoolProperty(name="Selected Bones Only", default=False, description="Perform aligning only on selected bones")
|
||||
gui_picker_body_props: bpy.props.BoolProperty(default=True, description="Toggle properties display")
|
||||
gui_snap_all: bpy.props.BoolProperty(default=False, description="Display ALL Snapping Buttons")
|
||||
gui_snap: bpy.props.BoolProperty(default=False, description="Display Snapping Buttons")
|
||||
gui_cust_props_all: bpy.props.BoolProperty(default=False, description="Show ALL Custom Properties")
|
||||
gui_extra_props_head: bpy.props.BoolProperty(default=False, description="Tweak head extra options")
|
||||
gui_extra_props_arms: bpy.props.BoolProperty(default=False, description="Tweak arms extra options")
|
||||
gui_extra_props_fingers: bpy.props.BoolProperty(default=False, description="Tweak fingers extra options")
|
||||
gui_extra_props_legs: bpy.props.BoolProperty(default=False, description="Tweak legs extra options")
|
||||
gui_extra_props_accessories: bpy.props.BoolProperty(default=False, description="Tweak accessories options")
|
||||
gui_face_movement_ranges: bpy.props.BoolProperty(default=False, description="Set limits to facial movement")
|
||||
gui_face_lip_shaping: bpy.props.BoolProperty(default=False, description="Parameters to define lips curvature")
|
||||
gui_face_action_toggles: bpy.props.BoolProperty(default=False, description="Toggle facial actions off for editing")
|
||||
gui_body_ik_rot: bpy.props.BoolProperty(default=False, description="Set the initial rotation of IK bones")
|
||||
gui_body_auto_move: bpy.props.BoolProperty(default=False, description="Parameters for automated movement")
|
||||
gui_body_rj: bpy.props.BoolProperty(default=False, description="Simulate how bone thickness affects joint rotation")
|
||||
gui_body_toggles: bpy.props.BoolProperty(default=False, description="Toggle body parts")
|
||||
bake_to_shape: bpy.props.BoolProperty(name="Bake to Shape Key", default=False, description="Bake the mesh into a separate Shape Key")
|
||||
align_selected_only: bpy.props.BoolProperty(name="Selected Bones Only", default=False, description="Perform aligning only on selected bones")
|
||||
|
||||
# BlenRig Armature Tools Operator
|
||||
armature_classes = [
|
||||
|
||||
Reference in New Issue
Block a user