diff --git a/OP_expand_cycle_step.py b/OP_expand_cycle_step.py index 050e832..1b3d8fb 100644 --- a/OP_expand_cycle_step.py +++ b/OP_expand_cycle_step.py @@ -126,7 +126,7 @@ def bake_cycle(on_selection=True): # C.scene.frame_current = org_frame # detect last key in contact - +# FIXME: need to use action offset fc instead of eval_time def step_path(): '''Step the path anim of the curve to constant''' print(fn.helper()) @@ -213,7 +213,7 @@ class UAC_OT_bake_cycle_and_step(bpy.types.Operator): if curve: act = fn.get_obj_action(curve.data) if act: - timef = next((fcu for fcu in act.fcurves if fcu.data_path == 'eval_time'), None) + timef = next((fc for fc in act.fcurves if fc.data_path.endswith('.offset') and 'constraint' in fc.data_path), None) if timef: keys_ct = len(timef.keyframe_points) if keys_ct > 2: