Changeset View
Changeset View
Standalone View
Standalone View
rigify/legacy/rigs/basic/copy.py
| Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | def generate(self): | ||||
| # Create control widget | # Create control widget | ||||
| create_bone_widget(self.obj, bone) | create_bone_widget(self.obj, bone) | ||||
| def add_parameters(params): | def add_parameters(params): | ||||
| """ Add the parameters of this rig type to the | """ Add the parameters of this rig type to the | ||||
| RigifyParameters PropertyGroup | RigifyParameters PropertyGroup | ||||
| """ | """ | ||||
| params.make_control = bpy.props.BoolProperty(name="Control", default=True, description="Create a control bone for the copy") | params.make_control: bpy.props.BoolProperty(name="Control", default=True, description="Create a control bone for the copy") | ||||
| params.make_deform = bpy.props.BoolProperty(name="Deform", default=True, description="Create a deform bone for the copy") | params.make_deform: bpy.props.BoolProperty(name="Deform", default=True, description="Create a deform bone for the copy") | ||||
| def parameters_ui(layout, params): | def parameters_ui(layout, params): | ||||
| """ Create the ui for the rig parameters. | """ Create the ui for the rig parameters. | ||||
| """ | """ | ||||
| r = layout.row() | r = layout.row() | ||||
| r.prop(params, "make_control") | r.prop(params, "make_control") | ||||
| r = layout.row() | r = layout.row() | ||||
| Show All 39 Lines | |||||