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:
authorCampbell Barton <ideasman42@gmail.com>2011-08-26 09:33:04 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-08-26 09:33:04 +0400
commit4330632ef09237e360af91fbbcc1cbc5aa3a3be8 (patch)
tree59b5b266d6687e1d75101753990e1daa21c1f045 /mocap/mocap_tools.py
parent2bb8bb9ba02410f84ada26edb7929b1646e22284 (diff)
Superficial pep8 edits
Diffstat (limited to 'mocap/mocap_tools.py')
-rw-r--r--mocap/mocap_tools.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/mocap/mocap_tools.py b/mocap/mocap_tools.py
index ede55db4..8815f169 100644
--- a/mocap/mocap_tools.py
+++ b/mocap/mocap_tools.py
@@ -116,8 +116,8 @@ class dataPoint:
def crossCorrelationMatch(curvesA, curvesB, margin):
dataA = []
dataB = []
- start = int(max(curvesA[0].range()[0],curvesB[0].range()[0]))
- end = int(min(curvesA[0].range()[1],curvesB[0].range()[1]))
+ start = int(max(curvesA[0].range()[0], curvesB[0].range()[0]))
+ end = int(min(curvesA[0].range()[1], curvesB[0].range()[1]))
#transfer all fcurves data on each frame to a single NdVector.
for i in range(1, end):
@@ -131,6 +131,7 @@ def crossCorrelationMatch(curvesA, curvesB, margin):
if fcurve.data_path in [otherFcurve.data_path for otherFcurve in curvesA]:
vec.append(fcurve.evaluate(i))
dataB.append(NdVector(vec))
+
#Comparator for Cross Correlation. "Classic" implementation uses dot product, as do we.
def comp(a, b):
return a * b
@@ -877,7 +878,7 @@ def anim_stitch(context, enduser_obj):
scene.frame_set(stitch_settings.blend_frame - 1)
desired_pos = (enduser_obj.matrix_world * selected_bone.matrix.to_translation())
scene.frame_set(stitch_settings.blend_frame)
- actual_pos = (enduser_obj.matrix_world * selected_bone.matrix.to_translation() )
+ actual_pos = (enduser_obj.matrix_world * selected_bone.matrix.to_translation())
print(desired_pos, actual_pos)
offset = Vector(actual_pos) - Vector(desired_pos)
@@ -887,7 +888,7 @@ def anim_stitch(context, enduser_obj):
pt.co.y -= offset[i]
pt.handle_left.y -= offset[i]
pt.handle_right.y -= offset[i]
-
+
#actionBStrip.blend_in = stitch_settings.blend_amount