Changeset View
Changeset View
Standalone View
Standalone View
rigify/legacy/rigs/pitchipoy/super_face.py
| Show First 20 Lines • Show All 1,010 Lines • ▼ Show 20 Lines | |||||
| 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 | ||||
| """ | """ | ||||
| #Setting up extra layers for the tweak bones | #Setting up extra layers for the tweak bones | ||||
| params.primary_layers_extra = bpy.props.BoolProperty( | params.primary_layers_extra: bpy.props.BoolProperty( | ||||
| name = "primary_layers_extra", | name = "primary_layers_extra", | ||||
| default = True, | default = True, | ||||
| description = "" | description = "" | ||||
| ) | ) | ||||
| params.primary_layers = bpy.props.BoolVectorProperty( | params.primary_layers: bpy.props.BoolVectorProperty( | ||||
| size = 32, | size = 32, | ||||
| description = "Layers for the 1st tweak controls to be on", | description = "Layers for the 1st tweak controls to be on", | ||||
| default = tuple( [ i == 1 for i in range(0, 32) ] ) | default = tuple( [ i == 1 for i in range(0, 32) ] ) | ||||
| ) | ) | ||||
| params.secondary_layers_extra = bpy.props.BoolProperty( | params.secondary_layers_extra: bpy.props.BoolProperty( | ||||
| name = "secondary_layers_extra", | name = "secondary_layers_extra", | ||||
| default = True, | default = True, | ||||
| description = "" | description = "" | ||||
| ) | ) | ||||
| params.secondary_layers = bpy.props.BoolVectorProperty( | params.secondary_layers: bpy.props.BoolVectorProperty( | ||||
| size = 32, | size = 32, | ||||
| description = "Layers for the 2nd tweak controls to be on", | description = "Layers for the 2nd tweak controls to be on", | ||||
| default = tuple( [ i == 1 for i in range(0, 32) ] ) | default = tuple( [ i == 1 for i in range(0, 32) ] ) | ||||
| ) | ) | ||||
| def parameters_ui(layout, params): | def parameters_ui(layout, params): | ||||
| """ Create the ui for the rig parameters.""" | """ Create the ui for the rig parameters.""" | ||||
| layers = ["primary_layers", "secondary_layers"] | layers = ["primary_layers", "secondary_layers"] | ||||
| for layer in layers: | for layer in layers: | ||||
| r = layout.row() | r = layout.row() | ||||
| ▲ Show 20 Lines • Show All 1,353 Lines • Show Last 20 Lines | |||||