Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gavrilov <angavrilov@gmail.com>2019-05-05 19:51:40 +0300
committerAlexander Gavrilov <angavrilov@gmail.com>2019-05-05 20:10:57 +0300
commit792f4d5f69c3207176ef14ce9bee518b0ca66ea8 (patch)
tree481e3bb5bb11d65aaab690fe58a325ab83693d2b /rigify/utils/bones.py
parent9abf009f0a42b3b7260d2e90031a3f74e20f1f54 (diff)
Rigify: new utilities for bone naming and driver creation, and some fixes.
- Added a utility for creating Transform Channel driver variables. - Added a utility for deriving one bone name from another with suffix. The bone name utility is inspired by get_bone_name from limb_utils.py
Diffstat (limited to 'rigify/utils/bones.py')
-rw-r--r--rigify/utils/bones.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rigify/utils/bones.py b/rigify/utils/bones.py
index 9002d083..a8e55f9a 100644
--- a/rigify/utils/bones.py
+++ b/rigify/utils/bones.py
@@ -24,7 +24,7 @@ from mathutils import Vector, Matrix, Color
from rna_prop_ui import rna_idprop_ui_prop_get
from .errors import MetarigError
-from .naming import strip_org, make_mechanism_name, insert_before_lr
+from .naming import make_derived_name
#=======================
# Bone collection
@@ -256,8 +256,8 @@ def make_nonscaling_child(obj, bone_name, location, child_name_postfix=""):
if obj == bpy.context.active_object and bpy.context.mode == 'EDIT_ARMATURE':
# Create desired names for bones
- name1 = make_mechanism_name(strip_org(insert_before_lr(bone_name, child_name_postfix + "_ns_ch")))
- name2 = make_mechanism_name(strip_org(insert_before_lr(bone_name, child_name_postfix + "_ns_intr")))
+ name1 = make_derived_name(bone_name, 'mch', child_name_postfix + "_ns_ch")
+ name2 = make_derived_name(bone_name, 'mch', child_name_postfix + "_ns_intr")
# Create bones
child = copy_bone(obj, bone_name, name1)