model/blend: Blender 1.6x-2.0x files (big-endian, 32-bit, TFace / MCol, IPO curves, additive dsize), easing curves, owner-scoped address lookup; containers/Blend tests; docs section; bench line

This commit is contained in:
4DBug committed 2026-11-01 19:23:28 -06:00
1 parent 2e82b7d0af
commit 3c8d5e99d7
14 files changed
+766 -110

No files matched your search

+12
View File
@@ -365,6 +365,18 @@ def rig_file():
mover.keyframe_insert("location", frame=f)
mover.keyframe_insert("rotation_euler", frame=f)
mover.keyframe_insert("scale", frame=f)
# easing interpolations (Penner) with explicit and automatic easing
easer = link(bpy.data.objects.new("Easer", None))
eases = (("SINE", "EASE_IN_OUT"), ("BOUNCE", "AUTO"), ("SINE", "EASE_OUT"), ("BACK", "EASE_IN"),
("EXPO", "AUTO"), ("CIRC", "EASE_OUT"), ("QUART", "EASE_IN_OUT"), ("EXPO", "EASE_OUT"), ("EXPO", "EASE_IN_OUT"), ("CUBIC", "EASE_IN"))
for k in range(len(eases) + 1):
easer.location = (k % 2 * 2.0, k * 0.5, 0)
easer.keyframe_insert("location", frame=1 + k * 2.5)
for fc in (easer.animation_data.action.fcurves if hasattr(easer.animation_data.action, "fcurves") else
[c for l in easer.animation_data.action.layers for s in l.strips for b in s.channelbags for c in b.fcurves]):
for kp, (ipo, easing) in zip(fc.keyframe_points, eases):
kp.interpolation = ipo
kp.easing = easing
rig_action = rig.animation_data.action
mover_action = mover.animation_data.action
for act, rules in ((rig_action, {"location": "LINEAR", "scale": "CONSTANT"}),