Changeset View
Changeset View
Standalone View
Standalone View
rigify/legacy/rigs/basic/copy_chain.py
| Show First 20 Lines • Show All 121 Lines • ▼ Show 20 Lines | def generate(self): | ||||
| for bone in ctrl_chain: | for bone in ctrl_chain: | ||||
| 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_controls = bpy.props.BoolProperty(name="Controls", default=True, description="Create control bones for the copy") | params.make_controls: bpy.props.BoolProperty(name="Controls", default=True, description="Create control bones for the copy") | ||||
| params.make_deforms = bpy.props.BoolProperty(name="Deform", default=True, description="Create deform bones for the copy") | params.make_deforms: bpy.props.BoolProperty(name="Deform", default=True, description="Create deform bones 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_controls") | r.prop(params, "make_controls") | ||||
| r = layout.row() | r = layout.row() | ||||
| ▲ Show 20 Lines • Show All 67 Lines • Show Last 20 Lines | |||||