Browse Source

Nuke aggressive bezier squelching

pull/10/head
Adam Johnson 10 years ago
parent
commit
4ad72c879b
  1. 3
      korman/exporter/animation.py

3
korman/exporter/animation.py

@ -246,11 +246,10 @@ class AnimationConverter:
og_frame = fkey.co[0] og_frame = fkey.co[0]
keyframe.in_tans[idx] = -(value - fkey.handle_left[1]) / (og_frame - fkey.handle_left[0]) / fps / (2 * pi) keyframe.in_tans[idx] = -(value - fkey.handle_left[1]) / (og_frame - fkey.handle_left[0]) / fps / (2 * pi)
keyframe.out_tans[idx] = (value - fkey.handle_right[1]) / (og_frame - fkey.handle_right[0]) / fps / (2 * pi) keyframe.out_tans[idx] = (value - fkey.handle_right[1]) / (og_frame - fkey.handle_right[0]) / fps / (2 * pi)
bez_chans.add(idx)
else: else:
keyframe.in_tans[idx] = 0.0 keyframe.in_tans[idx] = 0.0
keyframe.out_tans[idx] = 0.0 keyframe.out_tans[idx] = 0.0
if keyframe.in_tans[idx] != 0.0 or keyframe.out_tans[idx] != 0.0:
bez_chans.add(idx)
# Return the keyframes in a sequence sorted by frame number # Return the keyframes in a sequence sorted by frame number
final_keyframes = [keyframes[i] for i in sorted(keyframes)] final_keyframes = [keyframes[i] for i in sorted(keyframes)]

Loading…
Cancel
Save