Revision: 28286 http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28286 Author: cessen Date: 2010-04-19 17:20:33 +0200 (Mon, 19 Apr 2010)
Log Message: ----------- Updated rigify scripts for minor driver api change. Modified Paths: -------------- branches/render25/release/scripts/modules/rigify/arm_biped.py branches/render25/release/scripts/modules/rigify/eye_balls.py branches/render25/release/scripts/modules/rigify/eye_lid.py branches/render25/release/scripts/modules/rigify/finger_curl.py branches/render25/release/scripts/modules/rigify/leg_biped.py branches/render25/release/scripts/modules/rigify/leg_quadruped.py branches/render25/release/scripts/modules/rigify/mouth.py branches/render25/release/scripts/modules/rigify/neck.py branches/render25/release/scripts/modules/rigify/neck_flex.py branches/render25/release/scripts/modules/rigify/shape_key_control.py branches/render25/release/scripts/modules/rigify/shape_key_distance.py branches/render25/release/scripts/modules/rigify/shape_key_rotdiff.py branches/render25/release/scripts/modules/rigify/spine_pivot_flex.py branches/render25/release/scripts/modules/rigify/tail_control.py branches/render25/release/scripts/modules/rigify/tongue.py branches/render25/release/scripts/modules/rigify_utils.py Modified: branches/render25/release/scripts/modules/rigify/arm_biped.py =================================================================== --- branches/render25/release/scripts/modules/rigify/arm_biped.py 2010-04-19 13:37:44 UTC (rev 28285) +++ branches/render25/release/scripts/modules/rigify/arm_biped.py 2010-04-19 15:20:33 UTC (rev 28286) @@ -240,7 +240,7 @@ con.name = "hinge" con.target = obj con.subtarget = mt.shoulder - driver_fcurve = con.driver_add("influence", 0) + driver_fcurve = con.driver_add("influence") driver = driver_fcurve.driver Modified: branches/render25/release/scripts/modules/rigify/eye_balls.py =================================================================== --- branches/render25/release/scripts/modules/rigify/eye_balls.py 2010-04-19 13:37:44 UTC (rev 28285) +++ branches/render25/release/scripts/modules/rigify/eye_balls.py 2010-04-19 15:20:33 UTC (rev 28286) @@ -57,7 +57,7 @@ if driver_s.data_path == driver_path: fcurve = driver_s if fcurve == None: - fcurve = obj.data.shape_keys.keys[name].driver_add("value", 0) + fcurve = obj.data.shape_keys.keys[name].driver_add("value") fcurve.driver.type = 'AVERAGE' new = True @@ -295,7 +295,7 @@ con.target = obj con.subtarget = head - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' mod = fcurve.modifiers[0] Modified: branches/render25/release/scripts/modules/rigify/eye_lid.py =================================================================== --- branches/render25/release/scripts/modules/rigify/eye_lid.py 2010-04-19 13:37:44 UTC (rev 28285) +++ branches/render25/release/scripts/modules/rigify/eye_lid.py 2010-04-19 15:20:33 UTC (rev 28286) @@ -438,7 +438,7 @@ con.minimum = -distance*2 con.maximum = distance con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -457,7 +457,7 @@ con.minimum = -distance*2 con.maximum = distance con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -475,7 +475,7 @@ con.minimum = -distance*2 con.maximum = distance con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -493,7 +493,7 @@ con.minimum = -distance*2 con.maximum = distance con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -511,7 +511,7 @@ con.minimum = -distance*2 con.maximum = distance con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -530,7 +530,7 @@ con.minimum = -distance con.maximum = distance*2 con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -548,7 +548,7 @@ con.minimum = -distance con.maximum = distance*2 con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -566,7 +566,7 @@ con.minimum = -distance con.maximum = distance*2 con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -584,7 +584,7 @@ con.minimum = -distance con.maximum = distance*2 con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -602,7 +602,7 @@ con.minimum = -distance con.maximum = distance*2 con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() Modified: branches/render25/release/scripts/modules/rigify/finger_curl.py =================================================================== --- branches/render25/release/scripts/modules/rigify/finger_curl.py 2010-04-19 13:37:44 UTC (rev 28285) +++ branches/render25/release/scripts/modules/rigify/finger_curl.py 2010-04-19 15:20:33 UTC (rev 28286) @@ -291,7 +291,7 @@ hinge_driver_path = pb[control].path_from_id() + '["hinge"]' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver var = driver.variables.new() driver.type = 'AVERAGE' Modified: branches/render25/release/scripts/modules/rigify/leg_biped.py =================================================================== --- branches/render25/release/scripts/modules/rigify/leg_biped.py 2010-04-19 13:37:44 UTC (rev 28285) +++ branches/render25/release/scripts/modules/rigify/leg_biped.py 2010-04-19 15:20:33 UTC (rev 28286) @@ -351,7 +351,7 @@ # add driver hinge_driver_path = fk_chain.thigh_p.path_from_id() + '["hinge"]' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver var = driver.variables.new() driver.type = 'AVERAGE' Modified: branches/render25/release/scripts/modules/rigify/leg_quadruped.py =================================================================== --- branches/render25/release/scripts/modules/rigify/leg_quadruped.py 2010-04-19 13:37:44 UTC (rev 28285) +++ branches/render25/release/scripts/modules/rigify/leg_quadruped.py 2010-04-19 15:20:33 UTC (rev 28286) @@ -213,7 +213,7 @@ con = mt_chain.thigh_p.constraints.new('COPY_TRANSFORMS') con.target = obj con.subtarget = ik_chain.thigh - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver var = driver.variables.new() driver.type = 'AVERAGE' @@ -225,7 +225,7 @@ con = mt_chain.shin_p.constraints.new('COPY_TRANSFORMS') con.target = obj con.subtarget = ik_chain.shin - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver var = driver.variables.new() driver.type = 'AVERAGE' @@ -237,7 +237,7 @@ con = mt_chain.foot_p.constraints.new('COPY_TRANSFORMS') con.target = obj con.subtarget = ik.foot_roll_02 - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver var = driver.variables.new() driver.type = 'AVERAGE' @@ -249,7 +249,7 @@ con = mt_chain.toe_p.constraints.new('COPY_TRANSFORMS') con.target = obj con.subtarget = ik_chain.toe - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver var = driver.variables.new() driver.type = 'AVERAGE' @@ -371,7 +371,7 @@ hinge_driver_path = pb[fk_chain.thigh].path_from_id() + '["hinge"]' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver var = driver.variables.new() driver.type = 'AVERAGE' Modified: branches/render25/release/scripts/modules/rigify/mouth.py =================================================================== --- branches/render25/release/scripts/modules/rigify/mouth.py 2010-04-19 13:37:44 UTC (rev 28285) +++ branches/render25/release/scripts/modules/rigify/mouth.py 2010-04-19 15:20:33 UTC (rev 28286) @@ -77,7 +77,7 @@ if driver_s.data_path == driver_path: fcurve = driver_s if fcurve == None: - fcurve = obj.data.shape_keys.keys[name].driver_add("value", 0) + fcurve = obj.data.shape_keys.keys[name].driver_add("value") fcurve.driver.type = 'AVERAGE' new = True @@ -548,7 +548,7 @@ con.minimum = 0.0 con.maximum = 1.0 con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -566,7 +566,7 @@ con.minimum = 0.0 con.maximum = 1.0 con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -584,7 +584,7 @@ con.minimum = 0.0 con.maximum = 1.0 con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -602,7 +602,7 @@ con.minimum = 0.0 con.maximum = 1.0 con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -620,7 +620,7 @@ con.minimum = 0.0 con.maximum = 1.0 con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -638,7 +638,7 @@ con.minimum = 0.0 con.maximum = 1.0 con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' var = driver.variables.new() @@ -656,7 +656,7 @@ con.minimum = 0.0 con.maximum = 1.0 con.target_space = 'LOCAL' - fcurve = con.driver_add("influence", 0) + fcurve = con.driver_add("influence") driver = fcurve.driver driver.type = 'AVERAGE' @@ Diff output truncated at 10240 characters. @@ _______________________________________________ Bf-blender-cvs mailing list Bf-blender-cvs@blender.org http://lists.blender.org/mailman/listinfo/bf-blender-cvs