Rigify: add options to change the layer for the finger IK control.
This commit is contained in:
parent
67926641d1
commit
9030e2c6d1
|
@ -174,6 +174,8 @@ class Rig(SimpleChainRig):
|
|||
bone.lock_rotation_w = True
|
||||
bone.lock_scale = True, True, True
|
||||
|
||||
ControlLayersOption.EXTRA_IK.assign_rig(self, [self.bones.ctrl.ik])
|
||||
|
||||
@stage.configure_bones
|
||||
def configure_ik_control_properties(self):
|
||||
if self.make_ik:
|
||||
|
@ -379,6 +381,7 @@ class Rig(SimpleChainRig):
|
|||
)
|
||||
|
||||
ControlLayersOption.TWEAK.add_parameters(params)
|
||||
ControlLayersOption.EXTRA_IK.add_parameters(params)
|
||||
|
||||
@classmethod
|
||||
def parameters_ui(self, layout, params):
|
||||
|
@ -393,6 +396,9 @@ class Rig(SimpleChainRig):
|
|||
|
||||
ControlLayersOption.TWEAK.parameters_ui(layout, params)
|
||||
|
||||
if params.make_extra_ik_control:
|
||||
ControlLayersOption.EXTRA_IK.parameters_ui(layout, params)
|
||||
|
||||
#############################
|
||||
# Finger FK to IK operator ##
|
||||
#############################
|
||||
|
|
|
@ -157,6 +157,12 @@ class ControlLayersOption:
|
|||
ControlLayersOption.FK = ControlLayersOption('fk', description="Layers for the FK controls to be on")
|
||||
ControlLayersOption.TWEAK = ControlLayersOption('tweak', description="Layers for the tweak controls to be on")
|
||||
|
||||
ControlLayersOption.EXTRA_IK = ControlLayersOption(
|
||||
'extra_ik', toggle_default=False,
|
||||
toggle_name="Extra IK Layers",
|
||||
description="Layers for the optional IK controls to be on",
|
||||
)
|
||||
|
||||
# Layer parameters used by the super_face rig.
|
||||
ControlLayersOption.FACE_PRIMARY = ControlLayersOption('primary', description="Layers for the primary controls to be on")
|
||||
ControlLayersOption.FACE_SECONDARY = ControlLayersOption('secondary', description="Layers for the secondary controls to be on")
|
||||
|
|
Loading…
Reference in New Issue