diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2011-09-19 19:08:06 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2011-09-19 19:08:06 +0400 |
commit | 1d1482044b46c98f86c33945a1bd1cf4edc7bb36 (patch) | |
tree | 795f6b4344018f9193e6beb954d5c74396c19012 /rigify | |
parent | 0dd81203a3982e55af012cfcc9a232c78ce631b9 (diff) |
/trunk: Removed final points in UI strings and messages.
Plus a few styling enhancements.
[[Split portion of a mixed commit.]]
Diffstat (limited to 'rigify')
-rw-r--r-- | rigify/__init__.py | 4 | ||||
-rw-r--r-- | rigify/rigs/basic/copy.py | 4 | ||||
-rw-r--r-- | rigify/rigs/basic/copy_chain.py | 6 | ||||
-rw-r--r-- | rigify/rigs/biped/arm/__init__.py | 10 | ||||
-rw-r--r-- | rigify/rigs/biped/arm/deform.py | 2 | ||||
-rw-r--r-- | rigify/rigs/biped/arm/fk.py | 2 | ||||
-rw-r--r-- | rigify/rigs/biped/arm/ik.py | 2 | ||||
-rw-r--r-- | rigify/rigs/biped/leg/__init__.py | 10 | ||||
-rw-r--r-- | rigify/rigs/biped/leg/deform.py | 6 | ||||
-rw-r--r-- | rigify/rigs/biped/leg/fk.py | 6 | ||||
-rw-r--r-- | rigify/rigs/biped/leg/ik.py | 6 | ||||
-rw-r--r-- | rigify/rigs/finger.py | 8 | ||||
-rw-r--r-- | rigify/rigs/misc/delta.py | 4 | ||||
-rw-r--r-- | rigify/rigs/neck_short.py | 2 | ||||
-rw-r--r-- | rigify/rigs/palm.py | 2 | ||||
-rw-r--r-- | rigify/rigs/spine.py | 8 | ||||
-rw-r--r-- | rigify/utils.py | 16 |
17 files changed, 49 insertions, 49 deletions
diff --git a/rigify/__init__.py b/rigify/__init__.py index 4884abac..fc8eb818 100644 --- a/rigify/__init__.py +++ b/rigify/__init__.py @@ -129,7 +129,7 @@ def register(): bpy.utils.register_class(RigifyParameters) bpy.utils.register_class(RigifyArmatureLayer) - bpy.types.PoseBone.rigify_type = bpy.props.StringProperty(name="Rigify Type", description="Rig type for this bone.") + bpy.types.PoseBone.rigify_type = bpy.props.StringProperty(name="Rigify Type", description="Rig type for this bone") bpy.types.PoseBone.rigify_parameters = bpy.props.CollectionProperty(type=RigifyParameters) bpy.types.Armature.rigify_layers = bpy.props.CollectionProperty(type=RigifyArmatureLayer) @@ -137,7 +137,7 @@ def register(): IDStore = bpy.types.WindowManager IDStore.rigify_collection = bpy.props.EnumProperty(items=col_enum_list, default="All", name="Rigify Active Collection", description="The selected rig collection") IDStore.rigify_types = bpy.props.CollectionProperty(type=RigifyName) - IDStore.rigify_active_type = bpy.props.IntProperty(name="Rigify Active Type", description="The selected rig type.") + IDStore.rigify_active_type = bpy.props.IntProperty(name="Rigify Active Type", description="The selected rig type") # Add rig parameters for rig in rig_list: diff --git a/rigify/rigs/basic/copy.py b/rigify/rigs/basic/copy.py index d430113b..6a8800b2 100644 --- a/rigify/rigs/basic/copy.py +++ b/rigify/rigs/basic/copy.py @@ -85,8 +85,8 @@ class Rig: """ Add the parameters of this rig type to the RigifyParameters PropertyGroup """ - group.make_control = bpy.props.BoolProperty(name="Control", default=True, description="Create a control bone for the copy.") - group.make_deform = bpy.props.BoolProperty(name="Deform", default=True, description="Create a deform bone for the copy.") + group.make_control = bpy.props.BoolProperty(name="Control", default=True, description="Create a control bone for the copy") + group.make_deform = bpy.props.BoolProperty(name="Deform", default=True, description="Create a deform bone for the copy") @classmethod diff --git a/rigify/rigs/basic/copy_chain.py b/rigify/rigs/basic/copy_chain.py index b1dbcd83..937b02f6 100644 --- a/rigify/rigs/basic/copy_chain.py +++ b/rigify/rigs/basic/copy_chain.py @@ -40,7 +40,7 @@ class Rig: self.make_deforms = params.make_deforms if len(self.org_bones) <= 1: - raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 2 or more bones." % (strip_org(bone_name))) + raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 2 or more bones" % (strip_org(bone_name))) def generate(self): """ Generate the rig. @@ -124,8 +124,8 @@ class Rig: """ Add the parameters of this rig type to the RigifyParameters PropertyGroup """ - group.make_controls = bpy.props.BoolProperty(name="Controls", default=True, description="Create control bones for the copy.") - group.make_deforms = bpy.props.BoolProperty(name="Deform", default=True, description="Create deform bones for the copy.") + group.make_controls = bpy.props.BoolProperty(name="Controls", default=True, description="Create control bones for the copy") + group.make_deforms = bpy.props.BoolProperty(name="Deform", default=True, description="Create deform bones for the copy") @classmethod diff --git a/rigify/rigs/biped/arm/__init__.py b/rigify/rigs/biped/arm/__init__.py index 74677af0..55cd2564 100644 --- a/rigify/rigs/biped/arm/__init__.py +++ b/rigify/rigs/biped/arm/__init__.py @@ -95,13 +95,13 @@ class Rig: items = [('X', 'X', ''), ('Y', 'Y', ''), ('Z', 'Z', ''), ('-X', '-X', ''), ('-Y', '-Y', ''), ('-Z', '-Z', '')] group.primary_rotation_axis = bpy.props.EnumProperty(items=items, name="Primary Rotation Axis", default='X') - group.bend_hint = bpy.props.BoolProperty(name="Bend Hint", default=True, description="Give IK chain a hint about which way to bend. Useful for perfectly straight chains.") + group.bend_hint = bpy.props.BoolProperty(name="Bend Hint", default=True, description="Give IK chain a hint about which way to bend. Useful for perfectly straight chains") - group.separate_ik_layers = bpy.props.BoolProperty(name="Separate IK Control Layers:", default=False, description="Enable putting the ik controls on a separate layer from the fk controls.") - group.ik_layers = bpy.props.BoolVectorProperty(size=32, description="Layers for the ik controls to be on.") + group.separate_ik_layers = bpy.props.BoolProperty(name="Separate IK Control Layers:", default=False, description="Enable putting the ik controls on a separate layer from the fk controls") + group.ik_layers = bpy.props.BoolVectorProperty(size=32, description="Layers for the ik controls to be on") - group.use_upper_arm_twist = bpy.props.BoolProperty(name="Upper Arm Twist", default=True, description="Generate the dual-bone twist setup for the upper arm.") - group.use_forearm_twist = bpy.props.BoolProperty(name="Forearm Twist", default=True, description="Generate the dual-bone twist setup for the forearm.") + group.use_upper_arm_twist = bpy.props.BoolProperty(name="Upper Arm Twist", default=True, description="Generate the dual-bone twist setup for the upper arm") + group.use_forearm_twist = bpy.props.BoolProperty(name="Forearm Twist", default=True, description="Generate the dual-bone twist setup for the forearm") @classmethod def parameters_ui(self, layout, obj, bone): diff --git a/rigify/rigs/biped/arm/deform.py b/rigify/rigs/biped/arm/deform.py index 265c944d..112c5550 100644 --- a/rigify/rigs/biped/arm/deform.py +++ b/rigify/rigs/biped/arm/deform.py @@ -87,7 +87,7 @@ class Rig: self.org_bones = [bone] + connected_children_names(self.obj, bone)[:2] if len(self.org_bones) != 3: - raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 3 bones." % (strip_org(bone))) + raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 3 bones" % (strip_org(bone))) # Get rig parameters self.use_upper_arm_twist = params.use_upper_arm_twist diff --git a/rigify/rigs/biped/arm/fk.py b/rigify/rigs/biped/arm/fk.py index 214d7682..690dab50 100644 --- a/rigify/rigs/biped/arm/fk.py +++ b/rigify/rigs/biped/arm/fk.py @@ -45,7 +45,7 @@ class Rig: self.org_bones = [bone] + connected_children_names(self.obj, bone)[:2] if len(self.org_bones) != 3: - raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 3 bones." % (strip_org(bone))) + raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 3 bones" % (strip_org(bone))) # Get (optional) parent if self.obj.data.bones[bone].parent is None: diff --git a/rigify/rigs/biped/arm/ik.py b/rigify/rigs/biped/arm/ik.py index fb784b7d..55147a47 100644 --- a/rigify/rigs/biped/arm/ik.py +++ b/rigify/rigs/biped/arm/ik.py @@ -75,7 +75,7 @@ class Rig: self.org_bones = [bone] + connected_children_names(self.obj, bone)[:2] if len(self.org_bones) != 3: - raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 3 bones." % (strip_org(bone))) + raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 3 bones" % (strip_org(bone))) # Get the rig parameters if params.separate_ik_layers: diff --git a/rigify/rigs/biped/leg/__init__.py b/rigify/rigs/biped/leg/__init__.py index 21c5fa2b..c80376a8 100644 --- a/rigify/rigs/biped/leg/__init__.py +++ b/rigify/rigs/biped/leg/__init__.py @@ -97,13 +97,13 @@ class Rig: items = [('X', 'X', ''), ('Y', 'Y', ''), ('Z', 'Z', ''), ('-X', '-X', ''), ('-Y', '-Y', ''), ('-Z', '-Z', '')] group.primary_rotation_axis = bpy.props.EnumProperty(items=items, name="Primary Rotation Axis", default='X') - group.bend_hint = bpy.props.BoolProperty(name="Bend Hint", default=True, description="Give IK chain a hint about which way to bend. Useful for perfectly straight chains.") + group.bend_hint = bpy.props.BoolProperty(name="Bend Hint", default=True, description="Give IK chain a hint about which way to bend (useful for perfectly straight chains)") - group.separate_ik_layers = bpy.props.BoolProperty(name="Separate IK Control Layers:", default=False, description="Enable putting the ik controls on a separate layer from the fk controls.") - group.ik_layers = bpy.props.BoolVectorProperty(size=32, description="Layers for the ik controls to be on.") + group.separate_ik_layers = bpy.props.BoolProperty(name="Separate IK Control Layers:", default=False, description="Enable putting the ik controls on a separate layer from the fk controls") + group.ik_layers = bpy.props.BoolVectorProperty(size=32, description="Layers for the ik controls to be on") - group.use_thigh_twist = bpy.props.BoolProperty(name="Thigh Twist", default=True, description="Generate the dual-bone twist setup for the thigh.") - group.use_shin_twist = bpy.props.BoolProperty(name="Shin Twist", default=True, description="Generate the dual-bone twist setup for the shin.") + group.use_thigh_twist = bpy.props.BoolProperty(name="Thigh Twist", default=True, description="Generate the dual-bone twist setup for the thigh") + group.use_shin_twist = bpy.props.BoolProperty(name="Shin Twist", default=True, description="Generate the dual-bone twist setup for the shin") @classmethod def parameters_ui(self, layout, obj, bone): diff --git a/rigify/rigs/biped/leg/deform.py b/rigify/rigs/biped/leg/deform.py index 3a649139..5ea8cf65 100644 --- a/rigify/rigs/biped/leg/deform.py +++ b/rigify/rigs/biped/leg/deform.py @@ -87,7 +87,7 @@ class Rig: leg_bones = [bone] + connected_children_names(self.obj, bone)[:2] if len(leg_bones) != 2: - raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type." % (strip_org(bone))) + raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type" % (strip_org(bone))) # Get the foot and heel foot = None @@ -100,7 +100,7 @@ class Rig: heel = b.name if foot is None or heel is None: - raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type." % (strip_org(bone))) + raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type" % (strip_org(bone))) # Get the toe toe = None @@ -109,7 +109,7 @@ class Rig: toe = b.name if toe is None: - raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type." % (strip_org(bone))) + raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type" % (strip_org(bone))) self.org_bones = leg_bones + [foot, toe, heel] diff --git a/rigify/rigs/biped/leg/fk.py b/rigify/rigs/biped/leg/fk.py index 0e51b501..5ff9d4a9 100644 --- a/rigify/rigs/biped/leg/fk.py +++ b/rigify/rigs/biped/leg/fk.py @@ -46,7 +46,7 @@ class Rig: leg_bones = [bone] + connected_children_names(self.obj, bone)[:2] if len(leg_bones) != 2: - raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type." % (strip_org(bone))) + raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type" % (strip_org(bone))) # Get the foot and heel foot = None @@ -59,7 +59,7 @@ class Rig: heel = b.name if foot is None or heel is None: - raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type." % (strip_org(bone))) + raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type" % (strip_org(bone))) # Get the toe toe = None @@ -69,7 +69,7 @@ class Rig: # Get the toe if toe is None: - raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type." % (strip_org(bone))) + raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type" % (strip_org(bone))) self.org_bones = leg_bones + [foot, toe, heel] diff --git a/rigify/rigs/biped/leg/ik.py b/rigify/rigs/biped/leg/ik.py index 806de417..cfac1430 100644 --- a/rigify/rigs/biped/leg/ik.py +++ b/rigify/rigs/biped/leg/ik.py @@ -96,7 +96,7 @@ class Rig: leg_bones = [bone] + connected_children_names(self.obj, bone)[:2] if len(leg_bones) != 2: - raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type." % (strip_org(bone))) + raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type" % (strip_org(bone))) # Get the foot and heel foot = None @@ -113,7 +113,7 @@ class Rig: if foot is None or heel is None: print("blah") - raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type." % (strip_org(bone))) + raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type" % (strip_org(bone))) # Get the toe toe = None @@ -123,7 +123,7 @@ class Rig: # Get toe if toe is None: - raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type." % (strip_org(bone))) + raise MetarigError("RIGIFY ERROR: Bone '%s': incorrect bone configuration for rig type" % (strip_org(bone))) self.org_bones = leg_bones + [foot, toe, heel, rocker] diff --git a/rigify/rigs/finger.py b/rigify/rigs/finger.py index c33fdfd9..523a9edd 100644 --- a/rigify/rigs/finger.py +++ b/rigify/rigs/finger.py @@ -39,7 +39,7 @@ class Rig: self.params = params if len(self.org_bones) <= 1: - raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 2 or more bones." % (strip_org(bone))) + raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 2 or more bones" % (strip_org(bone))) # Get user-specified layers, if they exist if params.separate_extra_layers: @@ -280,10 +280,10 @@ class Rig: items = [('X', 'X', ''), ('Y', 'Y', ''), ('Z', 'Z', ''), ('-X', '-X', ''), ('-Y', '-Y', ''), ('-Z', '-Z', '')] group.primary_rotation_axis = bpy.props.EnumProperty(items=items, name="Primary Rotation Axis", default='X') - group.separate_extra_layers = bpy.props.BoolProperty(name="Separate Secondary Control Layers:", default=False, description="Enable putting the secondary controls on a separate layer from the primary controls.") - group.extra_layers = bpy.props.BoolVectorProperty(size=32, description="Layers for the secondary controls to be on.") + group.separate_extra_layers = bpy.props.BoolProperty(name="Separate Secondary Control Layers:", default=False, description="Enable putting the secondary controls on a separate layer from the primary controls") + group.extra_layers = bpy.props.BoolVectorProperty(size=32, description="Layers for the secondary controls to be on") - group.use_digit_twist = bpy.props.BoolProperty(name="Digit Twist", default=True, description="Generate the dual-bone twist setup for the first finger digit.") + group.use_digit_twist = bpy.props.BoolProperty(name="Digit Twist", default=True, description="Generate the dual-bone twist setup for the first finger digit") @classmethod def parameters_ui(self, layout, obj, bone): diff --git a/rigify/rigs/misc/delta.py b/rigify/rigs/misc/delta.py index 12bd69ce..2db278f0 100644 --- a/rigify/rigs/misc/delta.py +++ b/rigify/rigs/misc/delta.py @@ -40,9 +40,9 @@ class Rig: bb = obj.data.bones if bb[bone].children is None: - raise MetarigError("RIGIFY ERROR: bone '%s': rig type requires one child." % org_name(bone.name)) + raise MetarigError("RIGIFY ERROR: bone '%s': rig type requires one child" % org_name(bone.name)) if bb[bone].use_connect == True: - raise MetarigError("RIGIFY ERROR: bone '%s': rig type cannot be connected to parent." % org_name(bone.name)) + raise MetarigError("RIGIFY ERROR: bone '%s': rig type cannot be connected to parent" % org_name(bone.name)) self.obj = obj self.org_bones = {"delta": bone, "child": bb[bone].children[0].name} diff --git a/rigify/rigs/neck_short.py b/rigify/rigs/neck_short.py index b5ffc453..edba5c8d 100644 --- a/rigify/rigs/neck_short.py +++ b/rigify/rigs/neck_short.py @@ -53,7 +53,7 @@ class Rig: self.params = params if len(self.org_bones) <= 1: - raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 2 or more bones." % (strip_org(bone_name))) + raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 2 or more bones" % (strip_org(bone_name))) self.isolate = False if self.obj.data.bones[bone_name].parent: diff --git a/rigify/rigs/palm.py b/rigify/rigs/palm.py index 6ad72f4e..1309f626 100644 --- a/rigify/rigs/palm.py +++ b/rigify/rigs/palm.py @@ -66,7 +66,7 @@ class Rig: siblings = bone_siblings(obj, bone) if len(siblings) == 0: - raise MetarigError("RIGIFY ERROR: Bone '%s': must have a parent and at least one sibling." % (strip_org(bone))) + raise MetarigError("RIGIFY ERROR: Bone '%s': must have a parent and at least one sibling" % (strip_org(bone))) # Sort list by name and distance siblings.sort() diff --git a/rigify/rigs/spine.py b/rigify/rigs/spine.py index 740cfa7e..1b77c4c3 100644 --- a/rigify/rigs/spine.py +++ b/rigify/rigs/spine.py @@ -75,7 +75,7 @@ class Rig: self.pivot_rest = min(self.pivot_rest, 1.0-(1.0/len(self.org_bones))) if len(self.org_bones) <= 1: - raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 2 or more bones." % (strip_org(bone_name))) + raise MetarigError("RIGIFY ERROR: Bone '%s': input to rig type must be a chain of 2 or more bones" % (strip_org(bone_name))) def gen_deform(self): """ Generate the deformation rig. @@ -528,9 +528,9 @@ class Rig: """ Add the parameters of this rig type to the RigifyParameters PropertyGroup """ - group.spine_main_control_name = bpy.props.StringProperty(name="Main control name", default="torso", description="Name that the main control bone should be given.") - group.rest_pivot_slide = bpy.props.FloatProperty(name="Rest Pivot Slide", default=0.0, min=0.0, max=1.0, soft_min=0.0, soft_max=1.0, description="The pivot slide value in the rest pose.") - group.chain_bone_controls = bpy.props.StringProperty(name="Control bone list", default="", description="Define which bones have controls.") + group.spine_main_control_name = bpy.props.StringProperty(name="Main control name", default="torso", description="Name that the main control bone should be given") + group.rest_pivot_slide = bpy.props.FloatProperty(name="Rest Pivot Slide", default=0.0, min=0.0, max=1.0, soft_min=0.0, soft_max=1.0, description="The pivot slide value in the rest pose") + group.chain_bone_controls = bpy.props.StringProperty(name="Control bone list", default="", description="Define which bones have controls") @classmethod diff --git a/rigify/utils.py b/rigify/utils.py index d9135271..c367c82a 100644 --- a/rigify/utils.py +++ b/rigify/utils.py @@ -128,7 +128,7 @@ def new_bone(obj, bone_name): bpy.ops.object.mode_set(mode='EDIT') return name else: - raise MetarigError("Can't add new bone '%s' outside of edit mode." % bone_name) + raise MetarigError("Can't add new bone '%s' outside of edit mode" % bone_name) def copy_bone(obj, bone_name, assign_name=''): @@ -136,7 +136,7 @@ def copy_bone(obj, bone_name, assign_name=''): Returns the resulting bone's name. """ if bone_name not in obj.data.bones: - raise MetarigError("copy_bone(): bone '%s' not found, cannot copy it." % bone_name) + raise MetarigError("copy_bone(): bone '%s' not found, cannot copy it" % bone_name) if obj == bpy.context.active_object and bpy.context.mode == 'EDIT_ARMATURE': if assign_name == '': @@ -199,14 +199,14 @@ def copy_bone(obj, bone_name, assign_name=''): return bone_name_2 else: - raise MetarigError("Cannot copy bones outside of edit mode.") + raise MetarigError("Cannot copy bones outside of edit mode") def flip_bone(obj, bone_name): """ Flips an edit bone. """ if bone_name not in obj.data.bones: - raise MetarigError("flip_bone(): bone '%s' not found, cannot copy it." % bone_name) + raise MetarigError("flip_bone(): bone '%s' not found, cannot copy it" % bone_name) if obj == bpy.context.active_object and bpy.context.mode == 'EDIT_ARMATURE': bone = obj.data.edit_bones[bone_name] @@ -216,14 +216,14 @@ def flip_bone(obj, bone_name): bone.head = tail bone.tail = head else: - raise MetarigError("Cannot flip bones outside of edit mode.") + raise MetarigError("Cannot flip bones outside of edit mode") def put_bone(obj, bone_name, pos): """ Places a bone at the given position. """ if bone_name not in obj.data.bones: - raise MetarigError("put_bone(): bone '%s' not found, cannot copy it." % bone_name) + raise MetarigError("put_bone(): bone '%s' not found, cannot copy it" % bone_name) if obj == bpy.context.active_object and bpy.context.mode == 'EDIT_ARMATURE': bone = obj.data.edit_bones[bone_name] @@ -231,7 +231,7 @@ def put_bone(obj, bone_name, pos): delta = pos - bone.head bone.translate(delta) else: - raise MetarigError("Cannot 'put' bones outside of edit mode.") + raise MetarigError("Cannot 'put' bones outside of edit mode") #============================================= @@ -242,7 +242,7 @@ def obj_to_bone(obj, rig, bone_name): """ Places an object at the location/rotation/scale of the given bone. """ if bpy.context.mode == 'EDIT_ARMATURE': - raise MetarigError("obj_to_bone(): does not work while in edit mode.") + raise MetarigError("obj_to_bone(): does not work while in edit mode") bone = rig.data.bones[bone_name] |