Clipboard: keyframe text starts the layer with a Layer line (#1908)

This commit is contained in:
tylerjenningsw
2026-10-20 09:10:29 -04:00
parent 47093d997a
commit 8ace9aac7f
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -86,8 +86,10 @@ pub(crate) fn text(project: &Project, comp: &Comp, keys: &[KeyRef], statics: &[(
},
_ => comp.pixel_aspect,
};
// After Effects starts the layer's properties with a `Layer` line; parsers such as
// ae-keyframes reject properties without one.
Some(format!(
"Adobe After Effects 8.0 Keyframe Data\n\n\tUnits Per Second\t{}\n\tSource Width\t{w}\n\tSource Height\t{h}\n\tSource Pixel Aspect Ratio\t{}\n\tComp Pixel Aspect Ratio\t{}\n\n{blocks}End of Keyframe Data\n",
"Adobe After Effects 8.0 Keyframe Data\n\n\tUnits Per Second\t{}\n\tSource Width\t{w}\n\tSource Height\t{h}\n\tSource Pixel Aspect Ratio\t{}\n\tComp Pixel Aspect Ratio\t{}\n\nLayer\n{blocks}End of Keyframe Data\n",
num(fps),
num(par),
num(comp.pixel_aspect)
+1
View File
@@ -51,6 +51,7 @@ fn copied_keys_are_after_effects_text_in_comp_frames() {
s.state.keyframe_text.as_deref(),
Some(
"Adobe After Effects 8.0 Keyframe Data\n\n\tUnits Per Second\t23.976\n\tSource Width\t200\n\tSource Height\t100\n\tSource Pixel Aspect Ratio\t1\n\tComp Pixel Aspect Ratio\t1\n\n\
Layer\n\
Transform\tPosition\n\tFrame\tX pixels\tY pixels\tZ pixels\n\t12\t960\t540\t0\n\t19\t1100\t500\t0\n\n\
Transform\tRotation\n\tFrame\tdegrees\n\t15\t-45\n\n\
End of Keyframe Data\n"