summaryrefslogtreecommitdiff
path: root/bck_export.py
diff options
context:
space:
mode:
authorOwl <isaclien9752@gmail.com>2025-08-28 20:31:31 -0400
committerOwl <isaclien9752@gmail.com>2025-08-28 20:31:31 -0400
commit469df8f3d967a4fbb7eb1edfaa25bfee298394da (patch)
treeea130c911cdba5f807e53a8e9a534124edda8a1d /bck_export.py
parent022c1f7529a364929b9595a80229cb5bf95b43fe (diff)
downloadblenxy-469df8f3d967a4fbb7eb1edfaa25bfee298394da.tar.gz
blenxy-469df8f3d967a4fbb7eb1edfaa25bfee298394da.zip
small logic change
Diffstat (limited to 'bck_export.py')
-rw-r--r--bck_export.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/bck_export.py b/bck_export.py
index 293cd12..06a8658 100644
--- a/bck_export.py
+++ b/bck_export.py
@@ -103,14 +103,16 @@ def export_bck_func(options, context):
# convert them to the euler order mode requested
# and assign those fcurves to the bone_fcurves list
# (this is tuff)
+ temp_fcurve_group = "temp"
+ temp_fcurve_data_path = "temp_fcurves"
if (options.euler_mode != pose_bone.rotation_mode):
# generate the temp fcurves but first check if they are animation tracks named that way already
- all_fcurves = list(armature.animation_data.action.fcurves)
- for fcurve in all_fcurves:
- if (fcurve.group.name == "temp" or fcurve.data_path == "temp_fcurves"): # delete this animation track
+ for fcurve in list(armature.animation_data.action.fcurves):
+ if (fcurve.group.name == temp_fcurve_group
+ and fcurve.data_path == temp_fcurve_data_path): # delete this animation track
armature.animation_data.action.fcurves.remove(fcurve)
for j in range(3):
- temp_fcurves[j] = armature.animation_data.action.fcurves.new("temp_fcurves", j, "temp")
+ temp_fcurves[j] = armature.animation_data.action.fcurves.new(temp_fcurve_data_path, j, temp_fcurve_group)
og_rot_values = [None, None, None, None] # to hold original data
# other euler order
@@ -171,8 +173,6 @@ def export_bck_func(options, context):
# all the fcurves with the correct units were selected
# generate all the new animation points, interpolation stuff will be done later
- print("huh?!")
- print(temp_fcurves)
# get the points on all frames, only the points
for j in range(bck_anim.anim_length):