summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--__init__.py2
-rw-r--r--bck_export.py12
2 files changed, 7 insertions, 7 deletions
diff --git a/__init__.py b/__init__.py
index 7379f82..6628161 100644
--- a/__init__.py
+++ b/__init__.py
@@ -6,7 +6,7 @@
# that the python interpreter must have built in
import bpy, importlib, sys, subprocess, os, shutil
import math, mathutils, warnings, struct, site
-from . import file_ops
+from . import file_ops # uses os and shutil modules
# elemental python modules blenxy needs
# that the python interpreter probably does not have built in/needs to be updated
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):