diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-14 17:21:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-14 17:21:06 +0300 |
commit | 3bf27683be8401a53c761201fcd09974a53a80b7 (patch) | |
tree | 192bfe2dcf91260939590a7c10e1fdf0901bfcb1 /release/scripts/modules/rigify/palm_curl.py | |
parent | 32d5429e353b68ed90f2e32edc48a7841a2b4138 (diff) |
automatic layer placement, users can set the layers if they want.
predefined layer types 'main', 'extra', 'ik', 'fk'
Diffstat (limited to 'release/scripts/modules/rigify/palm_curl.py')
-rw-r--r-- | release/scripts/modules/rigify/palm_curl.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/release/scripts/modules/rigify/palm_curl.py b/release/scripts/modules/rigify/palm_curl.py index ee99ef6e82a..8e0a80f98e8 100644 --- a/release/scripts/modules/rigify/palm_curl.py +++ b/release/scripts/modules/rigify/palm_curl.py @@ -19,6 +19,7 @@ # <pep8 compliant> import bpy +from rigify import get_layer_dict from rigify_utils import copy_bone_simple, get_side_name from rna_prop_ui import rna_idprop_ui_prop_get @@ -232,5 +233,11 @@ def main(obj, bone_definition, base_names, options): if x_direction(): # flip driver.expression = "-(%s)" % driver.expression + + # last step setup layers + layers = get_layer_dict(options) + arm.bones[control_name].layer = layers["extra"] + + # no blending the result of this return None |