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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2010-04-06 11:49:10 +0400
committerCampbell Barton <ideasman42@gmail.com>2010-04-06 11:49:10 +0400
commitbad41fcff50f599dd1e9a6595a365d6d796df584 (patch)
treedb14f80dcfa3c5c137c2fdd27896227d0c4d42a9 /release
parent5304a65b50103c405cc5130a479a36833ec7f9bd (diff)
- new docstrings for bpy.type.Struct methods & some corrections.
- struct.path_to_id() --> path_from_id().
Diffstat (limited to 'release')
-rw-r--r--release/scripts/keyingsets/keyingsets_utils.py2
-rw-r--r--release/scripts/modules/rigify/arm_biped.py2
-rw-r--r--release/scripts/modules/rigify/eye_balls.py2
-rw-r--r--release/scripts/modules/rigify/eye_lid.py2
-rw-r--r--release/scripts/modules/rigify/finger_curl.py4
-rw-r--r--release/scripts/modules/rigify/leg_biped.py2
-rw-r--r--release/scripts/modules/rigify/leg_quadruped.py4
-rw-r--r--release/scripts/modules/rigify/mouth.py2
-rw-r--r--release/scripts/modules/rigify/neck_flex.py4
-rw-r--r--release/scripts/modules/rigify/palm_curl.py2
-rw-r--r--release/scripts/modules/rigify/spine_pivot_flex.py4
-rw-r--r--release/scripts/modules/rigify/tail_control.py2
-rw-r--r--release/scripts/modules/rigify_utils.py2
13 files changed, 17 insertions, 17 deletions
diff --git a/release/scripts/keyingsets/keyingsets_utils.py b/release/scripts/keyingsets/keyingsets_utils.py
index 4ad6dab798f..777f5f052e2 100644
--- a/release/scripts/keyingsets/keyingsets_utils.py
+++ b/release/scripts/keyingsets/keyingsets_utils.py
@@ -84,7 +84,7 @@ def get_transform_generators_base_info(data):
grouping = None
else:
# get the path to the ID-block
- path = data.path_to_id()
+ path = data.path_from_id()
# try to use the name of the data element to group the F-Curve
# else fallback on the KeyingSet name
diff --git a/release/scripts/modules/rigify/arm_biped.py b/release/scripts/modules/rigify/arm_biped.py
index 7aa6a37304a..8568db66e5a 100644
--- a/release/scripts/modules/rigify/arm_biped.py
+++ b/release/scripts/modules/rigify/arm_biped.py
@@ -244,7 +244,7 @@ def fk(obj, definitions, base_names, options):
driver = driver_fcurve.driver
- controller_path = fk_chain.arm_p.path_to_id()
+ controller_path = fk_chain.arm_p.path_from_id()
# add custom prop
fk_chain.arm_p["hinge"] = 0.0
prop = rna_idprop_ui_prop_get(fk_chain.arm_p, "hinge", create=True)
diff --git a/release/scripts/modules/rigify/eye_balls.py b/release/scripts/modules/rigify/eye_balls.py
index 8c126151024..c1302a5cbca 100644
--- a/release/scripts/modules/rigify/eye_balls.py
+++ b/release/scripts/modules/rigify/eye_balls.py
@@ -197,7 +197,7 @@ def control(obj, definitions, base_names, options):
prop["min"] = 0.0
prop["max"] = 1.0
- free_driver_path = pb[target_ctrl].path_to_id() + '["free"]'
+ free_driver_path = pb[target_ctrl].path_from_id() + '["free"]'
# Constraints
# Mind's eye tracks eye target control
diff --git a/release/scripts/modules/rigify/eye_lid.py b/release/scripts/modules/rigify/eye_lid.py
index 6eb1ff87d82..dd9c953e97d 100644
--- a/release/scripts/modules/rigify/eye_lid.py
+++ b/release/scripts/modules/rigify/eye_lid.py
@@ -355,7 +355,7 @@ def control(obj, definitions, base_names, options):
prop["min"] = 0.0
prop["max"] = 1.0
- close_driver_path = pb[upper_lid_ctrl].path_to_id() + '["close_action"]'
+ close_driver_path = pb[upper_lid_ctrl].path_from_id() + '["close_action"]'
# Constraints
diff --git a/release/scripts/modules/rigify/finger_curl.py b/release/scripts/modules/rigify/finger_curl.py
index fcf57f81d3e..1f4d3e985f3 100644
--- a/release/scripts/modules/rigify/finger_curl.py
+++ b/release/scripts/modules/rigify/finger_curl.py
@@ -280,7 +280,7 @@ def main(obj, bone_definition, base_names, options):
con.target = obj
con.subtarget = bb[org_f1].parent.name
- hinge_driver_path = pb[control].path_to_id() + '["hinge"]'
+ hinge_driver_path = pb[control].path_from_id() + '["hinge"]'
fcurve = con.driver_add("influence", 0)
driver = fcurve.driver
@@ -301,7 +301,7 @@ def main(obj, bone_definition, base_names, options):
con.subtarget = socket
# Create the drivers for the driver bones (control bone scale rotates driver bones)
- controller_path = pb[control].path_to_id() # 'pose.bones["%s"]' % control_bone_name
+ controller_path = pb[control].path_from_id() # 'pose.bones["%s"]' % control_bone_name
i = 0
for bone in [df2, df3]:
diff --git a/release/scripts/modules/rigify/leg_biped.py b/release/scripts/modules/rigify/leg_biped.py
index 0d3fbabba68..862d44b653f 100644
--- a/release/scripts/modules/rigify/leg_biped.py
+++ b/release/scripts/modules/rigify/leg_biped.py
@@ -349,7 +349,7 @@ def fk(obj, bone_definition, base_names, options):
con.subtarget = mt.hips
# add driver
- hinge_driver_path = fk_chain.thigh_p.path_to_id() + '["hinge"]'
+ hinge_driver_path = fk_chain.thigh_p.path_from_id() + '["hinge"]'
fcurve = con.driver_add("influence", 0)
driver = fcurve.driver
diff --git a/release/scripts/modules/rigify/leg_quadruped.py b/release/scripts/modules/rigify/leg_quadruped.py
index c21680740bd..701fe295aac 100644
--- a/release/scripts/modules/rigify/leg_quadruped.py
+++ b/release/scripts/modules/rigify/leg_quadruped.py
@@ -207,7 +207,7 @@ def ik(obj, bone_definition, base_names, options):
prop["min"] = 0.0
prop["max"] = 1.0
- ik_driver_path = pb[ik_chain.foot].path_to_id() + '["ik"]'
+ ik_driver_path = pb[ik_chain.foot].path_from_id() + '["ik"]'
# simple constraining of orig bones
con = mt_chain.thigh_p.constraints.new('COPY_TRANSFORMS')
@@ -369,7 +369,7 @@ def fk(obj, bone_definition, base_names, options):
prop["min"] = 0.0
prop["max"] = 1.0
- hinge_driver_path = pb[fk_chain.thigh].path_to_id() + '["hinge"]'
+ hinge_driver_path = pb[fk_chain.thigh].path_from_id() + '["hinge"]'
fcurve = con.driver_add("influence", 0)
driver = fcurve.driver
diff --git a/release/scripts/modules/rigify/mouth.py b/release/scripts/modules/rigify/mouth.py
index 4defd28f56a..da03eb94b23 100644
--- a/release/scripts/modules/rigify/mouth.py
+++ b/release/scripts/modules/rigify/mouth.py
@@ -448,7 +448,7 @@ def control(obj, definitions, base_names, options):
prop["min"] = 0.0
prop["max"] = 1.0
- open_driver_path = pb[lip1].path_to_id() + '["open_action"]'
+ open_driver_path = pb[lip1].path_from_id() + '["open_action"]'
# Constraints
diff --git a/release/scripts/modules/rigify/neck_flex.py b/release/scripts/modules/rigify/neck_flex.py
index e45d128433a..555645ecd2a 100644
--- a/release/scripts/modules/rigify/neck_flex.py
+++ b/release/scripts/modules/rigify/neck_flex.py
@@ -237,7 +237,7 @@ def main(obj, bone_definition, base_names, options):
con.subtarget = mt.body
# add driver
- hinge_driver_path = ex.head_ctrl_p.path_to_id() + '["hinge"]'
+ hinge_driver_path = ex.head_ctrl_p.path_from_id() + '["hinge"]'
fcurve = con.driver_add("influence", 0)
driver = fcurve.driver
@@ -254,7 +254,7 @@ def main(obj, bone_definition, base_names, options):
mod.coefficients[0] = 1.0
mod.coefficients[1] = -1.0
- head_driver_path = ex.head_ctrl_p.path_to_id()
+ head_driver_path = ex.head_ctrl_p.path_from_id()
target_names = [("b%.2d" % (i + 1)) for i in range(len(neck_chain))]
diff --git a/release/scripts/modules/rigify/palm_curl.py b/release/scripts/modules/rigify/palm_curl.py
index 6626438709d..165bffad950 100644
--- a/release/scripts/modules/rigify/palm_curl.py
+++ b/release/scripts/modules/rigify/palm_curl.py
@@ -156,7 +156,7 @@ def main(obj, bone_definition, base_names, options):
driver_fcurves = pinky_pbone.driver_add("rotation_euler")
- controller_path = control_pbone.path_to_id()
+ controller_path = control_pbone.path_from_id()
# add custom prop
control_pbone["spread"] = 0.0
diff --git a/release/scripts/modules/rigify/spine_pivot_flex.py b/release/scripts/modules/rigify/spine_pivot_flex.py
index 422c632e95a..d67c066cdd5 100644
--- a/release/scripts/modules/rigify/spine_pivot_flex.py
+++ b/release/scripts/modules/rigify/spine_pivot_flex.py
@@ -301,7 +301,7 @@ def main(obj, bone_definition, base_names, options):
var.name = "var"
var.targets[0].id_type = 'OBJECT'
var.targets[0].id = obj
- var.targets[0].data_path = ex.ribcage_copy_p.path_to_id() + '["hinge"]'
+ var.targets[0].data_path = ex.ribcage_copy_p.path_from_id() + '["hinge"]'
mod = fcurve.modifiers[0]
mod.poly_order = 1
@@ -347,7 +347,7 @@ def main(obj, bone_definition, base_names, options):
# Constrain 'inbetween' bones
target_names = [("b%.2d" % (i + 1)) for i in range(spine_chain_len - 1)]
- rib_driver_path = ex.ribcage_copy_p.path_to_id()
+ rib_driver_path = ex.ribcage_copy_p.path_from_id()
ex.ribcage_copy_p["bend_tot"] = 0.0
fcurve = ex.ribcage_copy_p.driver_add('["bend_tot"]', 0)
diff --git a/release/scripts/modules/rigify/tail_control.py b/release/scripts/modules/rigify/tail_control.py
index c0addf97a52..65d5c1d34dc 100644
--- a/release/scripts/modules/rigify/tail_control.py
+++ b/release/scripts/modules/rigify/tail_control.py
@@ -133,7 +133,7 @@ def main(obj, bone_definitions, base_names, options):
con_h.subtarget = hinge1
# Add drivers
- bone_path = pb[bones[0]].path_to_id()
+ bone_path = pb[bones[0]].path_from_id()
driver_fcurve = con_f.driver_add("influence", 0)
driver = driver_fcurve.driver
diff --git a/release/scripts/modules/rigify_utils.py b/release/scripts/modules/rigify_utils.py
index 812342b3ebc..6ed97ce0bf0 100644
--- a/release/scripts/modules/rigify_utils.py
+++ b/release/scripts/modules/rigify_utils.py
@@ -136,7 +136,7 @@ def blend_bone_list(obj, apply_bones, from_bones, to_bones, target_bone=None, ta
prop["soft_min"] = 0.0
prop["soft_max"] = 1.0
- driver_path = prop_pbone.path_to_id() + ('["%s"]' % target_prop)
+ driver_path = prop_pbone.path_from_id() + ('["%s"]' % target_prop)
def blend_target(driver):
var = driver.variables.new()