Add the first AEP batch: 17 projects, 3 presets, tools and validation notes

17 After Effects projects (16 .aep, 1 .aepx) and 3 contributor-made
animation presets, each with an attribution sidecar, an ATTRIBUTION.md
row and a SHA256SUMS entry. Embedded ICC profiles are replaced by
description-only stubs; the final bytes are inspected in raw, base64 and
hex form (tools/aep/inspect-embedded.py). Generators, cleanup tools,
the case map, the unavailable inputs and the validation with
EFFECTCRAFT_AEP_FIXTURES_REQUIRED=1 are in tools/aep/ and docs/aep/.
This commit is contained in:
vangel76 committed 2026-11-03 19:26:53 +01:00
1 parent 4b8bcd2eae
commit 780cafff4f
56 files changed
+17352 -17

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
# fixtures are hashed byte for byte: never convert line endings
aep/*.aep -text
aep/*.aepx -text
aep/inputs/*.ffx -text
SHA256SUMS text eol=lf
+6 -2
View File
@@ -1,10 +1,14 @@
# Asset attribution
No corpus assets have been added yet. This index will list every fixture, authoring input,
supporting media file and reference output when the first reviewed batch is contributed.
Every fixture, authoring input, supporting media file and reference output is listed here.
The first batch (2026-11-03) holds 17 After Effects projects and 3 authoring presets; no media or
reference outputs.
| Asset | Author | Source / generation recipe | License |
|---|---|---|---|
| `aep/inputs/curves-red-mid-down.ffx` | vangel76 (contributor) | Adobe After Effects 2026, tools/aep/GENERATING.md | MIT OR Apache-2.0 |
| `aep/inputs/curves-rgb-two-points.ffx` | vangel76 (contributor) | Adobe After Effects 2026, tools/aep/GENERATING.md | MIT OR Apache-2.0 |
| `aep/inputs/meshwarp-3x3-center-right.ffx` | vangel76 (contributor) | Adobe After Effects 2026, tools/aep/GENERATING.md | MIT OR Apache-2.0 |
Each asset `X` also needs an adjacent `X.attribution` file:
+2 -2
View File
@@ -9,8 +9,8 @@ Copyright (c) 2026 ArtCraft Team and the PhotoCraft contributors.
Licensed under the MIT License or the Apache License, Version 2.0.
The documentation has been modified for EffectCraft's AEP corpus and its initial setup.
No corpus assets are included in the initial setup. Future assets must be listed in
ATTRIBUTION.md with their own attribution sidecars and generation notes.
The corpus assets are listed in ATTRIBUTION.md, each with its own attribution sidecar and
generation notes.
Adobe and After Effects are trademarks or registered trademarks of Adobe Inc.
This project is not affiliated with, sponsored by or endorsed by Adobe Inc.
+3 -4
View File
@@ -17,8 +17,8 @@
</p>
> [!NOTE]
> This repository currently contains the corpus layout and contribution instructions.
> The first reviewed AEP fixtures, generators and checksum entries will be added separately.
> The first AEP batch (17 projects, 3 authoring presets) is described in
> [`docs/aep/2026-11-03-initial-corpus.md`](docs/aep/2026-11-03-initial-corpus.md).
> EffectCraft's pinned corpus fetch command is still pending.
**Contents:** [What this is](#what-this-is) · [Layout](#layout) ·
@@ -99,7 +99,6 @@ cargo test --locked -p effectcraft-aep -- --nocapture
`EFFECTCRAFT_AEP_FIXTURES_REQUIRED=1` makes a missing fixture fail instead of silently
skipping. Record actual passed, failed and ignored counts, and explain ignored cases.
The initial empty layout is not a passing corpus run.
## Verifying
@@ -110,7 +109,7 @@ sha256sum -c SHA256SUMS # Linux
shasum -a 256 -c SHA256SUMS # macOS alternative
```
`SHA256SUMS` currently has no entries because no corpus payloads have been added. It must
`SHA256SUMS` lists the 17 projects and 3 presets of the first batch. It must
cover every fixture, authoring input, supporting media file and reference output in a published batch. Use
repository-relative paths, sorted by path. Attribution sidecars and documentation are tracked
alongside the files; their revision is fixed by the commit pin.
+20
View File
@@ -0,0 +1,20 @@
1e10b8ee47f43c5cd6e19710fbab28f498f8b73dbfa1a8f830ae41ad3b1c19ef aep/empty.aep
2e1a59562b52eb97ce32ccc7810a54f0671eae567d1d9869041b391d3cc4a20c aep/effects.aep
4a0cd5a0e52d8d14ee0f895b0a3e054199d399094b410a7b2a620eb484d5cba8 aep/inputs/meshwarp-3x3-center-right.ffx
4a51318c4b37fa95e2c02682183d3982fdfbe1870dc50ba729b776d1826f982e aep/3d.aep
57184fec75ec8892ac6c8ac360274fdaa4fc4ed39093f969f30a45fbf2afaf9e aep/layers-comps.aep
59e79c1621de108a4960d2bb6b14bc54e39df658f459af777b50fa95f2b7b32b aep/aepx-pair.aepx
5fe35e08d05e72583fdd19e02878cc974136736e39090fab9d84d132fb2b4d35 aep/styles.aep
71ba74dade2ef411026a55a945d573cf059ff03aeb2d527fe2c6833e13174df3 aep/settings-c.aep
7e162f536d422daffbe909b50fdd83d7160c6b150ce6c34216c65dba46ab87cb aep/fx-switch.aep
9035039df7c34f04c33337719a2fef5ba93db5d2317434eb3476906571654d3b aep/shapes.aep
93d6a9f2a2980d999bcb628a4e7220d1922b1c535d535663f69043778322d72f aep/masks.aep
b4a61e988743b0f6b5a7ad6875f958ccf173fcf0d7d6097c441a0aa71c5e1fd7 aep/settings-b.aep
b4ee29ebd0d46b6013efc05c0f8cce4be61ce2d5b8bc38c5a814b86bceeee286 aep/footage-precomp.aep
baad5a326f255797c03b3cc0a776524b7eabfb217fbc301b0596ac3e4e97d71b aep/keyframes.aep
c3255249dd29279cc6a14c156a0acb82b0bc255a0be77c0178a9c4bc891206a5 aep/settings-a.aep
da8ba17d095ddb1576db658ad28a3966d7231244cf0391f77d71d7aa68c6e085 aep/aepx-pair.aep
e3992190150366b01859e32adcb9bbe2e0ef492bd2259a8b7e85b571afeca24f aep/inputs/curves-rgb-two-points.ffx
f6ce60a8ed0fa786625078f61995e1184ef0b016efaeeb0b4ae6337831697821 aep/inputs/curves-red-mid-down.ffx
fca73b3e4f5398a0ab686b74d8eb3e1c2dd37c7db0e8a31b2e0f45ba0bb3c8ff aep/markers.aep
fded434b54532f9001c53a3482deed0c157f76ee067b354a801ec9c2747002db aep/text.aep
BIN
View File
Binary file not shown.
+4 -2
View File
@@ -1,7 +1,9 @@
# AEP corpus
This collection is reserved for reviewed, original After Effects projects used to test
EffectCraft's `.aep` and `.aepx` reader and importer. No fixtures are included yet.
Reviewed, original After Effects projects used to test EffectCraft's `.aep` and `.aepx` reader
and importer. The first batch (17 files, case map in
[`docs/aep/CASES.md`](../docs/aep/CASES.md)) is described in
[`docs/aep/2026-11-03-initial-corpus.md`](../docs/aep/2026-11-03-initial-corpus.md).
## Layout
BIN
View File
Binary file not shown.
+14580
View File
File diff suppressed because it is too large. Load diff
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
+3 -1
View File
@@ -1,7 +1,9 @@
# AEP authoring inputs
Keep reviewed, original inputs used to generate the AEP fixtures here, including
contributor-created animation presets and starting projects. No inputs are included yet.
contributor-created animation presets and starting projects. The first batch holds three presets (`curves-red-mid-down.ffx`, `curves-rgb-two-points.ffx`,
`meshwarp-3x3-center-right.ffx`), used by cases 963, 964 and 985; see
[`tools/aep/GENERATING.md`](../../tools/aep/GENERATING.md).
Finished test projects belong directly in [`aep/`](../), and supporting images, audio and
sequences belong in [`aep/media/`](../media/). This directory is for reusable authoring
Binary file not shown.
@@ -0,0 +1,8 @@
asset: curves-red-mid-down.ffx
title: Curves animation preset: Red channel, middle point dragged down (file curve (0,0) (128,44) (255,255)); applied by case 963
author: vangel76 (contributor)
source: original work, made by hand in Adobe After Effects 2026 (Windows) on 2026-10-19: add the effect to a solid, set it as described, select the effect, Animation > Save Animation Preset, delete the effect (tools/aep/GENERATING.md, "The three preset cases")
license: MIT OR Apache-2.0
license-file: ../../LICENSE-MIT, ../../LICENSE-APACHE
added: 2026-11-03 by @vangel76
notes: Contains only the one effect with the values set by hand; no Adobe preset, sample or bundled asset was used or copied. XMP packet of After Effects (CreatorTool, timestamps, random document ids) only; no ICC profile, no paths or personal names (checked with tools/aep/inspect-embedded.py).
Binary file not shown.
@@ -0,0 +1,8 @@
asset: curves-rgb-two-points.ffx
title: Curves animation preset: RGB channel S-curve, a point at about 1/4 dragged down and one at 3/4 up (file curve (0,0) (62,24) (194,230) (255,255)); applied by case 964
author: vangel76 (contributor)
source: original work, made by hand in Adobe After Effects 2026 (Windows) on 2026-10-19: add the effect to a solid, set it as described, select the effect, Animation > Save Animation Preset, delete the effect (tools/aep/GENERATING.md, "The three preset cases")
license: MIT OR Apache-2.0
license-file: ../../LICENSE-MIT, ../../LICENSE-APACHE
added: 2026-11-03 by @vangel76
notes: Contains only the one effect with the values set by hand; no Adobe preset, sample or bundled asset was used or copied. XMP packet of After Effects (CreatorTool, timestamps, random document ids) only; no ICC profile, no paths or personal names (checked with tools/aep/inspect-embedded.py).
Binary file not shown.
@@ -0,0 +1,8 @@
asset: meshwarp-3x3-center-right.ffx
title: Mesh Warp animation preset: Rows 3, Columns 3, the lower-right inner vertex dragged about 100 px to the right; applied by case 985
author: vangel76 (contributor)
source: original work, made by hand in Adobe After Effects 2026 (Windows) on 2026-10-19: add the effect to a solid, set it as described, select the effect, Animation > Save Animation Preset, delete the effect (tools/aep/GENERATING.md, "The three preset cases")
license: MIT OR Apache-2.0
license-file: ../../LICENSE-MIT, ../../LICENSE-APACHE
added: 2026-11-03 by @vangel76
notes: Contains only the one effect with the values set by hand; no Adobe preset, sample or bundled asset was used or copied. XMP packet of After Effects (CreatorTool, timestamps, random document ids) only; no ICC profile, no paths or personal names (checked with tools/aep/inspect-embedded.py).
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+4 -2
View File
@@ -1,7 +1,9 @@
# Supporting media
Keep original media needed by the AEP fixtures here. This directory is currently empty of
assets.
Keep original media needed by the AEP fixtures here. This directory is empty in
the first batch: the footage links of the projects name media that are not included, and the
tests expect those footage items to be missing (documented placeholders, see
[`docs/aep/2026-11-03-initial-corpus.md`](../../docs/aep/2026-11-03-initial-corpus.md)).
For each file, include its generator or authoring recipe, an adjacent `.attribution` sidecar,
an entry in the root [asset index](../../ATTRIBUTION.md), and its hash in
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+116
View File
@@ -0,0 +1,116 @@
# Initial AEP corpus (2026-11-03)
The first batch: 17 After Effects projects and 3 authoring presets, made by the contributor
(vangel76) for the tests of EffectCraft's `.aep` importer ([#2558](https://github.com/storytold/effectcraft/pull/2558)).
The case map is [`CASES.md`](CASES.md), the generation steps are
[`tools/aep/GENERATING.md`](../../tools/aep/GENERATING.md), every file is hashed in
[`SHA256SUMS`](../../SHA256SUMS) and listed in [`ATTRIBUTION.md`](../../ATTRIBUTION.md).
## What is in the batch
| files | count | what |
|---|---|---|
| `aep/*.aep` | 16 | combined projects: one composition per case, named like the case (see `CASES.md`); `empty.aep` and `fx-switch.aep` are single-case files, `settings-a/b/c.aep` hold the project-settings cases |
| `aep/aepx-pair.aepx` | 1 | the XML form of `aepx-pair.aep` (same projects, saved as `.aep` and then as `.aepx`) |
| `aep/inputs/*.ffx` | 3 | the contributor's own animation presets used by cases 963, 964 and 985 |
No media and no reference renders are included. The footage items of the projects name
contributor-made test media by neutral paths (`C:\fixtures\...`); the tests expect these items to be
**missing placeholders** (intentional), so the corpus needs no media.
## How the files were made
- Application: Adobe After Effects 2026 (26.2.1) on Windows 11, driven through an After Effects MCP
server (`batch.run` of atomic operations; ExtendScript `eval.run` is disabled there). The
operation tables are `tools/aep/*.jsx` and `tools/aep/*-to-mcp.js`; run order in `GENERATING.md`.
- Hand-made parts that scripting cannot do: the three presets (Curves and Mesh Warp keep their
data in an arbitrary-data parameter), the fx switch of `fx-switch.aep`, and the byte edits of the
text cases 732 and 733 and the cases 988 and 734 (`patch-text.py`). See `GENERATING.md`.
- Presets: made by hand in After Effects 2026 on 2026-10-19 (add the effect, set it, select the
effect, Animation > Save Animation Preset). No Adobe preset or sample was used.
- Unavailable inputs: the contributor's test media, the earlier single-case projects some cases are
merged from, the six-preset set (only three are published). Listed in `GENERATING.md`.
## Changes made after saving
1. `scrub.py` (and `layers-comps-scrub-aepx.py`): footage alias paths replaced by neutral ones of
the same length, host name `HOST000...`, neutral ascend counts, the XMP packet replaced by the
one of the base project.
2. **Colour profile payloads replaced.** Every project written by After Effects 2026 embeds its
working-space ICC profile (HP sRGB IEC61966-2.1, 3144 bytes, base64 in the settings JSON), and
imported footage brings its own. `tools/aep/stubicc.rs` replaced each one by a description-only
stub (128-byte header, one `desc` tag holding the original profile name, 252 bytes in all, no colour
data). Saving the projects with working space None was not an option: the importer reads the
working space's name from the profile and the settings cases (sRGB, Rec.709 Gamma 2.4, gamma)
test exactly that. `settings-a.aep` has no profile block at all (working space None, its cases are
623 and friends).
**Limit:** the stubs keep a working-space *name*. They do not carry a colour transform and say nothing
about rendering or colour management; the corpus has no reference renders. Cases that depend on a
profile's colour data cannot be tested with it.
## Embedded-content inspection (final files)
Run on the exact files of this batch, not on the tool's own report:
```sh
python -I tools/aep/inspect-embedded.py aep --forbid <user name> --forbid <machine name> --forbid <folder names>
```
The script looks at raw bytes, every long base64 run and every long hex run (the `.aepx`
`bdata="..."` attributes), searches each for an ICC header (`acsp` at offset 36), prints size, tag
count and `desc` of each profile found, searches for vendor strings (`Hewlett`, `Adobe RGB`,
`Apple Computer`) in the raw and the base64-decoded text, and for the forbidden texts (ASCII and
UTF-16). Result for all 17 projects and the 3 presets: exit code 0.
| result | detail |
|---|---|
| profiles found | 36 in 16 of the 17 projects, every one 252 bytes with 1 tag (the stub); 0 in `settings-a.aep`; 0 in the presets |
| where | 35 as base64 in the settings JSON / footage items (one of them in `aepx-pair.aepx`), 1 raw (the profile chunk of the imported png in `footage-precomp.aep`, also a stub now); no profile in the `.aepx` hex runs |
| descriptions | `sRGB IEC61966-2.1` in all but one; `Rec.709 Gamma 2.4` once (`settings-c.aep`) |
| vendor strings | none |
| user, machine and folder names | none |
What else is embedded and where it comes from: the XMP packets that After Effects writes (creator
tool, timestamps, random document ids; taken from the base project by `scrub.py`), the project
structure and the property names After Effects writes, and the fonts the text cases name
(Times New Roman, referenced by name; no font is embedded).
## Validation
- EffectCraft revision: [`bb54a0a0`](https://github.com/storytold/effectcraft/commit/bb54a0a0ec9fadc4222a2624b3dbd1fedd72d14c)
(the head of #2558 when this batch was validated).
- Corpus: this batch (hashes in `SHA256SUMS`; verified with `sha256sum -c SHA256SUMS`).
- Machine: Windows 11, Rust 1.99.0 (stable).
- Commands (from the EffectCraft checkout, the corpus beside it):
```sh
export EFFECTCRAFT_AEP_FIXTURES=../effectcraft-corpus/aep
export EFFECTCRAFT_AEP_FIXTURES_REQUIRED=1
cargo test --locked -p effectcraft-aep
cargo test --locked -p effectcraft-engine aep
cargo test --locked -p effectcraft-ui-egui aep
AEP_CORPUS=../effectcraft-corpus/aep cargo test --locked -p effectcraft-aep --test it aepx -- --ignored
```
| run | passed | failed | ignored |
|---|---|---|---|
| `effectcraft-aep` unit tests | 29 | 0 | 0 |
| `effectcraft-aep` integration tests (`it`) | 410 | 0 | 2 |
| `effectcraft-engine` (filter `aep`) | 8 | 0 | 0 |
| `effectcraft-ui-egui` (filter `aep`) | 5 | 0 | 0 |
| the 2 ignored tests, run with `AEP_CORPUS` | 2 | 0 | 0 |
With `EFFECTCRAFT_AEP_FIXTURES_REQUIRED=1` a missing project fails its test; no test printed
`SKIPPED`. The 2 ignored tests (`every_corpus_pair_*`) are `#[ignore]`d by the app because they
read every `.aep`/`.aepx` pair of a folder; they were run separately (1 of 1 pairs in this corpus).
These are parser and importer checks of the project structure and imported values. There is no
render comparison and no comparison with After Effects output in this batch.
## Expected results
No expected value was changed. The tests ran before with the projects as After Effects saved them
(with the vendor profile) and after with the stubs, with the same assertions and the same results.
That includes the working-space cases: the importer takes the name from the `desc` tag, and the stub
keeps it.
+390
View File
@@ -0,0 +1,390 @@
# The test cases and the files that hold them
The tests of `effectcraft-aep` (and the After Effects import tests of `effectcraft-engine`) address
a case by the name of the single-case file it was first written against. The cases live in the
combined projects of the corpus (in the folder named by `EFFECTCRAFT_AEP_FIXTURES`): each case is the composition named like the case without its
extension, built like the single-case file's composition `C` (1920x1080, 25 fps, 5 s, black, one
red 1920x1080 solid `L`) plus the case's change (and the compositions that change uses). A test
gets the case as a project of its own, cut from the combined file (`tests/it/common/mod.rs`).
`empty.aep` and `fx-switch.aep` (the fx switch of an effect instance) are files of their own.
Project settings have one value per project, so the settings cases share the files `settings-*`
(each file holds the changes of all its cases). The generator and how to run it:
[`tools/README.md`](tools/README.md). Every file has an `.attribution` sidecar in the corpus.
| case | file | composition | change |
|---|---|---|---|
| `000-base.aep` | `layers-comps.aep` | `000-base` | base state |
| `000-base.aepx` | `aepx-pair.aepx` | `000-base` | base state |
| `001-empty.aep` | `empty.aep` | (whole file) | an empty project saved by After Effects (no items) |
| `010-layer-name.aep` | `layers-comps.aep` | `010-layer-name` | layer name `L` -> `Renamed` (layer.name; source footage name stays `L`) |
| `012-layer-shy.aep` | `layers-comps.aep` | `012-layer-shy` | layer.shy false -> true |
| `013-layer-locked.aep` | `layers-comps.aep` | `013-layer-locked` | layer.locked false -> true |
| `014-layer-solo.aep` | `layers-comps.aep` | `014-layer-solo` | layer.solo false -> true |
| `015-layer-3d.aep` | `3d.aep` | `015-layer-3d` | layer.threeDLayer false -> true (3D layer switch; adds Orientation/X/Y/Z Rotation, Material Options groups) |
| `016-layer-blend-multiply.aep` | `layers-comps.aep` | `016-layer-blend-multiply` | blending mode Normal -> Multiply |
| `017-layer-motionblur.aep` | `layers-comps.aep` | `017-layer-motionblur` | layer.motionBlur false -> true |
| `018-layer-stretch200.aep` | `keyframes.aep` | `018-layer-stretch200` | time stretch 100 -> 200 (out point becomes 10 s; comp is 5 s) |
| `019-layer-inpoint1.aep` | `layers-comps.aep` | `019-layer-inpoint1` | inPoint 0 -> 1 (AE moved outPoint to 6, startTime stays 0; solid source is unbounded) |
| `021-layer-starttime0.5.aep` | `layers-comps.aep` | `021-layer-starttime0.5` | startTime 0 -> 0.5 (in 0.5, out 5.5) |
| `022-layer-parent-null.aep` | `layers-comps.aep` | `022-layer-parent-null` | NEW null layer "Null" (source "Null 1", 100x100) created on top; L (now index 2) parent = layer 1 (Null). Adds 1 layer + 1 footage item |
| `023-layer-quality-draft.aep` | `layers-comps.aep` | `023-layer-quality-draft` | layer.quality Best -> Draft |
| `024-layer-collapse.aep` | `layers-comps.aep` | `024-layer-collapse` | layer.collapseTransformation false -> true (API call accepted; AE may ignore it for a solid, compare with base) |
| `025-layer-adjustment.aep` | `layers-comps.aep` | `025-layer-adjustment` | layer.adjustmentLayer false -> true |
| `026-layer-guide.aep` | `layers-comps.aep` | `026-layer-guide` | layer.guideLayer false -> true |
| `030-comp-size-1280x720.aep` | `layers-comps.aep` | `030-comp-size-1280x720` | comp width/height 1920x1080 -> 1280x720 (layer L stays 1920x1080, not repositioned) |
| `031-comp-fps30.aep` | `layers-comps.aep` | `031-comp-fps30` | frameRate 25 -> 30 |
| `032-comp-duration10.aep` | `layers-comps.aep` | `032-comp-duration10` | duration 5 -> 10 s (work area duration also becomes 10) |
| `033-comp-bg-green.aep` | `layers-comps.aep` | `033-comp-bg-green` | bgColor [0,0,0] -> [0,1,0] |
| `034-comp-shutter90.aep` | `layers-comps.aep` | `034-comp-shutter90` | shutterAngle 180 -> 90 |
| `035-comp-workarea-1-2.aep` | `layers-comps.aep` | `035-comp-workarea-1-2` | workAreaStart 0 -> 1, workAreaDuration 5 -> 2 |
| `037-comp-pixelaspect2.aep` | `layers-comps.aep` | `037-comp-pixelaspect2` | pixelAspect 1 -> 2 |
| `038-comp-motionblur.aep` | `layers-comps.aep` | `038-comp-motionblur` | comp.motionBlur false -> true |
| `039-comp-renderer-advanced3d.aep` | `3d.aep` | `039-comp-renderer-advanced3d` | renderer `ADBE Advanced 3d` (classic) -> `ADBE Calder` (= "Advanced 3D" friendly name `advanced3d`) |
| `040-static-position-100-200.aep` | `layers-comps.aep` | `040-static-position-100-200` | Position [960,540,0] -> [100,200,0] |
| `041-static-scale-50.aep` | `layers-comps.aep` | `041-static-scale-50` | Scale [100,100,100] -> [50,50,100] |
| `042-static-rotation-45.aep` | `layers-comps.aep` | `042-static-rotation-45` | Rotation 0 -> 45 |
| `043-static-opacity-25.aep` | `layers-comps.aep` | `043-static-opacity-25` | Opacity 100 -> 25 |
| `044-static-anchor-10-20.aep` | `layers-comps.aep` | `044-static-anchor-10-20` | Anchor Point [960,540,0] -> [10,20,0] |
| `052-key-position-2key-ease.aep` | `keyframes.aep` | `052-key-position-2key-ease` | from 051: both keys set_easing preset 'ease' (bezier in/out, speed 0, influence 33) |
| `053-key-position-2key-hold-key1.aep` | `keyframes.aep` | `053-key-position-2key-hold-key1` | from 051: key1 inType/outType = HOLD (key2 stays linear) |
| `054-key-position-2key-spatial-bezier.aep` | `keyframes.aep` | `054-key-position-2key-spatial-bezier` | from 051: key1 spatial outTangent [30,60,0], key2 spatial inTangent [-30,-60,0], autoBezier=false, continuous=false (S-shaped path; verified: value at t=.25 = [23.7,16.95]) |
| `055-key-position-3key-inserted-t2.5.aep` | `keyframes.aep` | `055-key-position-3key-inserted-t2.5` | from 051: 3rd key inserted into the already animated property at t=2.5 value [200,100,0] (= keys at t=0,1,2.5, all linear) |
| `056-key-position-3key-roving-key2.aep` | `keyframes.aep` | `056-key-position-3key-roving-key2` | from 055: key2 roving=true (AE moved key2 to t=1.0355078125, value kept [100,0,0]) |
| `057-key-position-3key-label9-key2.aep` | `keyframes.aep` | `057-key-position-3key-label9-key2` | from 055: key2 keyframe label = 9 (Green). (056 was undone first) |
| `058-key-opacity-2key.aep` | `keyframes.aep` | `058-key-opacity-2key` | Opacity keys t=0 -> 0, t=2 -> 100 (linear) |
| `058-key-opacity-2key.aepx` | `aepx-pair.aepx` | `058-key-opacity-2key` | Opacity keys t=0 -> 0, t=2 -> 100 (linear) |
| `060-expr-opacity-wiggle.aep` | `keyframes.aep` | `060-expr-opacity-wiggle` | Opacity expression `wiggle(1,10)` (enabled, JavaScript engine = project default) |
| `060-expr-opacity-wiggle.aepx` | `aepx-pair.aepx` | `060-expr-opacity-wiggle` | Opacity expression `wiggle(1,10)` (enabled, JavaScript engine = project default) |
| `071-fx-slider-value77.aep` | `effects.aep` | `071-fx-slider-value77` | from 070: Slider 0 -> 77 |
| `073-fx-color-0.2-0.6-1.aep` | `effects.aep` | `073-fx-color-0.2-0.6-1` | add `ADBE Color Control`, Color -> [0.2,0.6,1] (no default-only Color file) |
| `077-fx-dropdown-default.aep` | `effects.aep` | `077-fx-dropdown-default` | add Dropdown Menu Control (matchName `Pseudo/@@S1iPXtJFTHK4QaDbgJvLhw`, default items) |
| `080-fx-dropshadow-default.aep` | `effects.aep` | `080-fx-dropshadow-default` | add `ADBE Drop Shadow` (default params) |
| `090-mask-rect.aep` | `masks.aep` | `090-mask-rect` | mask.add rect size [800,400] centre [960,540]: "Mask 1", vertices [560,340],[1360,340],[1360,740],[560,740], mode Add |
| `091-mask-rect-props.aep` | `masks.aep` | `091-mask-rect-props` | from 090: feather [0,0]->[20,20], opacity 100->50, mode Add->Subtract, inverted false->true, expansion 0->5 |
| `093-mask-path-2keys.aep` | `masks.aep` | `093-mask-path-2keys` | from 090: mask path keyed: t=0 rect 400x200 (vertices [760,440],[1160,440],[1160,640],[760,640]), t=1 rect 800x400; linear interp. NOTE: mask.set_path 'time' makes the first write at t=0 the first key (stopwatch on) |
| `110-text-A.aep` | `text.aep` | `110-text-A` | new point text layer T, text "A" (defaults: Times New Roman TimesNewRomanPSMT, size 100, fill white) |
| `110-text-A.aepx` | `aepx-pair.aepx` | `110-text-A` | new point text layer T, text "A" (defaults: Times New Roman TimesNewRomanPSMT, size 100, fill white) |
| `113-text-Hello-size60-fillorange.aep` | `text.aep` | `113-text-Hello-size60-fillorange` | from 112: fillColor [1,1,1] -> [1,0.5,0] |
| `114-text-animator-opacity.aep` | `text.aep` | `114-text-animator-opacity` | from 113: + text animator "Animator 1" with Opacity=0 and a Range Selector 1 |
| `122-marker-comp-1s.aep` | `markers.aep` | `122-marker-comp-1s` | comp marker at t=1 s, comment "CompMarker" |
| `123-marker-layer-1s.aep` | `markers.aep` | `123-marker-layer-1s` | layer marker on L at t=1 s, comment "LayerMarker" |
| `124-precomp-Pre.aep` | `footage-precomp.aep` | `124-precomp-Pre` | L precomposed (moveAll) into new comp "Pre" (1920x1080, 25 fps, 5 s); C now holds one layer "Pre" (label 15). Adds comp item "Pre" |
| `124-precomp-Pre.aepx` | `aepx-pair.aepx` | `124-precomp-Pre` | L precomposed (moveAll) into new comp "Pre" (1920x1080, 25 fps, 5 s); C now holds one layer "Pre" (label 15). Adds comp item "Pre" |
| `126-footage-png-layer.aep` | `footage-precomp.aep` | `126-footage-png-layer` | from 125: layer "png" created from that footage in C (index 1 above L) |
| `202-key-out-hold-in-linear.aep` | `keyframes.aep` | `202-key-out-hold-in-linear` | Position keys t=0 [0,0,0], t=1 [100,0,0]; key1 inType=LINEAR, outType=HOLD (key2 linear/linear). Confirmed by layer.info: key1 in=linear out=hold |
| `203-key-in-hold-out-linear.aep` | `keyframes.aep` | `203-key-in-hold-out-linear` | same keys; key1 inType=HOLD, outType=LINEAR. Confirmed: key1 in=hold out=linear |
| `204-key-ease-asymmetric.aep` | `keyframes.aep` | `204-key-ease-asymmetric` | Position keys t=0 [0,0,0], t=1 [100,0,0]; set_easing key1 inSpeed 5/inInfluence 20, outSpeed 50/outInfluence 80; key2 inSpeed 7/inInfl 60, outSpeed 9/outInfl 40. AE read-back (spatial property): key1 in speed forced to 0 (infl 20), key1 out 50/80, key2 in 7/60, key2 out speed forced to 0 (infl 40); both bezier/bezier |
| `205-key-opacity-ease-asymmetric.aep` | `keyframes.aep` | `205-key-opacity-ease-asymmetric` | (extra) Opacity keys t=0 -> 0, t=2 -> 100; set_easing key1 inSpeed 5/inInfl 20, outSpeed 20/outInfl 80; key2 inSpeed 30/inInfl 60, outSpeed 9/outInfl 40. AE read-back: key1 in speed 0 (infl 20), key1 out 20/80, key2 in 30/60, key2 out speed 0 (infl 40); bezier/bezier (scalar 48-byte record ease slots) |
| `206-key-scale-2key-linear.aep` | `keyframes.aep` | `206-key-scale-2key-linear` | Scale keys t=0 [100,100,100], t=1 [200,150,100] (linear; 3-component non-spatial record) |
| `208-key-mask-feather-2key-linear.aep` | `masks.aep` | `208-key-mask-feather-2key-linear` | NEW mask "Mask 1" (rect 800x400 centre [960,540], mode Add, = 090) + Mask Feather keys t=0 [0,0], t=1 [40,20] (linear, 2-D). Diff against 090 |
| `210-key-fill-color-2key-linear.aep` | `keyframes.aep` | `210-key-fill-color-2key-linear` | effect `ADBE Fill` (index 1) added (all other params default); Color keys t=0 [1,0,0], t=1 [0,0.5,1] (linear, colour record) |
| `211-anchor-100x100-solid-10-20.aep` | `layers-comps.aep` | `211-anchor-100x100-solid-10-20` | NEW solid layer `S100` 100x100 white [1,1,1] (new footage item `S100`) in the 1920x1080 comp, Anchor Point set [50,50,0] (default) -> [10,20,0]; Position left at default (comp centre [960,540]) |
| `212-anchor-400x300-solid-100-50.aep` | `layers-comps.aep` | `212-anchor-400x300-solid-100-50` | NEW solid layer `S400` 400x300 white [1,1,1] (new footage item `S400`), Anchor Point -> [100,50,0]; Position default |
| `213-expr-opacity-wiggle-disabled.aep` | `keyframes.aep` | `213-expr-opacity-wiggle-disabled` | Opacity expression `wiggle(1,10)` set (as in 060) and then `expression.disable_all` on comp C (sets expressionEnabled=false; the expression text stays in the file, grep confirms 1 occurrence). Diff against 060 to find the enable flag |
| `214-fx-gaussianblur-default.aep` | `effects.aep` | `214-fx-gaussianblur-default` | add `ADBE Gaussian Blur 2`, all params default (Blurriness 0, Dimensions Horizontal and Vertical, Repeat Edge Pixels off) |
| `215-fx-fill-default.aep` | `effects.aep` | `215-fx-fill-default` | add `ADBE Fill`, all params default (colour red, opacity 100 %) |
| `216-fx-gaussianblur-40.aep` | `effects.aep` | `216-fx-gaussianblur-40` | add `ADBE Gaussian Blur 2`, Blurriness 0 -> 40 (compare 214 and 078 = 25) |
| `217-fx-checkbox-on.aep` | `effects.aep` | `217-fx-checkbox-on` | add `ADBE Checkbox Control`, Checkbox 0 -> 1 (on) |
| `218-fx-point-111-222.aep` | `effects.aep` | `218-fx-point-111-222` | add `ADBE Point Control`, Point -> [111,222] |
| `219-fx-angle-90.aep` | `effects.aep` | `219-fx-angle-90` | add `ADBE Angle Control`, Angle 0 -> 90 |
| `220-fx-layercontrol-to-layer1.aep` | `effects.aep` | `220-fx-layercontrol-to-layer1` | NEW null layer `Null` created on top (index 1, new footage item `Null 1`); L (now index 2) gets `ADBE Layer Control` with Layer = 1 (the Null; layer index 1, read back as value 1). Compare 076 (Layer = None) and 022 (same null) |
| `221-fx-slider-2key.aep` | `effects.aep` | `221-fx-slider-2key` | add `ADBE Slider Control`, Slider keyed t=0 -> 10, t=2 -> 90 (linear) |
| `222-layer-video-off.aep` | `layers-comps.aep` | `222-layer-video-off` | layer.enabled true -> false (Video switch). aepx `ldta` byte 39: 07 -> 06 |
| `223-layer-audio-off.aep` | `layers-comps.aep` | `223-layer-audio-off` | `audioEnabled` = false on L (a solid has no audio; AE accepted it without warning and the flag did change: byte 39: 07 -> 05) |
| `224-layer-effects-off.aep` | `layers-comps.aep` | `224-layer-effects-off` | `effectsActive` = false on L (no effects present; byte 39: 07 -> 03) |
| `225-layer-blend-screen.aep` | `layers-comps.aep` | `225-layer-blend-screen` | blending mode Normal -> Screen (aepx `ldta` byte 99 = 6) |
| `226-layer-blend-add.aep` | `layers-comps.aep` | `226-layer-blend-add` | blending mode Normal -> Add (byte 99 = 4) |
| `227-layer-blend-overlay.aep` | `layers-comps.aep` | `227-layer-blend-overlay` | blending mode Normal -> Overlay (byte 99 = 7) |
| `228-layer-blend-difference.aep` | `layers-comps.aep` | `228-layer-blend-difference` | blending mode Normal -> Difference (byte 99 = 26) |
| `229-comp-fps-29.97.aep` | `layers-comps.aep` | `229-comp-fps-29.97` | comp frameRate 25 -> 29.97 (AE read-back 29.9700012207031; duration snapped 5 s -> 5.00500500500501 s = 150 frames; work area duration follows) |
| `230-comp-fps-23.976.aep` | `layers-comps.aep` | `230-comp-fps-23.976` | comp frameRate 25 -> 23.976 (read-back 23.9759979248047; duration snapped to 5.00500500500501 s = 120 frames) |
| `231-comp-bg-grey-0.5.aep` | `layers-comps.aep` | `231-comp-bg-grey-0.5` | comp bgColor [0,0,0] -> [0.5,0.5,0.5] (read-back 0.50196078431373 = 128/255 on all channels) |
| `232-mask-ellipse.aep` | `masks.aep` | `232-mask-ellipse` | mask.add shape ellipse size [800,400] centre [960,540], mode Add. AE read-back of the path: vertices [960,340],[1360,540],[960,740],[560,540]; inTangents [-220.913879394531,0],[0,-110.456970214844],[220.913940429688,0],[0,110.456970214844]; outTangents [220.913940429688,0],[0,110.456970214844],[-220.913879394531,0],[0,-110.456970214844]; closed |
| `233-mask-open-path.aep` | `masks.aep` | `233-mask-open-path` | mask.add (no shape, mode Add) + mask.set_path vertices [500,300],[960,700],[1400,300], closed=false, no tangents. Read-back closed=false, vertices stored as float32 (499.999969482422, 699.999938964844) |
| `234-mask-mode-intersect.aep` | `masks.aep` | `234-mask-mode-intersect` | rect mask 800x400 centre [960,540] (as 090) with mode Intersect (aepx `mkif` @4 = 3; Add = 1 in 090) |
| `235-mask-mode-lighten.aep` | `masks.aep` | `235-mask-mode-lighten` | same rect, mode Lighten |
| `236-mask-mode-darken.aep` | `masks.aep` | `236-mask-mode-darken` | same rect, mode Darken |
| `237-mask-mode-difference.aep` | `masks.aep` | `237-mask-mode-difference` | same rect, mode Difference |
| `238-shape-rect-rounded-corners.aep` | `shapes.aep` | `238-shape-rect-rounded-corners` | Group 1 = Rectangle Path 400x300 + Fill [0,1,0] + `shape.add_rounded_corners` radius 20 ("Round Corners 1", `ADBE Vector Filter - RC`, `ADBE Vector RoundCorner Radius` 20) |
| `239-shape-stroke-green-w8-round.aep` | `shapes.aep` | `239-shape-stroke-green-w8-round` | Group 1 = Rectangle Path 400x300 + Stroke colour [0,1,0,1] width 8, Line Cap = 2 (Round), Line Join = 2 (Round); NO fill; read back: cap 2, join 2 |
| `240-shape-custom-path-tangents.aep` | `shapes.aep` | `240-shape-custom-path-tangents` | Group 1 = Path (closed) vertices [0,-100],[100,100],[-100,100], inTangents [-10,-20],[30,20],[-60,10], outTangents [40,0],[-20,30],[0,-50] (read back out2 = -19.9999847412109) + Fill [0,1,0] |
| `241-shape-gradient-fill-linear.aep` | `shapes.aep` | `241-shape-gradient-fill-linear` | Group 1 = Rectangle Path 400x300 + Gradient Fill 1 (`ADBE Vector Graphic - G-Fill`), linear, start [-200,0], end [200,0]; colour stops left at AE's default (not scriptable) |
| `242-shape-group-position-50-50.aep` | `shapes.aep` | `242-shape-group-position-50-50` | Group 1 = Rectangle Path 400x300 + Fill [0,1,0]; Group 1 / Transform / Position [0,0] -> [50,50] |
| `243-text-multiline-A-CR-B.aep` | `text.aep` | `243-text-multiline-A-CR-B` | point text layer T, text `A\rB` (CR between, 2 paragraphs / 2 lines) |
| `245-text-box-400x200-Hello.aep` | `text.aep` | `245-text-box-400x200-Hello` | paragraph (box) text layer T, `Hello`, boxSize [400,200] (AE: box position [-200,-100] in layer space), left aligned (default) |
| `246-text-box-center-align.aep` | `text.aep` | `246-text-box-center-align` | FROM 245 (not from base): justification left -> center (one variable vs 245) |
| `247-text-tracking-100.aep` | `text.aep` | `247-text-tracking-100` | point text `Hello` with tracking 0 -> 100 (whole document, text.set_style tracking 100) |
| `248-text-range-fill-red-1-3.aep` | `text.aep` | `248-text-range-fill-red-1-3` | point text `Hello`; per-range style: characters [1,3) ("el") fill colour [1,0,0]; rest white |
| `249-marker-layer-full.aep` | `markers.aep` | `249-marker-layer-full` | layer marker on L at t=1 s: comment `LM`, duration 1 s, chapter `Chap`, url `http://a.example/u`, frameTarget `_blank`, cuePointName `CueX` (AE read-back: eventCuePoint=true, label 0, params {}). All four link strings non-empty and distinct so that the string order in `Nmrd` can be decided |
| `251-camera-one-node.aep` | `3d.aep` | `251-camera-one-node` | camera layer `Camera 1` (default 50 mm, label 4) with autoOrient = off (one-node camera). aepx `ldta` byte 38 of the camera: 0x44 (two-node, 120/256) -> 0x04, so bit 0x40 = "orient towards point of interest". AE's summary reports Position [0,0,-2666.67] for this layer (a two-node camera reports [960,540,-2666.67] as in 120) |
| `252-light-point.aep` | `3d.aep` | `252-light-point` | light layer `Light 1`, lightType point (default intensity 100 %, label 6) |
| `253-camera-position-100-200-m1000.aep` | `3d.aep` | `253-camera-position-100-200-m1000` | two-node camera `Camera 1`, Position [960,540,-2666.67] -> [100,200,-1000] (read back [100,200,-1000], Point of Interest stays [960,540,0]) |
| `254-light-spot-intensity-50.aep` | `3d.aep` | `254-light-spot-intensity-50` | spot light `Light 1`, Light Options / Intensity 100 -> 50 |
| `256-camera-two-node-default.aep` | `3d.aep` | `256-camera-two-node-default` | (extra, noise-matched reference) default two-node camera `Camera 1`, compare 251, 253 and 120 |
| `259-solid-blue-0-0-1.aep` | `layers-comps.aep` | `259-solid-blue-0-0-1` | NEW solid layer `Blue` [0,0,1], comp size 1920x1080, on top of L (new footage item `Blue`); the colour sits in the `Soli` footage `opti` (compare L red = 1.0,1.0,0,0 as float32 ARGB) |
| `299-save-noise.aep` | `layers-comps.aep` | `299-save-noise` | plain save of the freshly loaded base copy (no change at all) to measure save noise of THIS session; compare with 000-base and 200/201 |
| `300-fx-gaussianblur-0-explicit.aep` | `effects.aep` | `300-fx-gaussianblur-0-explicit` | layer 1 effect `ADBE Gaussian Blur 2` added; AE read-back of Blurriness right after add = **25** (property.get value 25, numKeys 0); then Blurriness set explicitly 25 -> 0 (read back 0) |
| `301-fx-gaussianblur-40-then-25.aep` | `effects.aep` | `301-fx-gaussianblur-40-then-25` | `ADBE Gaussian Blur 2` added, Blurriness 25 -> 40 -> 25 (set twice in one call; read back 25) |
| `302-fx-fill-opacity-100-explicit.aep` | `effects.aep` | `302-fx-fill-opacity-100-explicit` | `ADBE Fill` added (default Opacity read back 1 = 100 %; scale of effect.set_property is 0..1, 100 is rejected "out of range 0 to 1"); Opacity set explicitly to 1 |
| `303-fx-fill-opacity-50-then-100.aep` | `effects.aep` | `303-fx-fill-opacity-50-then-100` | `ADBE Fill` added, Opacity 1 -> 0.5 -> 1 (read back 1) |
| `304-fx-slider-0-explicit.aep` | `effects.aep` | `304-fx-slider-0-explicit` | `ADBE Slider Control` added, Slider set explicitly 0 -> 0 (default is 0; read back 0) |
| `305-key-scale-bezier-ease.aep` | `keyframes.aep` | `305-key-scale-bezier-ease` | layer 1 Transform/Scale keys t=0 [100,100,100] and t=2 [200,150,100]; set_easing key1 inSpeed 0/inInfl 33, outSpeed 20/outInfl 66; key2 inSpeed 10/inInfl 66, outSpeed 0/outInfl 33. AE read-back: bezier/bezier on both, ease arrays 3 identical entries per side with exactly these values |
| `306-key-maskfeather-bezier-ease.aep` | `masks.aep` | `306-key-maskfeather-bezier-ease` | NEW mask `Mask 1` (rect 800x400 centre [960,540], vertices [560,340],[1360,340],[1360,740],[560,740], mode Add) + Mask Feather keys t=0 [0,0], t=2 [50,30]; key1 inSpeed 0/infl 33, outSpeed 15/infl 66; key2 inSpeed 8/infl 66, outSpeed 0/infl 33; read back as set (2 ease entries per side) |
| `307-key-fillcolor-bezier.aep` | `keyframes.aep` | `307-key-fillcolor-bezier` | `ADBE Fill` added; Color keys t=0 [1,0,0,1], t=2 [0,0,1,1] (value at t=1 read back [0.5,0,0.5,1]); both keys then set_interpolation inType/outType bezier (temporalContinuous/AutoBezier false). AE read-back ease: speed 0 / influence 0 on all four sides (colour has 1 ease entry, AE reports influence 0, not the 16.67 default) |
| `309-solid-100x100-mask-rect.aep` | `masks.aep` | `309-solid-100x100-mask-rect` | 308 + `mask.add` shape rect size [60,40] centre [50,50], mode Add; AE read-back path vertices [20,30],[80,30],[80,70],[20,70], all tangents 0 |
| `310-solid-100x100-pointcontrol.aep` | `layers-comps.aep` | `310-solid-100x100-pointcontrol` | 308 (NOT 309) + effect `ADBE Point Control`; AE read-back of the default Point = **[50,50]** = centre of the 100x100 layer (a 1920x1080 layer would give [960,540]; compare 074) |
| `311-position-default-explicit.aep` | `layers-comps.aep` | `311-position-default-explicit` | property.set Transform/Position [960,540,0] (was [960,540,0]) |
| `316-layer-stretch50.aep` | `keyframes.aep` | `316-layer-stretch50` | layer.set_timing stretch 100 -> 50 (AE: out point 5 -> 2.5, in 0, start 0) |
| `317-layer-stretch150.aep` | `keyframes.aep` | `317-layer-stretch150` | stretch 100 -> 150 (out point 7.5) |
| `318-layer-inpoint-0.3333.aep` | `layers-comps.aep` | `318-layer-inpoint-0.3333` | inPoint 0 -> 0.3333 (AE read-back: inPoint 0.33328125, outPoint 5.33328125, start 0, stretch 100; the requested 0.3333 was quantised by AE) |
| `319-precomp-timeremap.aep` | `footage-precomp.aep` | `319-precomp-timeremap` | SKIPPED on the solid (AE: "Can not set timeRemapEnabled ... canSetTimeRemapEnabled" for solids). Instead: L precomposed (moveAll) into `Pre` as in 124 (layer `Pre`, label 15) AND timeRemapEnabled = true on layer `Pre`; two variables vs base, one vs 124. AE read-back: Time Remap keys t=0 value 0 and t=5 value 5, linear/linear |
| `320-fx-layercontrol-self-explicit.aep` | `effects.aep` | `320-fx-layercontrol-self-explicit` | `ADBE Layer Control` added (default Layer read back 1) + Layer set explicitly to 1 (no-op) |
| `321-fx-layercontrol-none.aep` | `effects.aep` | `321-fx-layercontrol-none` | FROM 320: Layer 1 -> 0 (None; read back 0) |
| `323-fx-dropdown-5items.aep` | `effects.aep` | `323-fx-dropdown-5items` | `ADBE Dropdown Control` added (AE reports the effect matchName as `Pseudo/@@UNgGeIbLTy24Y7LB8Oar1Q`, display name `Dropdown Menu Control`), effect.set_dropdown_items ["Alpha","Beta","Gamma","Delta","Epsilon"]; read back value 1 / "Alpha" |
| `324-fx-dropdown-5items-select3.aep` | `effects.aep` | `324-fx-dropdown-5items-select3` | FROM 323: Menu set to 3 (read back value 3, valueText "Gamma"); NOTE the property matchName after the re-creation is `Pseudo/@@KbKT0rCPQi2A0ytuyGLWSw-0001` |
| `325-comp-pixelaspect-0.9091.aep` | `layers-comps.aep` | `325-comp-pixelaspect-0.9091` | pixelAspect 1 -> 0.9091 (AE read-back 0.90909090909091 = 10/11) |
| `326-comp-shutterphase-m90.aep` | `layers-comps.aep` | `326-comp-shutterphase-m90` | shutterPhase 0 -> -90 (read back -90; shutterAngle stays 180) |
| `327-comp-displaystartframe-100.aep` | `layers-comps.aep` | `327-comp-displaystartframe-100` | displayStartFrame 0 -> 100 (accepted without warning; comp.info does not report it, but the cdta bytes in the .aepx change vs 326: a (value,scale) pair 00000190 / 00000064 (= 400/100 = 4 s = 100 frames at 25 fps) appears in the tail, and the shutter phase `ffffffa6` of 326 is back to 0) |
| `328-mask-two-ellipse-rect.aep` | `masks.aep` | `328-mask-two-ellipse-rect` | mask.add ellipse 800x400 centre [960,540] (Mask 1, vertices as 232) + mask.add rect 400x300 centre [700,500] (Mask 2, vertices [500,350],[900,350],[900,650],[500,650] with float noise 499.999969482422 etc.); both mode Add (default) |
| `329-mask-ellipse-mode-none.aep` | `masks.aep` | `329-mask-ellipse-mode-none` | mask.add ellipse 800x400 centre [960,540] with mode None (compare 232 = same path, mode Add); AE offers no read-back of the mode via property.get (Mask Mode is not a listed property) |
| `330-shape-polystar-star-5-50-100.aep` | `shapes.aep` | `330-shape-polystar-star-5-50-100` | Polystar Path 1 starType star, Points 5, Outer Radius 100, Inner Radius 50 (Points/Inner/Outer read back as set; Type not read), roundness/rotation/position left default + Fill [0,1,0,1] |
| `331-shape-polystar-polygon-5-100.aep` | `shapes.aep` | `331-shape-polystar-polygon-5-100` | Polystar Path 1 starType polygon (Type read back = 2), Points 5, Outer Radius 100 + Fill [0,1,0,1] |
| `332-shape-gradient-fill-radial.aep` | `shapes.aep` | `332-shape-gradient-fill-radial` | Rectangle Path 400x300 + Gradient Fill 1 `ADBE Vector Graphic - G-Fill`, gradientType radial (Type read back 2), Start Point [0,0], End Point [200,0], Highlight Length/Angle 0, Scale [100,100], Rotation 0; colour stops default (not scriptable); compare 241 (linear, type 1) |
| `333-shape-group-two-rects.aep` | `shapes.aep` | `333-shape-group-two-rects` | Group 1 contents: Rectangle Path 1 size [400,300] + Rectangle Path 2 size [100,100] position [300,0] + Fill 1 [0,1,0,1] (order rect, rect, fill) |
| `334-text-box-right-align.aep` | `text.aep` | `334-text-box-right-align` | paragraph (box) text `T` "Hello", boxSize [400,200] (boxTextPos [-200,-100]), justification right (AE justification enum 7414; compare 245: left, 246: center) |
| `335-text-point-fauxbold.aep` | `text.aep` | `335-text-point-fauxbold` | point text "Hello" with fauxBold = true (fontStyle read back still "Regular"; font TimesNewRomanPSMT) |
| `336-text-point-fauxitalic.aep` | `text.aep` | `336-text-point-fauxitalic` | point text "Hello" (vs 244) with fauxItalic = true |
| `337-text-point-allcaps.aep` | `text.aep` | `337-text-point-allcaps` | point text "Hello" with allCaps = true (fontCapsOption) |
| `338-text-point-smallcaps.aep` | `text.aep` | `338-text-point-smallcaps` | point text "Hello" with smallCaps = true |
| `339-text-point-leading60.aep` | `text.aep` | `339-text-point-leading60` | point text "Hello" with leading 60 (autoLeading default read back leading 98 -> 60; read back 60; justification 7413 = left) |
| `340-text-range-two-styles.aep` | `styles.aep` | `340-text-range-two-styles` | point text "Hello" with two range styles in one call: characters [1,3) ("el") fill [1,0,0]; characters [3,5) ("lo") fill [0,0,1] and fontSize 60 (compare 248 = one range) |
| `341-camera-zoom-2000.aep` | `3d.aep` | `341-camera-zoom-2000` | camera layer `Camera 1` (default 50 mm; default Zoom read back 2666.6666666), Camera Options/Zoom set to 2000 (read back 2000) |
| `342-camera-dof-800-30.aep` | `3d.aep` | `342-camera-dof-800-30` | camera layer `Camera 1`, Camera Options/Depth of Field 0 -> 1, Focus Distance -> 800, Aperture -> 30 (all read back as set; Zoom stays default) |
| `343-light-spot-color-red.aep` | `3d.aep` | `343-light-spot-color-red` | spot light `Light 1` (defaults read back: Color [1,1,1,1], Cone Angle 90, Cone Feather 50) with Light Options/Color [1,0,0,1] |
| `344-light-spot-coneangle-60.aep` | `3d.aep` | `344-light-spot-coneangle-60` | spot light `Light 1`, Cone Angle 90 -> 60 (Color stays white; the spot light was created once as step 0 and kept for 343-345, each change undone before the next) |
| `345-light-spot-conefeather-30.aep` | `3d.aep` | `345-light-spot-conefeather-30` | spot light `Light 1`, Cone Feather 50 -> 30 |
| `347-marker-layer-label3.aep` | `markers.aep` | `347-marker-layer-label3` | marker.add_layer label 3; read back: label 3, eventCuePoint true, duration 0, strings empty, params {} |
| `348-marker-layer-navigation-cue.aep` | `markers.aep` | `348-marker-layer-navigation-cue` | cuePointName `CueN`, eventCuePoint = false (navigation cue); read back label 0, eventCuePoint false |
| `349-marker-layer-event-cue-params.aep` | `markers.aep` | `349-marker-layer-event-cue-params` | cuePointName `CueE`, eventCuePoint = true, params {"speaker":"A","n":"2"}; read back identical |
| `350-footage-wav-imported.aep` | `footage-precomp.aep` | `350-footage-wav-imported` | project.import_file test-tone.wav (name `test-tone.wav`, new footage item id 32, AE: width 0, height 0, duration 1, numItems 4); no layer |
| `351-footage-wav-as-layer.aep` | `footage-precomp.aep` | `351-footage-wav-as-layer` | FROM 350: layer.create_footage -> audio layer `test-tone.wav` on top of L in C (hasAudio true, hasVideo false, in 0, out 1, label 7); audio group not reported by the summary |
| `352-footage-pngseq-imported.aep` | `footage-precomp.aep` | `352-footage-pngseq-imported` | project.import_file seq_001.png with sequence=true -> footage item `seq_[001-003].png` (id 34, 64x64, duration 0.1 s = 3 frames at AE's default 30 fps); no layer |
| `354-footage-pngseq-timeremap.aep` | `footage-precomp.aep` | `354-footage-pngseq-timeremap` | FROM 353: timeRemapEnabled = true on the sequence layer; read back Time Remap keys t=0 value 0, t=0.1 value 0.1, linear/linear (this is the time-remap case that works on real footage; the solid in 319 cannot, so 319 uses a precomp) |
| `356-fx-tint-default.aep` | `effects.aep` | `356-fx-tint-default` | add `ADBE Tint` (default name "Tint", all parameters default) |
| `357-fx-tint-black-0.2-0.4-0.6.aep` | `effects.aep` | `357-fx-tint-black-0.2-0.4-0.6` | FROM 356: Map Black To [0,0,0] -> [0.2,0.4,0.6] (read back [0.20000000298023,0.40000000596046,0.60000002384186,1]) |
| `361-fx-tint-amount-0.aep` | `effects.aep` | `361-fx-tint-amount-0` | FROM 356: Amount to Tint 100 -> 0 |
| `363-fx-tint-amount-2key.aep` | `effects.aep` | `363-fx-tint-amount-2key` | FROM 356: Amount to Tint keyed t=0 -> 20, t=2 -> 80 (linear; value at t=1 read back 50) |
| `364-fx-tint-white-2key.aep` | `effects.aep` | `364-fx-tint-white-2key` | FROM 356: Map White To keyed t=0 -> [1,1,0], t=2 -> [0,0,1] (linear; value at t=1 read back [0.5,0.5,0.5,1]) |
| `366-fx-blur-then-tint.aep` | `effects.aep` | `366-fx-blur-then-tint` | FROM 365: effect.move Gaussian Blur 2 -> 1 (stack Gaussian Blur, Tint; read back order ["Gaussian Blur","Tint"]) |
| `368-fx-ramp-default.aep` | `effects.aep` | `368-fx-ramp-default` | add `ADBE Ramp` (default name "Gradient Ramp", all parameters default) |
| `369-fx-ramp-start-100-200.aep` | `effects.aep` | `369-fx-ramp-start-100-200` | FROM 368: Start of Ramp [960,0] -> [100,200] |
| `371-fx-ramp-startcolor-red.aep` | `effects.aep` | `371-fx-ramp-startcolor-red` | FROM 368: Start Color [0,0,0] -> [1,0,0]. |
| `374-fx-ramp-end-2000-m100.aep` | `effects.aep` | `374-fx-ramp-end-2000-m100` | FROM 368: End of Ramp [960,1080] -> [2000,-100] (outside the layer) |
| `377-fx-ramp-shape-radial.aep` | `effects.aep` | `377-fx-ramp-shape-radial` | FROM 368: Ramp Shape 1 -> 2 (Radial Ramp; read back 2) |
| `378-fx-ramp-scatter-12.aep` | `effects.aep` | `378-fx-ramp-scatter-12` | FROM 368: Ramp Scatter 0 -> 12 |
| `380-fx-ramp-blend-25pct.aep` | `effects.aep` | `380-fx-ramp-blend-25pct` | FROM 368: Blend With Original 0 -> 0.25 (= 25 %; a first attempt with 25 was rejected by AE and changed nothing) |
| `382-fx-ramp-start-2key.aep` | `effects.aep` | `382-fx-ramp-start-2key` | FROM 368: Start of Ramp keyed t=0 -> [100,100], t=2 -> [1800,900] (linear; value at t=1 read back [950,500]) |
| `383-fx-ramp-on-100x100-start-10-20.aep` | `effects.aep` | `383-fx-ramp-on-100x100-start-10-20` | FROM 368 (L keeps its DEFAULT Gradient Ramp): TWO changes in one call: NEW solid layer `S100` 100x100 white [1,1,1] on top (new footage item `S100`, layer index 1) AND a Gradient Ramp on S100 with Start of Ramp -> [10,20]; AE read-back of the S100 ramp's default End of Ramp = [50,100] (relative to the 100x100 layer). Two Ramp instances of the same type on two layers |
| `385-text-anchor-10-20.aep` | `text.aep` | `385-text-anchor-10-20` | FROM 384: text layer T Anchor Point -> [10,20]. Stored as cdat f64 pixels [10, 20] (not a fraction of a source size): confirms the text-anchor rule (was H) |
| `386-text-etx-A-B.aep` | `text.aep` | `386-text-etx-A-B` | FROM 384 (anchor undone): T text -> "A" U+0003 "B". Stored as UTF-16 U+0003. AE text.measure: 2 composed lines, 2 paragraphs, baselines at y 0 and 98 – exactly the same layout as 387 (CR): AE treats U+0003 as a line break |
| `389-fx-exposure-default.aep` | `effects.aep` | `389-fx-exposure-default` | add `ADBE Exposure2` (default name "Exposure", all parameters default) |
| `390-fx-exposure-channels-individual.aep` | `effects.aep` | `390-fx-exposure-channels-individual` | FROM 389: Channels 1 -> 2 (Individual Channels; read back 2) |
| `391-fx-exposure-master-1.5.aep` | `effects.aep` | `391-fx-exposure-master-1.5` | FROM 389: Exposure 0 -> 1.5 (Master Exposure `-0003`) |
| `393-fx-exposure-offset-0.1.aep` | `effects.aep` | `393-fx-exposure-offset-0.1` | FROM 389: Offset 0 -> 0.1 (Master Offset `-0004`; read back 0.10000000149012) |
| `394-fx-exposure-gamma-2.2.aep` | `effects.aep` | `394-fx-exposure-gamma-2.2` | FROM 389: Gamma Correction 1 -> 2.2 (Master `-0005`; read back 2.20000004768372) |
| `395-fx-exposure-individual-red-1.aep` | `effects.aep` | `395-fx-exposure-individual-red-1` | FROM 389: TWO changes in one call: Channels 1 -> 2 AND Red Exposure 0 -> 1 (`-0008`) |
| `396-fx-exposure-bypass-on.aep` | `effects.aep` | `396-fx-exposure-bypass-on` | FROM 389: Bypass Linear Light Conversion 0 -> 1 (`-0022`) |
| `397-fx-exposure-master-2key.aep` | `effects.aep` | `397-fx-exposure-master-2key` | FROM 389: Exposure keyed t=0 -> -1, t=2 -> 2 (linear; value at t=1 read back 0.5) |
| `400-text-autoleading-on.aep` | `text.aep` | `400-text-autoleading-on` | FROM 399: T (text "A" CR "B", size 100, explicit leading 98) Auto Leading -> ON. AE text.measure: second baseline 120 px below the first (= 1.2 x size 100), was 98 in 387/399 |
| `403-matte-L-alpha-M.aep` | `layers-comps.aep` | `403-matte-L-alpha-M` | FROM 402: L (index 2) track matte = layer M, type alpha (`AVLayer.setTrackMatte`); AE switched M's video off by itself (comp.info: M enabled false) |
| `404-matte-L-alphainv-M.aep` | `layers-comps.aep` | `404-matte-L-alphainv-M` | FROM 402: L track matte = M, alpha inverted (M video off by AE) |
| `405-matte-L-luma-M.aep` | `layers-comps.aep` | `405-matte-L-luma-M` | FROM 402: L track matte = M, luma (M video off by AE) |
| `406-matte-L-lumainv-M.aep` | `layers-comps.aep` | `406-matte-L-lumainv-M` | FROM 402: L track matte = M, luma inverted (M video off by AE) |
| `407-matte-M-alpha-L-below.aep` | `layers-comps.aep` | `407-matte-M-alpha-L-below` | FROM 402: M (index 1) track matte = L (index 2, BELOW the target), alpha (L video off by AE) |
| `408-matte-L-alpha-M-visible.aep` | `layers-comps.aep` | `408-matte-L-alpha-M-visible` | FROM 402: TWO changes in one call: L track matte = M alpha AND M video switch back on (comp.info: M enabled true) |
| `410-fx-invert-channel-2.aep` | `effects.aep` | `410-fx-invert-channel-2` | FROM 409: Channel 1 -> 2 |
| `411-fx-invert-blend-50.aep` | `effects.aep` | `411-fx-invert-blend-50` | FROM 409: Blend With Original 0 -> 50 (percent; accepted as 50) |
| `413-fx-fastbox-radius-20.aep` | `effects.aep` | `413-fx-fastbox-radius-20` | FROM 412: Blur Radius 0 -> 20 |
| `414-fx-fastbox-iterations-1.aep` | `effects.aep` | `414-fx-fastbox-iterations-1` | FROM 412: Iterations 3 -> 1 |
| `416-fx-fastbox-repeatedge-off.aep` | `effects.aep` | `416-fx-fastbox-repeatedge-off` | FROM 412: Repeat Edge Pixels 1 -> 0 |
| `418-fx-gaussian-dimensions-3.aep` | `effects.aep` | `418-fx-gaussian-dimensions-3` | FROM 417: Blur Dimensions 1 -> 3 |
| `419-fx-gaussian-repeatedge-off.aep` | `effects.aep` | `419-fx-gaussian-repeatedge-off` | FROM 417: Repeat Edge Pixels 1 -> 0 |
| `422-fx-dropshadow-opacity-204.aep` | `effects.aep` | `422-fx-dropshadow-opacity-204` | FROM 420: Opacity 127.5 -> 204 (scripting scale 0..255; 204 = 80 %) |
| `426-fx-dropshadow-shadowonly-on.aep` | `effects.aep` | `426-fx-dropshadow-shadowonly-on` | FROM 420: Shadow Only 0 -> 1 |
| `427-fx-glow-default.aep` | `effects.aep` | `427-fx-glow-default` | (Drop Shadow removed) add `ADBE Glo2` "Glow" (defaults read back: Glow Based On 2, Glow Threshold 153, Glow Radius 10, Glow Intensity 1, Composite Original 2, Glow Operation 3, Glow Colors 1, Color Looping 3, Color Loops 1, Color Phase 0, A & B Midpoint 0.5, Color A [1,1,1,1], Color B [0,0,0,1], Glow Dimensions 1) |
| `429-fx-glow-threshold-76.5.aep` | `effects.aep` | `429-fx-glow-threshold-76.5` | FROM 427: Glow Threshold 153 -> 76.5 (scripting scale 0..255) |
| `438-fx-glow-midpoint-0.25.aep` | `effects.aep` | `438-fx-glow-midpoint-0.25` | FROM 427: A & B Midpoint 0.5 -> 0.25 (scripting scale 0..1) |
| `444-fx-huesat-hue-90.aep` | `effects.aep` | `444-fx-huesat-hue-90` | FROM 443: Master Hue 0 -> 90 (the undo afterwards did NOT revert it; 445-450 were each made on a fresh reopen of a copy of 443, verified by property.get) |
| `446-fx-huesat-light-m30.aep` | `effects.aep` | `446-fx-huesat-light-m30` | FROM 443 (reopened): Master Lightness 0 -> -30 |
| `448-fx-huesat-colorizehue-120.aep` | `effects.aep` | `448-fx-huesat-colorizehue-120` | FROM 443 (reopened): Colorize Hue 0 -> 120 |
| `451-shape-ellipse-400x300-fill.aep` | `shapes.aep` | `451-shape-ellipse-400x300-fill` | NEW shape layer `S` on top: Group 1 = Ellipse Path 1 (`ADBE Vector Shape - Ellipse`, Size [400,300], Position default [0,0]) + Fill 1 colour [0,1,0,1]; NOT undone: base of 452-484 |
| `457-shape-group-scale-50-80.aep` | `shapes.aep` | `457-shape-group-scale-50-80` | FROM 451: Group 1 Transform Scale [100,100] -> [50,80] |
| `462-shape-layer-anchor-10-20.aep` | `shapes.aep` | `462-shape-layer-anchor-10-20` | FROM 451: layer S Transform Anchor Point [0,0,0] -> [10,20] (read back [10,20,0]) |
| `464-shape-stroke-opacity-50.aep` | `shapes.aep` | `464-shape-stroke-opacity-50` | FROM 463: Stroke Opacity 100 -> 50 |
| `467-shape-trim-end-70.aep` | `shapes.aep` | `467-shape-trim-end-70` | FROM 465: Trim End 100 -> 70 |
| `469-shape-trim-type-2.aep` | `shapes.aep` | `469-shape-trim-type-2` | FROM 465: Trim Multiple Shapes 1 -> 2 |
| `471-shape-rect-roundness-30.aep` | `shapes.aep` | `471-shape-rect-roundness-30` | FROM 470: Rect Roundness 0 -> 30 |
| `473-shape-star-points-6.aep` | `shapes.aep` | `473-shape-star-points-6` | FROM 472: Points 5 -> 6 |
| `482-shape-two-groups.aep` | `shapes.aep` | `482-shape-two-groups` | FROM 451: NEW Group 2 (top level) = Rectangle Path 1 [200,100] + Fill 1 [0,0,1,1] (one call) |
| `483-shape-nested-group-rect.aep` | `shapes.aep` | `483-shape-nested-group-rect` | FROM 451: TWO calls: a Group added INSIDE Group 1 (after Fill 1, named "Group 1") and a Rectangle Path 1 [100,50] inside it |
| `485-layer-3d-on.aep` | `3d.aep` | `485-layer-3d-on` | FROM base: L threeDLayer on (compare 015); NOT undone: base of 486-488 |
| `486-layer-3d-rotx-30.aep` | `3d.aep` | `486-layer-3d-rotx-30` | FROM 485: X Rotation 0 -> 30 |
| `487-layer-3d-roty-45.aep` | `3d.aep` | `487-layer-3d-roty-45` | FROM 485: Y Rotation 0 -> 45 |
| `488-layer-3d-orientation-10-20-30.aep` | `3d.aep` | `488-layer-3d-orientation-10-20-30` | FROM 485: Orientation [0,0,0] -> [10,20,30] |
| `509-marker-comp-two.aep` | `markers.aep` | `509-marker-comp-two` | FROM base: TWO comp markers in one call: t=1 s comment `M1` label 2; t=2.5 s comment `M2` duration 0.5 (read back as set) |
| `510-marker-layer-0.52-dur0.3.aep` | `markers.aep` | `510-marker-layer-0.52-dur0.3` | FROM base (509 undone, comp markers 0): layer marker on L at t=0.52 s, comment `LM`, duration 0.3 s (read back 0.52 / 0.3) |
| `512-fx-levels-inblack-0.1.aep` | `effects.aep` | `512-fx-levels-inblack-0.1` | FROM 511: Input Black 0 -> 0.1 (read back 0.10000000149012); the undo did NOT revert it; 513-516 were each made on a fresh reopen of a copy of 511 |
| `514-fx-levels-gamma-2.aep` | `effects.aep` | `514-fx-levels-gamma-2` | FROM 511 (reopened): Gamma 1 -> 2 |
| `516-fx-levels-outwhite-0.9.aep` | `effects.aep` | `516-fx-levels-outwhite-0.9` | FROM 511 (reopened): Output White 1 -> 0.9 (read back 0.89999997615814) |
| `517-text-box-600x400-wrap.aep` | `text.aep` | `517-text-box-600x400-wrap` | FROM base: NEW box text layer `T`, box [600,400] at [-300,-200], text `The quick brown fox jumps over the lazy dog and keeps running far away` (Times New Roman, default style). AE text.measure: 4 composed lines `The quick brown fox ` / `jumps over the lazy dog ` / `and keeps running far ` / `away`, baselines y -163.80, -65.80, 32.20, 130.20 (left x -300), no overflow |
| `519-shape-all-items-default.aep` | `shapes.aep` | `519-shape-all-items-default` | NEW shape layer `S`: Group 1 with, in this order, `property.add` of Rectangle Path, Ellipse Path, Polystar Path, Fill, Stroke, Gradient Fill, Gradient Stroke, Trim Paths, Round Corners, nothing set. AE read-back of the defaults: Rect Size [100,100], Position [0,0], Roundness 0, Shape Direction 1; Ellipse Size [100,100], Position [0,0]; Star Type 1, Points 5, Position [0,0], Rotation 0, Inner Radius 50, Outer Radius 100, Inner/Outer Roundness 0; Fill Blend Mode 1, Composite 1, Fill Rule 1, Color [1,0,0,1], Opacity 100; Stroke Color [1,1,1,1], Opacity 100, Width 2, Line Cap 1, Line Join 1, Miter Limit 4, Dashes Dash/Gap 1-3 = 10, Offset 0, Taper Length Units 1, lengths/widths/eases 0, Wave Amount 0, Units 1, Wavelength 100, Cycles 10, Phase 0; Gradient Fill/Stroke Type 1, Start Point [0,0], End Point [100,0], Highlight Length/Angle 0, Scale [100,100], Rotation 0, Colors NO_VALUE, Opacity 100 (stroke width 2, cap/join 1, miter 4); Trim Start 0, End 100, Offset 0, Trim Multiple Shapes 1; Round Corners Radius 10; Group Blend Mode 1, Transform Anchor/Position [0,0], Scale [100,100], Skew/Skew Axis/Rotation 0, Opacity 100; layer Anchor [0,0,0], Position [960,540,0] |
| `526-text-point-HHHH-default.aep` | `text.aep` | `526-text-point-HHHH-default` | NEW point text layer `T` `HHHH` (layer.create_text, nothing else set: 100 px, the default character state). AE: style slot /13 = 1 (superscript); text.measure width 168.4 px, baseline -33.3 (58.3 % size, 33.3 % shift) |
| `527-text-point-HHHH-baseline-normal.aep` | `text.aep` | `527-text-point-HHHH-baseline-normal` | T fontBaselineOption = normal (text.set_style): slot /13 = 0 (the only changed slot); width 288.9 px, baseline 0 |
| `528-text-point-HHHH-baseline-subscript.aep` | `text.aep` | `528-text-point-HHHH-baseline-subscript` | T fontBaselineOption = subscript (text.set_style): slot /13 = 2; width 168.4 px, baseline +33.3 |
| `529-fx-timewarp-default.aep` | `effects.aep` | `529-fx-timewarp-default` | Timewarp (`ADBE Timewarp`) on L at its defaults; AE read back Method 3 (Pixel Motion), Adjust Time By 1 (Speed), Speed 50, Source Frame 0; NOT undone: base of 530-533 |
| `530-fx-timewarp-speed-25.aep` | `effects.aep` | `530-fx-timewarp-speed-25` | Speed 50 -> 25 (read back 25); undone |
| `531-fx-timewarp-speed-keyed-50-200.aep` | `effects.aep` | `531-fx-timewarp-speed-keyed-50-200` | Speed keys 50 at 0 s and 200 at 2 s (linear; read back 125 at 1 s); undone |
| `532-fx-timewarp-method-1.aep` | `effects.aep` | `532-fx-timewarp-method-1` | Method 3 -> 1 (Whole Frames); undone |
| `533-fx-timewarp-sourceframe-12.aep` | `effects.aep` | `533-fx-timewarp-sourceframe-12` | Adjust Time By 2 (Source Frame) and Source Frame 12 (one batch); undone, and the Timewarp undone |
| `534-fx-slider-expression-time10.aep` | `effects.aep` | `534-fx-slider-expression-time10` | Slider Control on L, expression `time*10` on Slider (read back 20 at 2 s); undone |
| `535-camera-position-on-3d-rotx.aep` | `3d.aep` | `535-camera-position-on-3d-rotx` | NEW camera `K` (layer.create_camera, two-node), Position [100,200,-1000] (Point of Interest read back [960,540,0], Zoom 2666.67) |
| `536-camera-one-node-position-on-3d-rotx.aep` | `3d.aep` | `536-camera-one-node-position-on-3d-rotx` | K autoOrient off (one-node) |
| `537-camera-default-on-3d-rotx.aep` | `3d.aep` | `537-camera-default-on-3d-rotx` | NEW camera `K` at its defaults (Position read back [0,0,-2666.67]); 255 (POI [960,540,0], Position [0,0,-1333.33]) |
| `538-text-point-HHHH-normal-ref.aep` | `text.aep` | `538-text-point-HHHH-normal-ref` | NEW point text `T` `HHHH` (layer.create_text) + fontBaselineOption normal in one batch (= the 527 state); noise reference of S17, NOT undone: base of 539-578 |
| `539-text-hscale-0.9.aep` | `text.aep` | `539-text-hscale-0.9` | horizontalScale 0.9: style /6 1.0 -> 0.9 |
| `540-text-vscale-1.5.aep` | `text.aep` | `540-text-vscale-1.5` | verticalScale 1.5: style /7 -> 1.5 |
| `541-text-baselineshift-41.aep` | `text.aep` | `541-text-baselineshift-41` | baselineShift 41: style /9 0.0 -> 41.0 |
| `542-text-autokern-none.aep` | `text.aep` | `542-text-autokern-none` | autoKernType none: style /11 1 -> 0 |
| `543-text-autokern-optical.aep` | `text.aep` | `543-text-autokern-optical` | autoKernType optical: style /11 1 -> 2 (1 = metrics, the default) |
| `544-text-applystroke-on.aep` | `text.aep` | `544-text-applystroke-on` | applyStroke true: style /57 false -> true |
| `545-text-strokewidth-5.aep` | `text.aep` | `545-text-strokewidth-5` | strokeWidth 5: style /63 1.0 -> 5.0 |
| `546-text-applyfill-off.aep` | `text.aep` | `546-text-applyfill-off` | applyFill false: style /56 true -> false |
| `548-text-linejoin-round.aep` | `text.aep` | `548-text-linejoin-round` | lineJoinType round: style /62 0 -> 1 |
| `550-text-strokeoverfill-off.aep` | `text.aep` | `550-text-strokeoverfill-off` | strokeOverFill false: style /58 true -> false |
| `552-text-nobreak-on.aep` | `text.aep` | `552-text-nobreak-on` | noBreak true: style /52 -> true |
| `553-text-tsume-0.5.aep` | `text.aep` | `553-text-tsume-0.5` | tsume 0.5: style /36 0.0 -> 0.5 |
| `554-text-kerning-50.aep` | `text.aep` | `554-text-kerning-50` | kerning 50: style /11 1 -> 0 and the run gets a kern list `RUN/0/8/0[i]` = << /0 << /0 50 >> /1 1 >> per character (`RUN/0/7` = 50) |
| `555-text-ligature-on.aep` | `text.aep` | `555-text-ligature-on` | ligature true: style /18 -> true |
| `556-text-autohyphenate-off.aep` | `text.aep` | `556-text-autohyphenate-off` | autoHyphenate false: paragraph /9 true -> false |
| `558-text-hangingroman-on.aep` | `text.aep` | `558-text-hangingroman-on` | hangingRoman true: paragraph /21 -> true |
| `559-text-everyline-on.aep` | `text.aep` | `559-text-everyline-on` | everyLineComposer true: paragraph /29 false -> true |
| `560-text-firstlineindent-20.aep` | `text.aep` | `560-text-firstlineindent-20` | firstLineIndent 20: paragraph /1 -> 20.0 |
| `561-text-startindent-30.aep` | `text.aep` | `561-text-startindent-30` | startIndent 30: paragraph /2 -> 30.0 |
| `562-text-endindent-40.aep` | `text.aep` | `562-text-endindent-40` | endIndent 40: paragraph /3 -> 40.0 |
| `563-text-spacebefore-10.aep` | `text.aep` | `563-text-spacebefore-10` | spaceBefore 10: paragraph /4 -> 10.0 |
| `564-text-spaceafter-12.aep` | `text.aep` | `564-text-spaceafter-12` | spaceAfter 12: paragraph /5 -> 12.0 |
| `565-text-justify-fullleft.aep` | `text.aep` | `565-text-justify-fullleft` | justification fullLeft: paragraph /0 0 -> 3 |
| `566-text-justify-fullcenter.aep` | `text.aep` | `566-text-justify-fullcenter` | fullCenter: /0 -> 5 |
| `567-text-justify-fullright.aep` | `text.aep` | `567-text-justify-fullright` | fullRight: /0 -> 4 |
| `568-text-justify-fullall.aep` | `text.aep` | `568-text-justify-fullall` | fullLastLineFull: /0 -> 6 |
| `569-text-direction-rtl.aep` | `text.aep` | `569-text-direction-rtl` | direction rightToLeft: paragraph /33 0 -> 1 |
| `571-text-digitset-arabic.aep` | `text.aep` | `571-text-digitset-arabic` | digitSet arabic: style /70 0 -> 1. Same session, not saved: text `1234` has the same layer.bounds with digitSet default and arabic (left 11.72, width 184.81, top -67.58, height 68.75); undone |
| `572-text-leadingtype-japanese.aep` | `text.aep` | `572-text-leadingtype-japanese` | leadingType japanese: paragraph /8 0 -> 1 |
| `573-text-baselinedir-rotated.aep` | `text.aep` | `573-text-baselinedir-rotated` | baselineDirection verticalRotated: style /35 1 -> 2 |
| `575-text-vertical-rtl.aep` | `text.aep` | `575-text-vertical-rtl` | lineOrientation verticalRtl: document `/0/8/0[0]/0/2/1` -> 2 (absent before) |
| `576-text-baselinedir-crossstream.aep` | `text.aep` | `576-text-baselinedir-crossstream` | baselineDirection verticalCrossStream: style /35 -> 3 |
| `578-text-digitset-hindi.aep` | `text.aep` | `578-text-digitset-hindi` | digitSet hindi: style /70 -> 2 |
| `579-textanim-position-0-m50.aep` | `text.aep` | `579-textanim-position-0-m50` | (538) text.add_animator `Animator 1` with Position 3D [0,-50,0], range selector at its defaults; NOT undone: base of 580-591 |
| `580-textanim-start-25.aep` | `text.aep` | `580-textanim-start-25` | Range Selector 1 Start (ADBE Text Percent Start) 25 |
| `581-textanim-end-75.aep` | `text.aep` | `581-textanim-end-75` | End 75 |
| `582-textanim-offset-10.aep` | `text.aep` | `582-textanim-offset-10` | Offset 10 |
| `583-textanim-units-index.aep` | `text.aep` | `583-textanim-units-index` | Advanced Units 2 (Index); read back Index Start 0, Index End 4 (the character count) |
| `584-textanim-basedon-3-words.aep` | `text.aep` | `584-textanim-basedon-3-words` | Based On (ADBE Text Range Type2) 3 |
| `585-textanim-mode-2-subtract.aep` | `text.aep` | `585-textanim-mode-2-subtract` | Mode 2 |
| `586-textanim-amount-50.aep` | `text.aep` | `586-textanim-amount-50` | Amount (ADBE Text Selector Max Amount) 50 |
| `587-textanim-shape-2-rampup.aep` | `text.aep` | `587-textanim-shape-2-rampup` | Shape 2 |
| `588-textanim-smoothness-50.aep` | `text.aep` | `588-textanim-smoothness-50` | Smoothness 50 |
| `589-textanim-easehigh-30.aep` | `text.aep` | `589-textanim-easehigh-30` | Ease High (ADBE Text Levels Max Ease) 30 |
| `590-textanim-easelow-40.aep` | `text.aep` | `590-textanim-easelow-40` | Ease Low (ADBE Text Levels Min Ease) 40 |
| `591-textanim-randomize-seed-7.aep` | `text.aep` | `591-textanim-randomize-seed-7` | Randomize Order 1 + Random Seed 7 (one batch) |
| `592-textanim-many-props.aep` | `text.aep` | `592-textanim-many-props` | FROM 579: second animator `Many`: Anchor Point 3D [3,4,0], Scale 3D [150,120,100], Skew 10, Skew Axis 20, Rotation 45, Opacity 37, Fill Color [0,1,0], Stroke Color [0,0,1], Stroke Width 3, Tracking Amount 20 (AE added Track Type itself; setting it failed), Line Spacing [10,20], Blur [5,6] (read back) |
| `593-textanim-start-keyed-ease-0-100.aep` | `text.aep` | `593-textanim-start-keyed-ease-0-100` | FROM 592: Animator 1 Start keys 0 at 0 s, 100 at 2 s, interp ease (keyframe.apply) |
| `594-textanim-position-start-keyed-ease.aep` | `text.aep` | `594-textanim-position-start-keyed-ease` | 593 with animator `Many` removed (Animator 1 only: Position [0,-50,0], Start 0 -> 100 eased over 0..2 s) |
| `595-text-stroke-scale-shift-combined.aep` | `text.aep` | `595-text-stroke-scale-shift-combined` | 538 state (Animator 1 removed) + applyStroke, strokeWidth 5, strokeColor blue, horizontalScale 0.9, verticalScale 1.5, baselineShift 41 (one call) |
| `596-text-combined-fill-over-stroke.aep` | `text.aep` | `596-text-combined-fill-over-stroke` | 595 + strokeOverFill false |
| `597-key-anchor-ease-out50-40-in30-60.aep` | `keyframes.aep` | `597-key-anchor-ease-out50-40-in30-60` | L Anchor Point keys [960,540] at 0 s (out speed 50, influence 40) and [1160,640] at 2 s (in speed 30, influence 60), keyframe.apply ease; read back (re-applied in the same session): 0.5 s [1004.4121, 562.2061], 1 s [1084.8353, 602.4177], 1.5 s [1137.1339, 628.5670] |
| `598-key-ramp-point-ease-color-bezier.aep` | `keyframes.aep` | `598-key-ramp-point-ease-color-bezier` | Gradient Ramp on L: Start of Ramp keys [100,200] at 0 s (out 50 / 40) and [500,400] at 2 s (in 30 / 60): read back 0.5 s [178.4012, 239.2006], 1 s [353.0563, 326.5281], 1.5 s [462.9131, 381.4566]; Start Color keys red at 0 s and blue at 2 s switched to bezier by keyframe.set_interpolation (a custom colour ease is refused by AE: "Value array does not have 1 elements"): read back 0.5 s [0.75,0,0.25], 1 s [0.5,0,0.5], 1.5 s [0.25,0,0.75] |
| `599-key-mask-path-ease-infl75.aep` | `masks.aep` | `599-key-mask-path-ease-infl75` | L rect mask, path keys 200x200 at 0 s and 600x400 at 2 s (both centred), ease speed 0, out influence 75 on key 1, in influence 75 on key 2; first vertex read back 0.5 s [849.1606, 434.5803], 1 s [760.0, 390.0], 1.5 s [670.8394, 345.4197] |
| `601-precomp-two-comps-in-C.aep` | `footage-precomp.aep` | `601-precomp-two-comps-in-C` | FROM 600: new comp `Q` 320x240, 25 fps, 2 s with a blue 320x240 solid `B320`, Q added as a layer on top in C (C now shows P30 and Q) |
| `603-footage-exrseq-0101-as-layer.aep` | `footage-precomp.aep` | `603-footage-exrseq-0101-as-layer` | project.import_file `test-media\exrseq\shot_0101.exr` sequence=true -> item `shot_[0101-0103].exr` (64x48, 0.1 s = 3 frames at 30 fps) + layer on top of L in C |
| `610-fx-tint-named-My-Tint.aep` | `effects.aep` | `610-fx-tint-named-My-Tint` | effect.add `ADBE Tint` on L with name `My Tint` (effect.list_on_layer: name `My Tint`) |
| `621-settings-bpc-8.aep` | `settings-a.aep` | `621-settings-bpc-8` | project.set_settings bitsPerChannel 8 |
| `622-settings-bpc-16.aep` | `settings-c.aep` | `622-settings-bpc-16` | bitsPerChannel 16 |
| `623-settings-workingspace-none.aep` | `settings-a.aep` | `623-settings-workingspace-none` | workingSpace '' (read back None) |
| `625-settings-gamma-2.4.aep` | `settings-a.aep` | `625-settings-gamma-2.4` | workingGamma 2.4 |
| `628-settings-scene-compensation-off.aep` | `settings-a.aep` | `628-settings-scene-compensation-off` | compensateForSceneReferredProfiles false |
| `629-settings-time-display-frames.aep` | `settings-a.aep` | `629-settings-time-display-frames` | timeDisplayType frames |
| `630-settings-frame-start-1.aep` | `settings-a.aep` | `630-settings-frame-start-1` | displayStartFrame 1 |
| `632-settings-linearize-and-blend-linear.aep` | `settings-b.aep` | `632-settings-linearize-and-blend-linear` | linearizeWorkingSpace + linearBlending true |
| `633-settings-feet-frames-35.aep` | `settings-b.aep` | `633-settings-feet-frames-35` | timeDisplayType frames + framesUseFeetFrames true (film type mm35, read back) |
| `634-settings-feet-frames-16.aep` | `settings-c.aep` | `634-settings-feet-frames-16` | FROM 633 (same session, not reopened): feetFramesFilmType mm16 |
| `641-stretch-200-keys-position-1s-2s.aep` | `keyframes.aep` | `641-stretch-200-keys-position-1s-2s` | layer.set_timing stretch 200 on L, then the same two keys at comp 1 s and 2 s (read back: out 10, keys at 1 and 2) |
| `642-stretch-50-keys-position-1s-2s.aep` | `keyframes.aep` | `642-stretch-50-keys-position-1s-2s` | stretch 50 (out 2.5), keys at comp 1 s and 2 s |
| `643-stretch-200-start-1-keys-position-2s-3s.aep` | `keyframes.aep` | `643-stretch-200-start-1-keys-position-2s-3s` | startTime 1 + stretch 200 (in 1, out 11), keys at comp 2 s and 3 s |
| `645-footage-mp4-conform-30.aep` | `footage-precomp.aep` | `645-footage-mp4-conform-30` | FROM 644: footage.interpret conformFrameRate 30 on clip.mp4 (25 fps native; duration 1 -> 0.8333 s) |
| `650-footage-tga-still-as-layer.aep` | `footage-precomp.aep` | `650-footage-tga-still-as-layer` | (fresh base) import `test-media\still.tga` (64x48, PIL from still.png) + layer in C |
| `651-footage-psd-flat-as-layer.aep` | `footage-precomp.aep` | `651-footage-psd-flat-as-layer` | import `test-media\still.psd` (flat RGB PSD written by hand) importAs footage + layer in C |
| `652-footage-ai-as-layer.aep` | `footage-precomp.aep` | `652-footage-ai-as-layer` | import `test-media\still.ai` (hand-written one-page PDF named .ai, 64x48 pt) importAs footage + layer in C |
| `653-footage-eps-as-layer.aep` | `footage-precomp.aep` | `653-footage-eps-as-layer` | import `test-media\still.eps` (hand-written EPS, 64x48 pt) + layer in C |
| `700-key-mask-path-ease-out20-in50.aep` | `masks.aep` | `700-key-mask-path-ease-out20-in50` | from 599: out influence 20 on key 1, in influence 50 on key 2 (speed 0); first vertex 0.5 s [803.9844, 411.9922], 1 s [727.6194, 373.8097], 1.5 s [676.9510, 348.4755] |
| `701-light-parallel-int80-color.aep` | `3d.aep` | `701-light-parallel-int80-color` | NEW parallel light `P`, Intensity 80, Color [1,0.5,0.25] |
| `702-light-ambient-int50-color.aep` | `3d.aep` | `702-light-ambient-int50-color` | NEW ambient light `A`, Intensity 50, Color [0.25,0.5,1] |
| `703-key-orientation-0-to-10-20-30-linear.aep` | `3d.aep` | `703-key-orientation-0-to-10-20-30-linear` | L 3D, Orientation keys [0,0,0] at 0 s and [10,20,30] at 2 s (linear): read back 0.5 s [3.4341, 4.4691, 7.7129], 1 s [6.2643, 9.3531, 15.2190], 1.5 s [8.4650, 14.5598, 22.6095] (not per-component linear) |
| `704-light-environment-default.aep` | `3d.aep` | `704-light-environment-default` | NEW environment light `E` at its defaults |
| `705-mask-on-text-rect-40-m70-160-10.aep` | `text.aep` | `705-mask-on-text-rect-40-m70-160-10` | NEW point text `T` `HHHH` (normal baseline) with a rect mask (mask.add centre [100,-30], size [120,80]): vertices read back [40,-70] [160,-70] [160,10] [40,10] (layer space) |
| `706-mask-on-shape-rect-0-m150-100-150.aep` | `masks.aep` | `706-mask-on-shape-rect-0-m150-100-150` | NEW shape layer `S` (Group 1: Rectangle 400x200, Fill green) with a rect mask centre [50,0] size [100,300]: vertices [0,-150] [100,-150] [100,150] [0,150] |
| `707-shape-merge-subtract-rect-ellipse.aep` | `shapes.aep` | `707-shape-merge-subtract-rect-ellipse` | S without the mask: Rectangle, Ellipse 200x200, Merge Paths mode subtract (read back Merge Type 3), Fill (moved last) |
| `708-shape-merge-intersect-rect-ellipse.aep` | `shapes.aep` | `708-shape-merge-intersect-rect-ellipse` | 707 with Merge Type 4 |
| `709-shape-repeater-3-pos150-60-rot10-scale90-80-op40.aep` | `shapes.aep` | `709-shape-repeater-3-pos150-60-rot10-scale90-80-op40` | S: Rectangle, Fill, Repeater (Copies 3, Position [150,60], Rotation 10, Scale [90,80], End Opacity 40) |
| `710-shape-offset-paths-20-round.aep` | `shapes.aep` | `710-shape-offset-paths-20-round` | S: Rectangle, Offset Paths (Amount 20, Line Join round), Fill |
| `711-fx-directional-blur-30-40-on-M.aep` | `effects.aep` | `711-fx-directional-blur-30-40-on-M` | Directional Blur (ADBE Motion Blur) on M: Direction 30, Blur Length 40 |
| `712-fx-eleven-effects-defaults-on-M.aep` | `effects.aep` | `712-fx-eleven-effects-defaults-on-M` | M with, in this order, Radial Blur, CC Radial Blur, Venetian Blinds, Channel Blur, Black & White, Tritone, Luma Key, Simple Choker, Matte Choker, Transform (ADBE Geometry2), Set Matte (ADBE Set Matte3), all at their defaults |
| `713-fx-radial-blur-zoom-20-on-M.aep` | `effects.aep` | `713-fx-radial-blur-zoom-20-on-M` | Radial Blur: Amount 20, Center [600,300], Type 2 (Zoom), Antialiasing 2 (High) |
| `714-fx-ccradial-type2-30-60-on-M.aep` | `effects.aep` | `714-fx-ccradial-type2-30-60-on-M` | CC Radial Blur: Type 2, Amount 30, Quality 60, Center [400,200] |
| `715-fx-venetian-40-30-50-5-on-M.aep` | `effects.aep` | `715-fx-venetian-40-30-50-5-on-M` | Venetian Blinds: Completion 40, Direction 30, Width 50, Feather 5 |
| `716-fx-channel-blur-5-10-15-20-edge-horiz-on-M.aep` | `effects.aep` | `716-fx-channel-blur-5-10-15-20-edge-horiz-on-M` | Channel Blur: R 5, G 10, B 15, A 20, Edge Behavior (Repeat Edge Pixels) 1, Blur Dimensions 2 |
| `717-fx-blackwhite-set-tint-on-L.aep` | `effects.aep` | `717-fx-blackwhite-set-tint-on-L` | Black & White on L: Reds 10, Yellows 70, Greens 30, Cyans 50, Blues 90, Magentas 20, Tint 1, Tint Color [1,0.5,0] |
| `718-fx-tritone-set-blend25-on-L.aep` | `effects.aep` | `718-fx-tritone-set-blend25-on-L` | Tritone on L: Highlights [1,1,0.8], Midtones [0.6,0.2,0.2], Shadows [0,0,0.3], Blend With Original 25 |
| `719-fx-lumakey-darker-140-20-1-2.5-on-M.aep` | `effects.aep` | `719-fx-lumakey-darker-140-20-1-2.5-on-M` | Luma Key on M: Key Type 2, Threshold 140, Tolerance 20, Edge Thin 1, Edge Feather 2.5 |
| `720-fx-simplechoker-3.5-on-M.aep` | `effects.aep` | `720-fx-simplechoker-3.5-on-M` | Simple Choker: Choke Matte 3.5 |
| `721-fx-simplechoker-3.5-view-matte-on-M.aep` | `effects.aep` | `721-fx-simplechoker-3.5-view-matte-on-M` | 720 + View 2 |
| `722-fx-mattechoker-set-on-M.aep` | `effects.aep` | `722-fx-mattechoker-set-on-M` | Matte Choker: Geometric Softness 1 6, Choke 1 50, Geometric Softness 2 2, Choke 2 -10, Iterations 3 (Gray Level Softness 1 / 2 refused by AE: "Unable to call setValue", left at their defaults) |
| `723-fx-transform-set-on-M.aep` | `effects.aep` | `723-fx-transform-set-on-M` | Transform: Anchor [400,200], Position [500,300], Uniform Scale 0, Scale Height 80, Scale Width 120, Skew 10, Skew Axis 20, Rotation 30, Opacity 70, Use Composition's Shutter Angle 0, Shutter Angle 90, Sampling 2 |
| `725-text-point-HHHH-normal-ref-S18.aep` | `text.aep` | `725-text-point-HHHH-normal-ref-S18` | (fresh base) point text `T` `HHHH`, baseline normal: reference of S18 (= 538) |
| `727-text-reset-paragraph.aep` | `text.aep` | `727-text-reset-paragraph` | (726 undone) text.reset_style paragraph: ONLY paragraph /34 0 -> 7. Same session, not saved: a 600x400 box text of 88 characters, justified (fullLeft), lays out identically before and after a paragraph reset (text.measure: 4 lines, the same breaks and baselines -130.50 / -32.50 / 65.50 / 163.50; layer.bounds identical) |
| `728-textanim-character-offset-3.aep` | `text.aep` | `728-textanim-character-offset-3` | 727 + text.add_animator `Off` with Character Offset 3; AE adds Character Alignment (ADBE Text Character Change Type) 1 and Character Range 1 with it (read back); setting Character Range to 2 is refused by AE ("Can not set value") |
| `730-key-anchor-ease-on-400x800-solid.aep` | `keyframes.aep` | `730-key-anchor-ease-on-400x800-solid` | NEW blue solid `P` 400x800, Anchor Point keys [200,400] at 0 s (out speed 50, influence 40) and [300,500] at 2 s (in speed 30, influence 60); stored speeds 0.0625 / 0.0375 = 50 / 800 and 30 / 800 (597: 50 / 1080 on the 1920x1080 L), so a stored spatial speed is pixels per second divided by the layer height; read back 0.5 s [225.2343, 425.2343], 1 s [261.4341, 461.4341], 1.5 s [286.0550, 486.0550] |
| `731-shape-merge-offset-repeater-defaults.aep` | `shapes.aep` | `731-shape-merge-offset-repeater-defaults` | NEW shape layer `S`: Group 1 with Rectangle 400x200, then property.add of Merge Paths, Offset Paths, Repeater, nothing set; read back: Merge Type 1; Offset Amount 10, Line Join 1, Miter Limit 4, Copies 1, Copy Offset 1; Repeater Copies 1, Offset 0, Composite 1, Anchor [0,0], Position [0,0], Scale [100,100], Rotation 0, Start / End Opacity 100 / 100 (the values of a property without a record; the UI's Add menu and shape.add_repeater store their own) |
| `732-text-box-byteedit-para24-0.aep` | `text.aep` | `732-text-box-byteedit-para24-0` | 517 with paragraph `/23 true /24 1` -> `/24 0` (the run's paragraph); layout identical to 517 (4 lines, baselines -163.80 / -65.80 / 32.20 / 130.20, bounds 563.61 x 347.06); 732r-resaved keeps `/24 0` |
| `733-text-box-byteedit-para35-0.aep` | `text.aep` | `733-text-box-byteedit-para35-0` | 517 with paragraph `/34 0 /35 1` -> `/35 0`; layout identical (line ends within 1e-4 px); 733r-resaved keeps `/35 0` |
| `734-text-box-byteedit-style68-1.aep` | `styles.aep` | `734-text-box-byteedit-style68-1` | 517 with style `/68 0 /69 0` -> `/68 1` (3 occurrences: style sheet and runs); layout identical; 734r-resaved keeps `/68 1` |
| `828-shape-offset-paths-20-copies3-copyoffset1.5-stroke.aep` | `shapes.aep` | `828-shape-offset-paths-20-copies3-copyoffset1.5-stroke` | shape `S`: Rectangle 400x200, Offset Paths Amount 20, Stroke 2 px green: Copies 1 / Copy Offset 0 -> ring at the path, Copies 3 / Copy Offset 0 -> offsets 0, 20, 40, Copies 3 / Copy Offset 1.5 -> 30, 50, 70: offset of copy i = Amount x (i + Copy Offset) |
| `851-shape-key-trim-end-0-100-linear.aep` | `shapes.aep` | `851-shape-key-trim-end-0-100-linear` | Trim End keys 0 at 0 s, 100 at 2 s, linear (keyframe.apply); undone |
| `852-shape-key-trim-end-bezier-out0-60-in20-30.aep` | `shapes.aep` | `852-shape-key-trim-end-bezier-out0-60-in20-30` | Trim End keys 0 at 0 s (bezier, out speed 0 / influence 60) and 100 at 2 s (bezier, in speed 20 / influence 30); read back in ease of key 1 0 / 33, out of key 2 0 / 33; undone |
| `853-shape-key-group-position-0-200-100-linear.aep` | `shapes.aep` | `853-shape-key-group-position-0-200-100-linear` | Group 1 Transform Position keys [0,0] at 0 s, [200,100] at 2 s, linear; undone |
| `854-shape-key-fill-color-red-blue-linear.aep` | `shapes.aep` | `854-shape-key-fill-color-red-blue-linear` | Fill Color keys red at 0 s, blue at 2 s, linear; undone |
| `855-shape-key-trim-offset-0-90-hold.aep` | `shapes.aep` | `855-shape-key-trim-offset-0-90-hold` | Trim Offset keys 0 at 0 s (linear), 90 at 2 s (hold); undone |
| `856-shape-trim-end-expression-time50.aep` | `shapes.aep` | `856-shape-trim-end-expression-time50` | Trim End expression `time*50` (no keys); undone |
| `857-shape-key-group-scale-100-50-150-linear.aep` | `shapes.aep` | `857-shape-key-group-scale-100-50-150-linear` | Group 1 Transform Scale keys [100,100] at 0 s, [50,150] at 2 s, linear; undone (base state verified by layer.info) |
| `900-mask-added-no-path.aep` | `masks.aep` | `900-mask-added-no-path` | property.add `ADBE Mask Atom` on L, nothing set: the file stores the atom WITHOUT an `ADBE Mask Shape` entry (only `ADBE Group End`); read back (also after reopening) Mask Path closed [[0,0],[0,1080],[1920,1080],[1920,0]], tangents 0 = the layer's source rectangle |
| `901-mask-no-path-expansion-m100.aep` | `masks.aep` | `901-mask-no-path-expansion-m100` | from 900: Mask Expansion -100 (only `ADBE Mask Offset` stored) |
| `902-settings-rec709-16bpc-steps-png-grey-solid.aep` | `settings-c.aep` | `902-settings-rec709-16bpc-steps-png-grey-solid` | from 901: mask removed, project 16 bpc + working space Rec.709 Gamma 2.4; footage `test-media\steps.png` (sRGB PNG, no profile; top bands 0,16,32,64,96,128,160,192,224,255 grey, bottom (v, v/2, 255-v)) as layer `S`, grey 0.5 solid `G` 400x200 at [1600,900] on top |
| `905-fx-24-effects-set-one-comp.aep` | `effects.aep` | `905-fx-24-effects-set-one-comp` | the 24 effects and values of 904 in ONE comp `C` (L deleted): `R` = grey 0.5 solid with Gradient Ramp, video off, at the bottom (id 30); 24 layers E01..E24 = steps.png, each with the one effect of the 904 comp of the same name (E24 on top); the layer parameters of E22-E24 name R. Made as a smaller fixture than 904 (0.6 MB against 2 MB); no |
| `906-blendmodes-13-solids-on-steps.aep` | `layers-comps.aep` | `906-blendmodes-13-solids-on-steps` | L deleted; `S` = steps.png; 13 solids 300x300 [0.9,0.5,0.2] (named by mode) at a 320 x 360 px grid, each with layer.set_blend_mode normal, add, multiply, screen, overlay, softLight, hardLight, difference, exclusion, colorDodge, colorBurn, darken, lighten: `ldta`@99 = 2, 4, 5, 6, 7, 8, 9, 26, 25, 27, 28, 10, 11 |
| `951-styles-all-nine-defaults-on-B.aep` | `styles.aep` | `951-styles-all-nine-defaults-on-B` | from 950: on B `command.execute` 9000, 9001, 9002, 9003, 9004, 9005, 9006, 9007, 9008 (one call each), nothing set. AE read-back of the defaults (property.get): Drop Shadow mode2 5, color [0,0,0,1], opacity 75, useGlobalAngle 0, localLightingAngle 120, distance 5, chokeMatte 0, blur 5, noise 0, layerConceals 1; Inner Shadow mode2 5, color [0,0,0,1], opacity 75, useGlobalAngle 0, angle 120, distance 5, chokeMatte 0, blur 5, noise 0; Outer Glow mode2 11, opacity 75, noise 0, AEColorChoice 1, color [1,1,0.74509803921569,1], gradientSmoothness 100, glowTechnique 1, chokeMatte 0, blur 5, inputRange 50, shadingNoise 0; Inner Glow as Outer Glow plus innerGlowSource 1; Bevel and Emboss bevelStyle 2, bevelTechnique 1, strengthRatio 100, bevelDirection 1, blur 5, softness 0, useGlobalAngle 0, angle 120, altitude 30, highlightMode 11, highlightColor [1,1,1,1], highlightOpacity 75, shadowMode 5, shadowColor [0,0,0,1], shadowOpacity 75; Satin (chromeFX) mode2 5, color [0,0,0,1], opacity 50, angle 19, distance 11, blur 14, invert 1; Color Overlay (solidFill) mode2 1, color [1,0,0,1], opacity 100; Gradient Overlay mode2 1, opacity 100, gradientSmoothness 100, angle 90, type 1, reverse 0, align 1, scale 100, offset [0,0] (gradient not read); Stroke (frameFX) mode2 1, color [1,0,0,1], size 3, opacity 100, style 1; Blending Options Global Light Angle 120, Altitude 30, Fill Opacity 100, R/G/B Channel Blend 1, Blend Interior 0, Blend Ranges 1 |
| `963-curves-red-mid-down-on-S.aep` | `styles.aep` | `963-curves-red-mid-down-on-S` | from 984: apply `curves-red-mid-down.ffx` (Red curve: middle point dragged down). AE read-back: Channel: 1 (RGB, default; the editor channel Red is not the Channel parameter), Curves not readable. File: Red curve (0,0) (128,44) (255,255) |
| `964-curves-rgb-s-curve-on-S.aep` | `styles.aep` | `964-curves-rgb-s-curve-on-S` | from 984: apply `curves-rgb-two-points.ffx` (RGB S-curve: a point at about 1/4 dragged down, one at 3/4 up). AE read-back: Channel: 1, Curves not readable. File: RGB curve (0,0) (62,24) (194,230) (255,255) |
| `966-style-drop-shadow-opacity50-distance20.aep` | `styles.aep` | `966-style-drop-shadow-opacity50-distance20` | from 952 (opened): dropShadow/opacity 75 -> 50, dropShadow/distance 5 -> 20 (read back 50, 20) |
| `970-style-stroke-size10-color-green.aep` | `styles.aep` | `970-style-stroke-size10-color-green` | from 960: frameFX/size 3 -> 10, frameFX/color [1,0,0,1] -> [0,1,0,1] (read back 10, [0,1,0,1]) |
| `974-style-gradient-overlay-angle45-scale150.aep` | `styles.aep` | `974-style-gradient-overlay-angle45-scale150` | from 959: gradientFill/angle 90 -> 45, gradientFill/scale 100 -> 150 (read back 45, 150); the gradient colours were not touched |
| `975-style-fill-opacity0-with-drop-shadow.aep` | `styles.aep` | `975-style-fill-opacity0-with-drop-shadow` | from 952: ADBE Layer Fill Opacity2 100 -> 0 (Layer Styles > Blending Options > Advanced Blending > Fill Opacity; read back 0) |
| `976-style-drop-shadow-opacity-keyed-100-20-linear.aep` | `styles.aep` | `976-style-drop-shadow-opacity-keyed-100-20-linear` | from 952: dropShadow/opacity keys t=0 -> 100, t=2 -> 20, linear (keyframe.apply); read back 100 / 60 / 20 at 0 / 1 / 2 s |
| `977-styles-all-params-changed.aep` | `styles.aep` | `977-styles-all-params-changed` | on B every settable parameter of the nine styles and Blending Options set by `property.set` (one batch): Global Angle2 45, Global Altitude2 40, Fill Opacity2 80, R Channel Blend 0, Blend Interior 1, Blend Ranges 0; dropShadow mode2 1, color [0,0,1], opacity 60, useGlobalAngle 1, localLightingAngle 30, distance 12, chokeMatte 10, blur 8, noise 5, layerConceals 0; innerShadow mode2 1, color [0,1,0], opacity 55, useGlobalAngle 1, localLightingAngle 60, distance 7, chokeMatte 15, blur 9, noise 3; outerGlow mode2 1, opacity 65, noise 2, AEColorChoice 2, color [1,0,0], gradientSmoothness 80, glowTechnique 2, chokeMatte 12, blur 20, inputRange 40, shadingNoise 10; innerGlow mode2 1, opacity 45, noise 4, AEColorChoice 2, color [0,1,0], gradientSmoothness 70, glowTechnique 2, innerGlowSource 2, chokeMatte 8, blur 15, inputRange 30, shadingNoise 20; bevelEmboss bevelStyle 1, bevelTechnique 2, strengthRatio 150, bevelDirection 2, blur 10, softness 3, useGlobalAngle 1, localLightingAngle 70, localLightingAltitude 50, highlightMode 1, highlightColor [1,1,0], highlightOpacity 60, shadowMode 1, shadowColor [0,0,1], shadowOpacity 40; chromeFX mode2 1, color [1,0,1], opacity 70, localLightingAngle 45, distance 20, blur 10, invert 0; solidFill mode2 5, color [0,1,1], opacity 50; gradientFill mode2 5, opacity 70, gradientSmoothness 50, angle 30, type 2, reverse 1, align 0, scale 120, offset [10,20]; frameFX mode2 5, color [0,0,1], size 6, opacity 80, style 2. (Values equal to the default, e.g. dropShadow mode2 1 is not: default 5.) Purpose: one record of every parameter type. property.list read the exact match names (inner shadow / satin angle = `localLightingAngle`; Blending Options = `ADBE Global Angle2`, `ADBE Global Altitude2`, Adv Blend `ADBE Layer Fill Opacity2`, `ADBE R/G/B Channel Blend`, `ADBE Blend Interior`, `ADBE Blend Ranges`; no Knockout) |
| `979-style-inner-glow-source-2.aep` | `styles.aep` | `979-style-inner-glow-source-2` | innerGlow/innerGlowSource 1 -> 2; 955 centre unchanged 51,102,204) -> 1 = Edge, 2 = Center |
| `981-layer-stretch-minus100-start5.aep` | `keyframes.aep` | `981-layer-stretch-minus100-start5` | L: layer.set_timing stretch -100, then startTime 5; AE reads startTime 5, inPoint 4.99967, outPoint -0.00033, stretch -100 |
| `982-layer-stretch-minus100-opacity-keys.aep` | `keyframes.aep` | `982-layer-stretch-minus100-opacity-keys` | from 981 (not undone): Opacity keys added at comp time 0 -> 100 and comp 4 -> 20 (keyframe.add); AE lists the keys at 4.00002 (20) and 0.00002 (100), reads 80 at comp 1 s, 40 at 3 s |
| `983-layer-stretch-minus50-opacity-keys.aep` | `keyframes.aep` | `983-layer-stretch-minus50-opacity-keys` | from 982: stretch -100 -> -50 (keys kept); AE: inPoint 4.99983, outPoint 2.49983, keys at comp 4.5 (20) and 2.5 (100) |
| `985-meshwarp-3x3-vertex-moved-on-S.aep` | `styles.aep` | `985-meshwarp-3x3-vertex-moved-on-S` | from 984: apply `meshwarp-3x3-center-right.ffx` (Rows 3, Columns 3 = 3x3 cells, 4x4 vertices; the contributor dragged the LOWER-RIGHT INNER vertex (row 2, column 2, 0-based) to the right, its tangents moved with it). AE read-back: Rows 3, Columns 3, Quality 8, Distortion Mesh not readable. File: that vertex at (0.73542, 0.66481) of the layer = +132 px, -2 px; the instance mesh is byte-identical to the one in the user's `presets\presets-reference.aep` |
| `986-shape-fill-switched-off-green.aep` | `shapes.aep` | `986-shape-fill-switched-off-green` | from 850: the Fill group's `tdsb` 1 -> 0 patched in a copy (the item eye switch is not scriptable), opened with project.open, Fill Color set to green by property.set, saved by After Effects (it keeps `tdsb` 0); centre 255,0,0 = the solid L) |
| `988-style-drop-shadow-switched-off.aep` | `styles.aep` | `988-style-drop-shadow-switched-off` | from 952: the `dropShadow/enabled` group `tdsb` 1 -> 0 patched in a copy (the style eye is not scriptable), opened with project.open (AE lists the style, Opacity 75),; Layer Styles and Blending Options stay 1) |
+2 -2
View File
@@ -1,7 +1,7 @@
# AEP generation and validation notes
The first fixture batch should add concise generation and validation notes here. No batch
has been published yet.
Notes per batch. Published so far: [`2026-11-03-initial-corpus.md`](2026-11-03-initial-corpus.md)
(17 projects, 3 presets). The case map is [`CASES.md`](CASES.md).
## Generation notes
+44
View File
@@ -0,0 +1,44 @@
// 3d.jsx - combined fixture of the 3D family (cameras, lights, orientation, 3D layers):
// one comp per case of partition.txt, recipes from synthetic/MANIFEST.md. Needs fam-common.jsx.
function cam(name) { return op("layer.create_camera", { comp: "$", name: name }); }
function light(name, type) { return op("layer.create_light", { comp: "$", name: name, lightType: type }); }
var CAM = cam("Camera 1");
var SPOT = light("Light 1", "spot");
var ON3D = props("L", { threeDLayer: true });
var ROTX30 = setp("L", ["Transform", "X Rotation"], 30);
var PROJECTS = [{
out: "3d.aep",
settings: null,
setup: baseTemplate(),
cases: [
{ id: "015-layer-3d", steps: [ON3D] },
{ id: "039-comp-renderer-advanced3d", steps: [op("comp.set_renderer", { comp: "$", renderer: "advanced3d" })] },
{ id: "251-camera-one-node", steps: [CAM, props("Camera 1", { autoOrient: "off" })] },
{ id: "252-light-point", steps: [light("Light 1", "point")] },
{ id: "253-camera-position-100-200-m1000", steps: [CAM, setp("Camera 1", ["Transform", "Position"], [100, 200, -1000])] },
{ id: "254-light-spot-intensity-50", steps: [SPOT, setp("Light 1", ["Light Options", "Intensity"], 50)] },
{ id: "256-camera-two-node-default", steps: [CAM] },
{ id: "341-camera-zoom-2000", steps: [CAM, setp("Camera 1", ["Camera Options", "Zoom"], 2000)] },
{ id: "342-camera-dof-800-30", steps: [CAM, setp("Camera 1", ["Camera Options", "Depth of Field"], 1), setp("Camera 1", ["Camera Options", "Focus Distance"], 800), setp("Camera 1", ["Camera Options", "Aperture"], 30)] },
{ id: "343-light-spot-color-red", steps: [SPOT, setp("Light 1", ["Light Options", "Color"], [1, 0, 0, 1])] },
{ id: "344-light-spot-coneangle-60", steps: [SPOT, setp("Light 1", ["Light Options", "Cone Angle"], 60)] },
{ id: "345-light-spot-conefeather-30", steps: [SPOT, setp("Light 1", ["Light Options", "Cone Feather"], 30)] },
{ id: "485-layer-3d-on", steps: [ON3D] },
{ id: "486-layer-3d-rotx-30", steps: [ON3D, ROTX30] },
{ id: "487-layer-3d-roty-45", steps: [ON3D, setp("L", ["Transform", "Y Rotation"], 45)] },
{ id: "488-layer-3d-orientation-10-20-30", steps: [ON3D, setp("L", ["Transform", "Orientation"], [10, 20, 30])] },
{ id: "535-camera-position-on-3d-rotx", steps: [ON3D, ROTX30, cam("K"), setp("K", ["Transform", "Position"], [100, 200, -1000])] },
{ id: "536-camera-one-node-position-on-3d-rotx", steps: [ON3D, ROTX30, cam("K"), setp("K", ["Transform", "Position"], [100, 200, -1000]), props("K", { autoOrient: "off" })] },
{ id: "537-camera-default-on-3d-rotx", steps: [ON3D, ROTX30, cam("K")] },
{ id: "701-light-parallel-int80-color", steps: [light("P", "parallel"), setp("P", ["Light Options", "Intensity"], 80), setp("P", ["Light Options", "Color"], [1, 0.5, 0.25, 1])] },
{ id: "702-light-ambient-int50-color", steps: [light("A", "ambient"), setp("A", ["Light Options", "Intensity"], 50), setp("A", ["Light Options", "Color"], [0.25, 0.5, 1, 1])] },
// Keyed 3-D property: read the value once before the save (pilot lesson 3).
{ id: "703-key-orientation-0-to-10-20-30-linear", steps: [ON3D,
op("keyframe.add", { comp: "$", layer: "L", property: ["Transform", "Orientation"], time: 0, value: [0, 0, 0] }),
op("keyframe.add", { comp: "$", layer: "L", property: ["Transform", "Orientation"], time: 2, value: [10, 20, 30] }),
getp("L", ["Transform", "Orientation"], 1)] },
{ id: "704-light-environment-default", steps: [light("E", "environment")] }
]
}];
+120
View File
@@ -0,0 +1,120 @@
# Generator of the combined test projects
> Paths below: `<corpus>` is the contributor's local working folder (not published). The published
> inputs map as follows: `<corpus>/presets/*.ffx` -> [`aep/inputs/`](../../aep/inputs/) (the three used
> presets); `<corpus>/synthetic/test-media/` and the earlier single-case projects are **not
> available** (see "Unavailable inputs" at the end). Replace `<corpus>` with a working folder of your own.
The test projects of the corpus (opt-in, the folder named by `EFFECTCRAFT_AEP_FIXTURES`) were made from scratch with Adobe After Effects 2026, driven through an
After Effects MCP server (its `batch.run` of atomic operations; `eval.run`, i.e. running
ExtendScript, is disabled on that server, so the tables below are written in MCP operation terms
and small Node scripts turn them into `batch.run` lists). Each file holds one composition per
case, named like the case ([`docs/aep/CASES.md`](../../docs/aep/CASES.md)); every case composition starts as a duplicate of the
base composition `000-base` (1920x1080, 25 fps, 5 s, black, one red 1920x1080 solid `L`) and adds
the case's change (and the chain of cases it was made from).
Paths in the scripts are written `<corpus>/...`: a local working folder outside the repository
that holds an empty project (`combined/gen/empty-work.aep`, a copy of the corpus's `empty.aep`), the test
media the footage cases import (`synthetic/test-media/`: a png, a WAV, png and OpenEXR sequences,
an mp4, Targa, Photoshop, Illustrator and EPS stills, all made by the contributor), the earlier
single-case files some cases are merged from, and the contributor's own animation presets
(`presets/`). Set them before running.
## Files
| file | what |
|---|---|
| `effects.jsx` | effects cases (the trimmed table of the cases the tests use) and the templates `000-base`, `520-solid-M-grey-960x540` |
| `to-mcp.js` | turns `effects.jsx` into `ops/batch-NN.json` |
| `masks.jsx`, `shapes.jsx`, `styles.jsx` | masks, shapes and styles cases (styles also 963, 964, 985, 340, 734) |
| `mss-to-mcp.js` | turns one of those three into `ops/<family>/batch-NN.json` and `merge.json` |
| `layers-comps.jsx`, `keyframes.jsx` | layer / composition / transform / matte / blend-mode cases, and key / ease / expression / stretch cases; each runs under Node and writes its own batches; `layers-comps.jsx` also holds the `.aep` / `.aepx` pair |
| `text.jsx` | text cases; runs under Node and writes its batches |
| `fam-common.jsx`, `fam-to-mcp.js` | shared helpers and translator of the families `3d.jsx`, `footage-precomp.jsx`, `markers.jsx`, `settings.jsx` (settings: one project per group of cases, `settings-a/b/c`) |
| `scrub.py` | fixture hygiene of a saved `.aep`: footage alias paths replaced by neutral ones of the same length (`C:\fixtures\...`), host name `HOST000...`, neutral ascend counts, the XMP packet replaced by the base project's |
| `layers-comps-scrub-aepx.py` | the same XMP swap for the `.aepx` of the pair |
| `patch-text.py` | the byte edits of the text cases 732 and 733 (see below) |
## Run order (per file)
1. Make sure After Effects shows no dialog. Save the open project somewhere harmless first
(opening a project over a dirty untitled one raises a Save As dialog), then open
`<corpus>/combined/gen/empty-work.aep`.
2. Translate the table (`node to-mcp.js ops`, `node mss-to-mcp.js <family>`,
`node layers-comps.jsx <outdir>`, `node keyframes.jsx <outdir>`, `node text.jsx <outdir>`,
`node fam-to-mcp.js <family> setup` then `... cases <out> ids-<out>.json`) and run the batches
in order with `batch.run` (template batch first; check `failed` is 0 after each).
- Footage cases: import the media first (`project.import_file`); the translators take the new
item id (`stepsItemId`, or the tagged ids of the setup batch) and write the footage batches.
- `mss-to-mcp.js`: after the template, merge each project of `merge.json`
(`project.merge`) and rename its comp as listed; after the cases delete the `src-*` comps.
- A keyed multi-dimensional property is read once (`property.get`) before the save, or After
Effects does not write the first key's speed (the tables do this where the case needs it).
3. Save the project (`ae_save_project`); for the pair, save as `aepx-pair.aep` and right after as
`aepx-pair.aepx`.
4. Text only: `python -I patch-text.py text.aep text-patched.aep` makes the same one-byte edit
of a paragraph slot in the text documents of 732 and 733 as the earlier single-case files
(built as case 517; the slot is not reachable by scripting).
5. Scrub: `python -I scrub.py <saved>.aep <fixture>.aep <base project>.aep` (and
`layers-comps-scrub-aepx.py` for the `.aepx`). Set `SCRUB_FORBID` to the local folder and
machine names that must not remain; the script fails if one does.
6. Strip the colour profiles: `stubicc.rs` (a copy of EffectCraft's `crates/aep/examples/stubicc.rs`, run from an
EffectCraft checkout: `cargo run -p effectcraft-aep --example stubicc -- <fixture>.aep <fixture>.new`,
also for the `.aepx`) replaces the working-space profile and the profile of imported images by a
stub with the same description and no colour data. Do not save the projects with working space
None instead: the importer reads the working space's name from the profile, and the settings
cases (sRGB, Rec.709 Gamma 2.4, gamma) test exactly that.
7. Inspect the final bytes independently: `python -I inspect-embedded.py <aep dir> --forbid <your user name> --forbid <your machine name>` (raw, base64 and AEPX hex; exit code 0 means every profile left is a description-only stub). A cleanup tool's own success message is not evidence.
8. Check: every case composition must import like the earlier single-case file (the tests in
`crates/aep/tests` of EffectCraft are that check; [`docs/aep/CASES.md`](../../docs/aep/CASES.md) lists the cases).
Project settings have one value per project, so the settings cases are split over three files.
In a fresh save After Effects 26.2.1 no longer writes the working-space profile name, only the
profile data; the reader then takes the name from the profile's own description.
## The three preset cases (963, 964, 985)
Curves and Mesh Warp keep their data in an arbitrary-data parameter that no scripting call can set,
so these three cases are made by applying an animation preset (`layer.apply_preset`) to layer `S`
(`steps.png`) of the presets base `984` (solid `B` over `S`, no `L`). The presets are the
contributor's own, made by hand in Adobe After Effects 2026 (Windows) on 2026-10-19: add the effect
to a solid, set it as described, select the effect, `Animation > Save Animation Preset`, delete the
effect. No Adobe preset, sample or asset was used or copied; each file holds only that one effect
with the values set by hand. They are not decoded anywhere in the importer or the tests: only their
effect on the saved project (read back from the projects) is.
| preset | made by | used by |
|---|---|---|
| `curves-red-mid-down.ffx` | Curves, channel Red: the middle point dragged down (file: Red curve (0,0) (128,44) (255,255)) | 963 |
| `curves-rgb-two-points.ffx` | Curves, channel RGB: a point at about 1/4 dragged down, one at 3/4 up (file: (0,0) (62,24) (194,230) (255,255)) | 964 |
| `meshwarp-3x3-center-right.ffx` | Mesh Warp, Rows 3, Columns 3, the lower-right inner vertex dragged about 100 px to the right in the Composition panel | 985 |
Three more presets were made the same way for earlier experiments (cases 961, 962, 965), whose projects are not part of the test set: `curves-default.ffx`, `curves-rgb-mid-up.ffx`, `meshwarp-default.ffx`. The three presets of the test cases and their SHA-256 sums are part of the corpus (`presets/`):
```
f6ce60a8ed0fa786625078f61995e1184ef0b016efaeeb0b4ae6337831697821 curves-red-mid-down.ffx
e3992190150366b01859e32adcb9bbe2e0ef492bd2259a8b7e85b571afeca24f curves-rgb-two-points.ffx
4a0cd5a0e52d8d14ee0f895b0a3e054199d399094b410a7b2a620eb484d5cba8 meshwarp-3x3-center-right.ffx
```
Inputs that are not available outside the contributor's machine, and what replaces them: the
presets base `984` is an intermediate project of the contributor (solid `B` over `S`, noise
reference; it is merged into the styles project and not shipped on its own); `steps.png` is a contributor-made sRGB PNG (grey ramps, no embedded profile, see
[`docs/aep/CASES.md`](../../docs/aep/CASES.md) case 902). The presets can be applied to any project that has a layer `S`; the
case compositions of the corpus are the reference, not a byte-exact rebuild.
`fx-switch.aep` is not generated: it is the base project with two Gaussian Blurs (Blurriness 40) on `L`, added through the MCP server, the first switched off by hand in the Effect Controls (the server has no operation for the fx switch), saved once and scrubbed with `scrub.py`.
## Unavailable inputs
- The contributor's test media (`synthetic/test-media/`: a png, a WAV, png and OpenEXR sequences, an mp4,
Targa, Photoshop, Illustrator and EPS stills, `steps.png`). They are not published. The footage
items of the projects point at them by neutral paths (`C: ixtures\...`) and the tests expect
them to be missing placeholders.
- The earlier single-case projects some cases are merged from (`synthetic/*.aep`, e.g. the presets
base `984`) and `combined/gen/empty-work.aep` (a copy of `empty.aep`).
- The contributor's six hand-made presets: only the three the cases use are published.
- `fx-switch.aep` and cases 988 and 734 are not reproducible by script (a hand edit or a byte patch,
see above and `patch-text.py`).
The case compositions of the corpus are the reference, not a byte-exact rebuild from this folder.
+4 -2
View File
@@ -1,7 +1,9 @@
# AEP generation and inspection tools
This directory is reserved for the tools that generate and prepare the AEP fixtures. No
tools are included yet.
The tools that generate and prepare the AEP fixtures. Start with
[`GENERATING.md`](GENERATING.md) (generation order, run order, the three preset cases); the cleanup and
inspection tools are `scrub.py`, `layers-comps-scrub-aepx.py`, `patch-text.py`, `stubicc.rs` and
`inspect-embedded.py` (see below).
When contributing them, document:
+353
View File
@@ -0,0 +1,353 @@
// effects.jsx - builds the combined EFFECTS fixture project (ExtendScript, ES3).
//
// One composition per case of the synthetic corpus (MANIFEST.md, effects family), named exactly
// like the case's single-change fixture (e.g. "216-fx-gaussianblur-40"). Every case comp is a
// duplicate of the base comp "000-base" (comp C of 000-base: 1920x1080, 25 fps, 5 s, black,
// one red 1920x1080 solid layer "L") plus that case's change (and its FROM chain), so the
// importer's result for the old fixture's comp C must equal the case comp here.
// The "-on-M" cases start from "520-solid-M-grey-960x540" (base + a grey 960x540 solid "M" on
// top). Case 905 is built from its own recipe (steps.png footage, 24 effect layers).
//
// Order rule: the FIRST instance of an effect type in the project carries the parameter
// definitions (parT/pard) that later instances borrow, and AE keeps some set values in that
// pard; so for every effect type the case that adds it at its defaults comes first (214 before
// 216, 368 before 369, 712 before 713-723 and 905, ...).
//
// Deterministic and idempotent: it opens the empty project EMPTY_AEP (closing the current
// project WITHOUT saving), builds everything, and saves to OUT_AEP.
//
// The same CASES table drives the MCP runner (to-mcp.js turns it into batch.run operations);
// keep both in step by changing only the table.
//
// Step vocabulary (layer = layer name in the case comp, fx = 1-based effect index):
// ["fx", layer, matchName] add an effect (optional 4th: instance name)
// ["set", layer, fx, prop, value] set a parameter (prop = display name or match name;
// points in layer pixels, colours 0..1, layers by index)
// ["key", layer, fx, prop, t, value] keyframe at layer time t (s), AE's scripted default
// ["expr", layer, fxMatch, prop, code] expression on a parameter of the effect with that match name
// ["eval", layer, fxMatch, prop, t] read the value at time t (AE writes the key speeds of a
// keyed multi-dimensional parameter only after evaluating
// it; without this 364/382 differ in the first key's speed)
// ["move", layer, fx, to] move effect fx to stack position `to`
// ["items", layer, fx, [..]] Dropdown Menu Control items
// ["solid", name, [r,g,b], w, h] new solid layer on top
// ["null", name] new null layer on top
// ["footage", name] new layer of the shared footage item STEPS on top
// ["delete", layer] delete a layer
// ["video", layer, bool] video switch
var EMPTY_AEP = "<corpus>/combined/gen/empty-work.aep"; // a copy of synthetic/001-empty.aep
var OUT_AEP = "<corpus>/combined/effects.aep";
var STEPS_PNG = "<corpus>/synthetic/test-media/steps.png";
// ---------------------------------------------------------------- the case table
function fx(layer, mn) { return ["fx", layer, mn]; }
function set1(layer, prop, v) { return ["set", layer, 1, prop, v]; }
function key1(layer, prop, t, v) { return ["key", layer, 1, prop, t, v]; }
function cat(a, b) { return a.concat(b); }
var SLIDER = [fx("L", "ADBE Slider Control")];
var GAUSS = [fx("L", "ADBE Gaussian Blur 2")];
var FILL = [fx("L", "ADBE Fill")];
var LAYERCTL = [fx("L", "ADBE Layer Control"), set1("L", "Layer", 1)];
var DROPDOWN = [fx("L", "ADBE Dropdown Control"), ["items", "L", 1, ["Alpha", "Beta", "Gamma", "Delta", "Epsilon"]]];
var TINT = [fx("L", "ADBE Tint")];
var RAMP = [fx("L", "ADBE Ramp")];
var EXPO = [fx("L", "ADBE Exposure2")];
var INVERT = [fx("L", "ADBE Invert")];
var BOX = [fx("L", "ADBE Box Blur2")];
var SHADOW = [fx("L", "ADBE Drop Shadow")];
var GLOW = [fx("L", "ADBE Glo2")];
var HUESAT = [fx("L", "ADBE HUE SATURATION")];
var LEVELS = [fx("L", "ADBE Easy Levels2")];
var TIMEWARP = [fx("L", "ADBE Timewarp")];
// base: "000-base" (L only) or "520" (M on top of L)
var CASES = [
{ id: "071-fx-slider-value77", steps: cat(SLIDER, [set1("L", "Slider", 77)]) },
{ id: "073-fx-color-0.2-0.6-1", steps: [fx("L", "ADBE Color Control"), set1("L", "Color", [0.2, 0.6, 1])] },
{ id: "077-fx-dropdown-default", steps: [fx("L", "ADBE Dropdown Control")] },
{ id: "080-fx-dropshadow-default", steps: SHADOW },
{ id: "214-fx-gaussianblur-default", steps: GAUSS },
{ id: "215-fx-fill-default", steps: FILL },
{ id: "216-fx-gaussianblur-40", steps: cat(GAUSS, [set1("L", "Blurriness", 40)]) },
{ id: "217-fx-checkbox-on", steps: [fx("L", "ADBE Checkbox Control"), set1("L", "Checkbox", 1)] },
{ id: "218-fx-point-111-222", steps: [fx("L", "ADBE Point Control"), set1("L", "Point", [111, 222])] },
{ id: "219-fx-angle-90", steps: [fx("L", "ADBE Angle Control"), set1("L", "Angle", 90)] },
{ id: "220-fx-layercontrol-to-layer1", steps: [["null", "Null"], fx("L", "ADBE Layer Control"), set1("L", "Layer", 1)] },
{ id: "221-fx-slider-2key", steps: cat(SLIDER, [key1("L", "Slider", 0, 10), key1("L", "Slider", 2, 90)]) },
{ id: "300-fx-gaussianblur-0-explicit", steps: cat(GAUSS, [set1("L", "Blurriness", 0)]) },
{ id: "301-fx-gaussianblur-40-then-25", steps: cat(GAUSS, [set1("L", "Blurriness", 40), set1("L", "Blurriness", 25)]) },
{ id: "302-fx-fill-opacity-100-explicit", steps: cat(FILL, [set1("L", "Opacity", 1)]) },
{ id: "303-fx-fill-opacity-50-then-100", steps: cat(FILL, [set1("L", "Opacity", 0.5), set1("L", "Opacity", 1)]) },
{ id: "304-fx-slider-0-explicit", steps: cat(SLIDER, [set1("L", "Slider", 0)]) },
{ id: "320-fx-layercontrol-self-explicit", steps: LAYERCTL },
{ id: "321-fx-layercontrol-none", steps: cat(LAYERCTL, [set1("L", "Layer", 0)]) },
{ id: "323-fx-dropdown-5items", steps: DROPDOWN },
{ id: "324-fx-dropdown-5items-select3", steps: cat(DROPDOWN, [set1("L", "Menu", 3)]) },
{ id: "356-fx-tint-default", steps: TINT },
{ id: "357-fx-tint-black-0.2-0.4-0.6", steps: cat(TINT, [set1("L", "Map Black To", [0.2, 0.4, 0.6])]) },
{ id: "361-fx-tint-amount-0", steps: cat(TINT, [set1("L", "Amount to Tint", 0)]) },
{ id: "363-fx-tint-amount-2key", steps: cat(TINT, [key1("L", "Amount to Tint", 0, 20), key1("L", "Amount to Tint", 2, 80)]) },
{ id: "364-fx-tint-white-2key", steps: cat(TINT, [key1("L", "Map White To", 0, [1, 1, 0]), key1("L", "Map White To", 2, [0, 0, 1]), ["eval", "L", "ADBE Tint", "Map White To", 1]]) },
{ id: "366-fx-blur-then-tint", steps: cat(TINT, [fx("L", "ADBE Gaussian Blur 2"), ["move", "L", 2, 1]]) },
{ id: "368-fx-ramp-default", steps: RAMP },
{ id: "369-fx-ramp-start-100-200", steps: cat(RAMP, [set1("L", "Start of Ramp", [100, 200])]) },
{ id: "371-fx-ramp-startcolor-red", steps: cat(RAMP, [set1("L", "Start Color", [1, 0, 0])]) },
{ id: "374-fx-ramp-end-2000-m100", steps: cat(RAMP, [set1("L", "End of Ramp", [2000, -100])]) },
{ id: "377-fx-ramp-shape-radial", steps: cat(RAMP, [set1("L", "Ramp Shape", 2)]) },
{ id: "378-fx-ramp-scatter-12", steps: cat(RAMP, [set1("L", "Ramp Scatter", 12)]) },
{ id: "380-fx-ramp-blend-25pct", steps: cat(RAMP, [set1("L", "Blend With Original", 0.25)]) },
{ id: "382-fx-ramp-start-2key", steps: cat(RAMP, [key1("L", "Start of Ramp", 0, [100, 100]), key1("L", "Start of Ramp", 2, [1800, 900]), ["eval", "L", "ADBE Ramp", "Start of Ramp", 1]]) },
{ id: "383-fx-ramp-on-100x100-start-10-20", steps: cat(RAMP, [["solid", "S100", [1, 1, 1], 100, 100], fx("S100", "ADBE Ramp"), set1("S100", "Start of Ramp", [10, 20])]) },
{ id: "389-fx-exposure-default", steps: EXPO },
{ id: "390-fx-exposure-channels-individual", steps: cat(EXPO, [set1("L", "ADBE Exposure2-0001", 2)]) },
{ id: "391-fx-exposure-master-1.5", steps: cat(EXPO, [set1("L", "ADBE Exposure2-0003", 1.5)]) },
{ id: "393-fx-exposure-offset-0.1", steps: cat(EXPO, [set1("L", "ADBE Exposure2-0004", 0.1)]) },
{ id: "394-fx-exposure-gamma-2.2", steps: cat(EXPO, [set1("L", "ADBE Exposure2-0005", 2.2)]) },
{ id: "395-fx-exposure-individual-red-1", steps: cat(EXPO, [set1("L", "ADBE Exposure2-0001", 2), set1("L", "ADBE Exposure2-0008", 1)]) },
{ id: "396-fx-exposure-bypass-on", steps: cat(EXPO, [set1("L", "ADBE Exposure2-0022", 1)]) },
{ id: "397-fx-exposure-master-2key", steps: cat(EXPO, [key1("L", "ADBE Exposure2-0003", 0, -1), key1("L", "ADBE Exposure2-0003", 2, 2)]) },
{ id: "410-fx-invert-channel-2", steps: cat(INVERT, [set1("L", "Channel", 2)]) },
{ id: "411-fx-invert-blend-50", steps: cat(INVERT, [set1("L", "Blend With Original", 50)]) },
{ id: "413-fx-fastbox-radius-20", steps: cat(BOX, [set1("L", "Blur Radius", 20)]) },
{ id: "414-fx-fastbox-iterations-1", steps: cat(BOX, [set1("L", "Iterations", 1)]) },
{ id: "416-fx-fastbox-repeatedge-off", steps: cat(BOX, [set1("L", "ADBE Box Blur2-0004", 0)]) },
{ id: "418-fx-gaussian-dimensions-3", steps: cat(GAUSS, [set1("L", "Blur Dimensions", 3)]) },
{ id: "419-fx-gaussian-repeatedge-off", steps: cat(GAUSS, [set1("L", "ADBE Gaussian Blur 2-0003", 0)]) },
{ id: "422-fx-dropshadow-opacity-204", steps: cat(SHADOW, [set1("L", "Opacity", 204)]) },
{ id: "426-fx-dropshadow-shadowonly-on", steps: cat(SHADOW, [set1("L", "Shadow Only", 1)]) },
{ id: "427-fx-glow-default", steps: GLOW },
{ id: "429-fx-glow-threshold-76.5", steps: cat(GLOW, [set1("L", "Glow Threshold", 76.5)]) },
{ id: "438-fx-glow-midpoint-0.25", steps: cat(GLOW, [set1("L", "A & B Midpoint", 0.25)]) },
{ id: "444-fx-huesat-hue-90", steps: cat(HUESAT, [set1("L", "ADBE HUE SATURATION-0004", 90)]) },
{ id: "446-fx-huesat-light-m30", steps: cat(HUESAT, [set1("L", "ADBE HUE SATURATION-0006", -30)]) },
{ id: "448-fx-huesat-colorizehue-120", steps: cat(HUESAT, [set1("L", "ADBE HUE SATURATION-0008", 120)]) },
{ id: "512-fx-levels-inblack-0.1", steps: cat(LEVELS, [set1("L", "Input Black", 0.1)]) },
{ id: "514-fx-levels-gamma-2", steps: cat(LEVELS, [set1("L", "Gamma", 2)]) },
{ id: "516-fx-levels-outwhite-0.9", steps: cat(LEVELS, [set1("L", "Output White", 0.9)]) },
{ id: "529-fx-timewarp-default", steps: TIMEWARP },
{ id: "530-fx-timewarp-speed-25", steps: cat(TIMEWARP, [set1("L", "Speed", 25)]) },
{ id: "531-fx-timewarp-speed-keyed-50-200", steps: cat(TIMEWARP, [key1("L", "Speed", 0, 50), key1("L", "Speed", 2, 200)]) },
{ id: "532-fx-timewarp-method-1", steps: cat(TIMEWARP, [set1("L", "Method", 1)]) },
{ id: "533-fx-timewarp-sourceframe-12", steps: cat(TIMEWARP, [set1("L", "Adjust Time By", 2), set1("L", "Source Frame", 12)]) },
{ id: "534-fx-slider-expression-time10", steps: cat(SLIDER, [["expr", "L", "ADBE Slider Control", "Slider", "time*10"]]) },
{ id: "610-fx-tint-named-My-Tint", steps: [["fx", "L", "ADBE Tint", "My Tint"]] },
// ---- from 520: grey 960x540 solid M on top of L
{ id: "711-fx-directional-blur-30-40-on-M", base: "520", steps: [fx("M", "ADBE Motion Blur"), set1("M", "Direction", 30), set1("M", "Blur Length", 40)] },
{ id: "712-fx-eleven-effects-defaults-on-M", base: "520", steps: [fx("M", "ADBE Radial Blur"), fx("M", "CC Radial Blur"), fx("M", "ADBE Venetian Blinds"), fx("M", "ADBE Channel Blur"), fx("M", "ADBE Black&White"), fx("M", "ADBE Tritone"), fx("M", "ADBE Luma Key"), fx("M", "ADBE Simple Choker"), fx("M", "ADBE Matte Choker"), fx("M", "ADBE Geometry2"), fx("M", "ADBE Set Matte3")] },
{ id: "713-fx-radial-blur-zoom-20-on-M", base: "520", steps: [fx("M", "ADBE Radial Blur"), set1("M", "Amount", 20), set1("M", "Center", [600, 300]), set1("M", "Type", 2), set1("M", "Antialiasing (Best Quality)", 2)] },
{ id: "714-fx-ccradial-type2-30-60-on-M", base: "520", steps: [fx("M", "CC Radial Blur"), set1("M", "Type", 2), set1("M", "Amount", 30), set1("M", "Quality", 60), set1("M", "Center", [400, 200])] },
{ id: "715-fx-venetian-40-30-50-5-on-M", base: "520", steps: [fx("M", "ADBE Venetian Blinds"), set1("M", "Transition Completion", 40), set1("M", "Direction", 30), set1("M", "Width", 50), set1("M", "Feather", 5)] },
{ id: "716-fx-channel-blur-5-10-15-20-edge-horiz-on-M", base: "520", steps: [fx("M", "ADBE Channel Blur"), set1("M", "Red Blurriness", 5), set1("M", "Green Blurriness", 10), set1("M", "Blue Blurriness", 15), set1("M", "Alpha Blurriness", 20), set1("M", "ADBE Channel Blur-0005", 1), set1("M", "Blur Dimensions", 2)] },
{ id: "717-fx-blackwhite-set-tint-on-L", base: "520", steps: [fx("L", "ADBE Black&White"), set1("L", "Reds", 10), set1("L", "Yellows", 70), set1("L", "Greens", 30), set1("L", "Cyans", 50), set1("L", "Blues", 90), set1("L", "Magentas", 20), set1("L", "ADBE Black&White-0007", 1), set1("L", "Tint Color", [1, 0.5, 0])] },
{ id: "718-fx-tritone-set-blend25-on-L", base: "520", steps: [fx("L", "ADBE Tritone"), set1("L", "Highlights", [1, 1, 0.8]), set1("L", "Midtones", [0.6, 0.2, 0.2]), set1("L", "Shadows", [0, 0, 0.3]), set1("L", "Blend With Original", 25)] },
{ id: "719-fx-lumakey-darker-140-20-1-2.5-on-M", base: "520", steps: [fx("M", "ADBE Luma Key"), set1("M", "ADBE Luma Key-0001", 2), set1("M", "Threshold", 140), set1("M", "Tolerance", 20), set1("M", "Edge Thin", 1), set1("M", "Edge Feather", 2.5)] },
{ id: "720-fx-simplechoker-3.5-on-M", base: "520", steps: [fx("M", "ADBE Simple Choker"), set1("M", "Choke Matte", 3.5)] },
{ id: "721-fx-simplechoker-3.5-view-matte-on-M", base: "520", steps: [fx("M", "ADBE Simple Choker"), set1("M", "Choke Matte", 3.5), set1("M", "View", 2)] },
{ id: "722-fx-mattechoker-set-on-M", base: "520", steps: [fx("M", "ADBE Matte Choker"), set1("M", "Geometric Softness 1", 6), set1("M", "Choke 1", 50), set1("M", "Geometric Softness 2", 2), set1("M", "Choke 2", -10), set1("M", "Iterations", 3)] },
{ id: "723-fx-transform-set-on-M", base: "520", steps: [fx("M", "ADBE Geometry2"), set1("M", "Anchor Point", [400, 200]), set1("M", "Position", [500, 300]), set1("M", "ADBE Geometry2-0011", 0), set1("M", "Scale Height", 80), set1("M", "Scale Width", 120), set1("M", "Skew", 10), set1("M", "Skew Axis", 20), set1("M", "Rotation", 30), set1("M", "Opacity", 70), set1("M", "ADBE Geometry2-0009", 0), set1("M", "Shutter Angle", 90), set1("M", "Sampling", 2)] }
];
// Effect cases of MANIFEST.md that never became PR fixtures (old files in <corpus>/synthetic).
var MORE = [
{ id: "070-fx-slider-default", steps: SLIDER },
{ id: "072-fx-checkbox-default", steps: [fx("L", "ADBE Checkbox Control")] },
{ id: "074-fx-point-default", steps: [fx("L", "ADBE Point Control")] },
{ id: "075-fx-angle-default", steps: [fx("L", "ADBE Angle Control")] },
{ id: "076-fx-layercontrol-default", steps: [fx("L", "ADBE Layer Control")] },
{ id: "078-fx-gaussianblur-25", steps: cat(GAUSS, [set1("L", "Blurriness", 25)]) },
{ id: "079-fx-fill-color-0-0.5-1", steps: cat(FILL, [set1("L", "Color", [0, 0.5, 1])]) },
{ id: "322-fx-layercontrol-none-then-self", steps: cat(LAYERCTL, [set1("L", "Layer", 0), set1("L", "Layer", 1)]) },
{ id: "358-fx-tint-black-red", steps: cat(TINT, [set1("L", "Map Black To", [1, 0, 0])]) },
{ id: "359-fx-tint-white-green", steps: cat(TINT, [set1("L", "Map White To", [0, 1, 0])]) },
{ id: "360-fx-tint-white-0.5-0.25-1", steps: cat(TINT, [set1("L", "Map White To", [0.5, 0.25, 1])]) },
{ id: "362-fx-tint-amount-37.5", steps: cat(TINT, [set1("L", "Amount to Tint", 37.5)]) },
{ id: "365-fx-tint-then-blur", steps: cat(TINT, [fx("L", "ADBE Gaussian Blur 2")]) },
{ id: "370-fx-ramp-start-1500-900", steps: cat(RAMP, [set1("L", "Start of Ramp", [1500, 900])]) },
{ id: "372-fx-ramp-startcolor-0.25-0.5-0.75", steps: cat(RAMP, [set1("L", "Start Color", [0.25, 0.5, 0.75])]) },
{ id: "373-fx-ramp-end-300-700", steps: cat(RAMP, [set1("L", "End of Ramp", [300, 700])]) },
{ id: "375-fx-ramp-endcolor-blue", steps: cat(RAMP, [set1("L", "End Color", [0, 0, 1])]) },
{ id: "376-fx-ramp-endcolor-0.1-0.9-0.3", steps: cat(RAMP, [set1("L", "End Color", [0.1, 0.9, 0.3])]) },
{ id: "379-fx-ramp-scatter-250.5", steps: cat(RAMP, [set1("L", "Ramp Scatter", 250.5)]) },
{ id: "381-fx-ramp-blend-100pct", steps: cat(RAMP, [set1("L", "Blend With Original", 1)]) },
{ id: "392-fx-exposure-master-m2.25", steps: cat(EXPO, [set1("L", "ADBE Exposure2-0003", -2.25)]) },
{ id: "409-fx-invert-default", steps: INVERT },
{ id: "412-fx-fastbox-default", steps: BOX },
{ id: "415-fx-fastbox-dimensions-2", steps: cat(BOX, [set1("L", "Blur Dimensions", 2)]) },
{ id: "417-fx-gaussian-default", steps: GAUSS },
{ id: "420-fx-dropshadow-default", steps: SHADOW },
{ id: "421-fx-dropshadow-color-red", steps: cat(SHADOW, [set1("L", "Shadow Color", [1, 0, 0])]) },
{ id: "423-fx-dropshadow-direction-45", steps: cat(SHADOW, [set1("L", "Direction", 45)]) },
{ id: "424-fx-dropshadow-distance-20", steps: cat(SHADOW, [set1("L", "Distance", 20)]) },
{ id: "425-fx-dropshadow-softness-10", steps: cat(SHADOW, [set1("L", "Softness", 10)]) },
{ id: "428-fx-glow-based-1", steps: cat(GLOW, [set1("L", "Glow Based On", 1)]) },
{ id: "430-fx-glow-radius-50", steps: cat(GLOW, [set1("L", "Glow Radius", 50)]) },
{ id: "431-fx-glow-intensity-2.5", steps: cat(GLOW, [set1("L", "Glow Intensity", 2.5)]) },
{ id: "432-fx-glow-composite-1", steps: cat(GLOW, [set1("L", "Composite Original", 1)]) },
{ id: "433-fx-glow-operation-2", steps: cat(GLOW, [set1("L", "Glow Operation", 2)]) },
{ id: "434-fx-glow-colors-2", steps: cat(GLOW, [set1("L", "Glow Colors", 2)]) },
{ id: "435-fx-glow-looping-1", steps: cat(GLOW, [set1("L", "Color Looping", 1)]) },
{ id: "436-fx-glow-loops-3", steps: cat(GLOW, [set1("L", "Color Loops", 3)]) },
{ id: "437-fx-glow-phase-90", steps: cat(GLOW, [set1("L", "Color Phase", 90)]) },
{ id: "439-fx-glow-colora-red", steps: cat(GLOW, [set1("L", "Color A", [1, 0, 0])]) },
{ id: "440-fx-glow-colorb-blue", steps: cat(GLOW, [set1("L", "Color B", [0, 0, 1])]) },
{ id: "441-fx-glow-dimensions-2", steps: cat(GLOW, [set1("L", "Glow Dimensions", 2)]) },
{ id: "443-fx-huesat-default", steps: HUESAT },
{ id: "445-fx-huesat-sat-50", steps: cat(HUESAT, [set1("L", "ADBE HUE SATURATION-0005", 50)]) },
{ id: "447-fx-huesat-colorize-on", steps: cat(HUESAT, [set1("L", "ADBE HUE SATURATION-0007", 1)]) },
{ id: "449-fx-huesat-colorizesat-60", steps: cat(HUESAT, [set1("L", "ADBE HUE SATURATION-0009", 60)]) },
{ id: "450-fx-huesat-colorizelight-20", steps: cat(HUESAT, [set1("L", "ADBE HUE SATURATION-0010", 20)]) },
{ id: "511-fx-levels-default", steps: LEVELS },
{ id: "513-fx-levels-inwhite-0.8", steps: cat(LEVELS, [set1("L", "Input White", 0.8)]) },
{ id: "515-fx-levels-outblack-0.2", steps: cat(LEVELS, [set1("L", "Output Black", 0.2)]) },
{ id: "522-fx-gaussian-default-on-M", base: "520", steps: [fx("M", "ADBE Gaussian Blur 2")] },
{ id: "523-fx-dropshadow-default-on-M", base: "520", steps: [fx("M", "ADBE Drop Shadow")] },
{ id: "524-fx-glow-default-on-M", base: "520", steps: [fx("M", "ADBE Glo2")] },
{ id: "525-fx-fastbox-20-on-M", base: "520", steps: [fx("M", "ADBE Box Blur2"), set1("M", "Blur Radius", 20)] },
{ id: "609-fx-tint-default-ref", steps: TINT },
{ id: "903-fx-33-effects-defaults-on-L", steps: (function () {
var m = ["ADBE Brightness & Contrast 2", "ADBE Turbulent Displace", "ADBE Fractal Noise", "ADBE Laser", "CC Radial Fast Blur", "ADBE Noise2", "ADBE Pro Levels2", "ADBE Corner Pin", "ADBE Grid", "ADBE Sharpen", "ADBE Linear Color Key2", "ADBE Radial Wipe", "ADBE Remove Color Matting", "CC Bend It", "CC Power Pin", "ADBE 4ColorGradient", "ADBE Change Color", "ADBE Extract", "ADBE Noise HLS2", "ADBE Scatter", "CC Light Sweep", "ADBE Compound Blur", "ADBE Displacement Map", "ADBE Set Matte3", "ADBE OFMotionBlur", "ADBE Stroke", "ADBE Gaussian Blur", "EXtractoR", "CC Glass", "CC Environment", "ADBE CurvesCustom", "ADBE MESH WARP", "ADBE Lumetri"];
var s = [];
for (var i = 0; i < m.length; i++) { s.push(fx("L", m[i])); }
return s;
})() }
];
// Size budget: the combined file holds only the PR fixtures (partition.txt, family effects).
// Set WITH_MORE = true to rebuild the full pilot (all 139 cases, effects-full.aep).
var WITH_MORE = false;
if (WITH_MORE) { for (var mi = 0; mi < MORE.length; mi++) { CASES.push(MORE[mi]); } }
// Case 905: comp from 000-base, L deleted; R = grey 1920x1080 solid with a default Gradient
// Ramp, video off, at the bottom; E01..E24 = steps.png layers (E24 on top), each with one
// effect. A layer parameter value "R" is R's index at the time of the set.
var E905 = [
["E01", "ADBE Brightness & Contrast 2", [["Brightness", 20], ["Contrast", 30]]],
["E02", "ADBE Turbulent Displace", [["Amount", 80], ["Size", 150], ["Complexity", 2], ["Evolution", 45], ["Random Seed", 3]]],
["E03", "ADBE Fractal Noise", [["Contrast", 150], ["Brightness", -10], ["Complexity", 4], ["Evolution", 90], ["Random Seed", 5], ["Opacity", 80]]],
["E04", "ADBE Laser", [["Starting Point", [200, 300]], ["Ending Point", [1700, 800]], ["Length", 0.6], ["Time", 0.4], ["Starting Thickness", 20], ["Ending Thickness", 40], ["Softness", 0.3], ["Inside Color", [1, 1, 0]], ["Outside Color", [0, 0, 1]]]],
["E05", "CC Radial Fast Blur", [["Center", [700, 400]], ["Amount", 70], ["Zoom", 2]]],
["E06", "ADBE Noise2", [["Amount of Noise", 30]]],
["E07", "ADBE Pro Levels2", [["Input Black", 0.1], ["Input White", 0.9], ["Gamma", 1.5], ["Output Black", 0.05], ["Output White", 0.95], ["Red Gamma", 0.8], ["Green Input White", 0.8], ["Blue Output Black", 0.2]]],
["E08", "ADBE Corner Pin", [["Upper Left", [100, 50]], ["Upper Right", [1800, 100]], ["Lower Left", [50, 1000]], ["Lower Right", [1850, 1050]]]],
["E09", "ADBE Grid", [["Anchor", [100, 100]], ["Width", 100], ["Height", 80], ["Border", 4], ["Color", [0, 1, 0]], ["Opacity", 70]]],
["E10", "ADBE Sharpen", [["Sharpen Amount", 50]]],
["E11", "ADBE Linear Color Key2", [["Key Color", [0, 0, 1]], ["Matching Tolerance", 20], ["Matching Softness", 15]]],
["E12", "ADBE Radial Wipe", [["Transition Completion", 40], ["Start Angle", 30], ["Wipe Center", [800, 500]], ["Wipe", 2], ["Feather", 20]]],
["E13", "ADBE Remove Color Matting", [["Background Color", [1, 1, 1]]]],
["E14", "CC Bend It", [["Bend", 30], ["Start", [960, 200]], ["End", [960, 900]]]],
["E15", "CC Power Pin", [["Top Left", [200, 100]], ["Top Right", [1700, 50]], ["Bottom Left", [100, 1000]], ["Bottom Right", [1800, 950]]]],
["E16", "ADBE 4ColorGradient", [["Point 1", [300, 200]], ["Color 1", [1, 0, 0]], ["Point 2", [1600, 250]], ["Color 2", [0, 1, 0]], ["Point 3", [250, 900]], ["Color 3", [0, 0, 1]], ["Point 4", [1700, 850]], ["Color 4", [1, 1, 0]], ["Blend", 50], ["Opacity", 80]]],
["E17", "ADBE Change Color", [["Hue Transform", 90], ["Color To Change", [0, 0, 1]], ["Matching Tolerance", 30]]],
["E18", "ADBE Extract", [["Black Point", 30], ["White Point", 220], ["Black Softness", 10]]],
["E19", "ADBE Noise HLS2", [["Hue", 20], ["Lightness", 10], ["Saturation", 30]]],
["E20", "ADBE Scatter", [["Scatter Amount", 20]]],
["E21", "CC Light Sweep", [["Center", [800, 500]], ["Direction", 20], ["Width", 80], ["Sweep Intensity", 60], ["Edge Intensity", 100], ["Light Color", [1, 0.5, 0]]]],
["E22", "ADBE Compound Blur", [["Blur Layer", "R"], ["Maximum Blur", 10]]],
["E23", "ADBE Displacement Map", [["Displacement Map Layer", "R"], ["Max Horizontal Displacement", 20], ["Max Vertical Displacement", 10]]],
["E24", "ADBE Set Matte3", [["Take Matte From Layer", "R"], ["Use For Matte", 5]]]
];
function steps905() {
var s = [["solid", "R", [0.5, 0.5, 0.5], 1920, 1080], fx("R", "ADBE Ramp"), ["video", "R", false], ["delete", "L"]];
for (var i = 0; i < E905.length; i++) {
var e = E905[i];
s.push(["footage", e[0]]);
s.push(fx(e[0], e[1]));
for (var j = 0; j < e[2].length; j++) {
var v = e[2][j][1];
if (v === "R") { v = i + 2; } // E01..E(i+1) above R
s.push(set1(e[0], e[2][j][0], v));
}
}
return s;
}
CASES.push({ id: "905-fx-24-effects-set-one-comp", steps: steps905(), footage: true });
// Numeric case order (so the at-defaults case of each effect type comes first, see above).
CASES.sort(function (a, b) { return a.id < b.id ? -1 : (a.id > b.id ? 1 : 0); });
// Template comps (cases of their own): the base, and the base + M of 520.
var BASE = "000-base";
var BASE_M = "520-solid-M-grey-960x540";
// ---------------------------------------------------------------- ExtendScript runner
function findComp(name) {
for (var i = 1; i <= app.project.numItems; i++) {
var it = app.project.item(i);
if (it instanceof CompItem && it.name === name) { return it; }
}
return null;
}
function effectParam(eff, prop) {
var p = null;
try { p = eff.property(prop); } catch (e) { p = null; }
if (p === null) { throw new Error("no parameter " + prop + " on " + eff.matchName); }
return p;
}
function runStep(comp, st, steps) {
var op = st[0];
var layer, eff, p;
if (op === "fx") {
eff = comp.layer(st[1]).property("ADBE Effect Parade").addProperty(st[2]);
if (st.length > 3) { eff.name = st[3]; }
} else if (op === "set" || op === "key" || op === "expr") {
eff = comp.layer(st[1]).property("ADBE Effect Parade").property(st[2]); // index or match name
p = effectParam(eff, st[3]);
if (op === "set") { p.setValue(st[4]); }
else if (op === "key") { p.setValueAtTime(st[4], st[5]); }
else { p.expression = st[4]; }
} else if (op === "eval") {
comp.layer(st[1]).property("ADBE Effect Parade").property(st[2]).property(st[3]).valueAtTime(st[4], false);
} else if (op === "move") {
comp.layer(st[1]).property("ADBE Effect Parade").property(st[2]).moveTo(st[3]);
} else if (op === "items") {
eff = comp.layer(st[1]).property("ADBE Effect Parade").property(st[2]);
eff.property(1).setPropertyParameters(st[3]);
} else if (op === "solid") {
layer = comp.layers.addSolid(st[2], st[1], st[3], st[4], 1);
} else if (op === "null") {
layer = comp.layers.addNull();
layer.name = st[1];
} else if (op === "footage") {
layer = comp.layers.add(steps);
layer.name = st[1];
} else if (op === "delete") {
comp.layer(st[1]).remove();
} else if (op === "video") {
comp.layer(st[1]).enabled = st[2];
} else {
throw new Error("unknown step " + op);
}
}
function main() {
app.project.close(CloseOptions.DO_NOT_SAVE_CHANGES);
app.open(new File(EMPTY_AEP));
var base = app.project.items.addComp(BASE, 1920, 1080, 1, 5, 25);
base.bgColor = [0, 0, 0];
base.layers.addSolid([1, 0, 0], "L", 1920, 1080, 1);
var baseM = base.duplicate();
baseM.name = BASE_M;
baseM.layers.addSolid([0.5, 0.5, 0.5], "M", 960, 540, 1);
var steps = null;
for (var i = 0; i < CASES.length; i++) {
var c = CASES[i];
if (c.footage && steps === null) {
steps = app.project.importFile(new ImportOptions(new File(STEPS_PNG)));
}
var comp = (c.base === "520" ? baseM : base).duplicate();
comp.name = c.id;
for (var j = 0; j < c.steps.length; j++) {
runStep(comp, c.steps[j], steps);
}
}
app.project.save(new File(OUT_AEP));
return CASES.length + 2;
}
if (typeof EC_DATA_ONLY === "undefined") {
main();
}
+37
View File
@@ -0,0 +1,37 @@
// fam-common.jsx - shared helpers of the combined family generators (3d, footage-precomp,
// markers, settings). ES3 data only: every family file defines PROJECTS, a list of
// { out: "<file>.aep", settings: {...} | null, setup: [op...], cases: [{ id, steps: [op...] }] }
// where an op is an After Effects MCP atomic operation { operation, args } (ae_do / batch.run).
// In case steps the comp name "$" stands for the case comp; a value "@key" stands for the
// project item id that the setup op tagged with `key` (an import or a helper comp), filled in by
// fam-to-mcp.js from the setup batch's results. Every case comp starts as a duplicate of the
// base comp "000-base" (comp C of synthetic/000-base.aep: 1920x1080, 25 fps, 5 s, black, one red
// 1920x1080 solid "L"), so the importer's result for the old fixture's comp C must equal the case
// comp here.
var MEDIA = "<corpus>/synthetic/";
var BASE = "000-base";
function op(operation, args) { return { operation: operation, args: args }; }
// The template comp, exactly as the pilot (effects.jsx / to-mcp.js) builds it.
function baseTemplate() {
return [
op("comp.create", { name: BASE, width: 1920, height: 1080, fps: 25, duration: 5, bgColor: [0, 0, 0] }),
op("layer.create_solid", { comp: BASE, name: "L", color: [1, 0, 0], width: 1920, height: 1080 })
];
}
// A tagged setup op: its result's item id is bound to `key`.
function tag(key, o) { o.tag = key; return o; }
function imp(key, rel, extra) {
var a = { path: MEDIA + rel };
if (extra) for (var k in extra) a[k] = extra[k];
return tag(key, op("project.import_file", a));
}
function setp(layer, path, value) { return op("property.set", { comp: "$", layer: layer, property: path, value: value }); }
function getp(layer, path, t) { return op("property.get", { comp: "$", layer: layer, property: path, time: t }); }
function props(layer, p) { return op("layer.set_props", { comp: "$", layer: layer, props: p }); }
function footage(key, name) {
var a = { comp: "$", sourceItemId: "@" + key };
if (name) a.name = name;
return op("layer.create_footage", a);
}
+78
View File
@@ -0,0 +1,78 @@
// Turns a family table (3d.jsx, footage-precomp.jsx, markers.jsx, settings.jsx; helpers in
// fam-common.jsx) into After Effects MCP batch.run operation lists (eval.run is disabled on the MCP).
//
// Usage:
// node fam-to-mcp.js <family> setup -> ops-<family>/<out>.setup.json per project
// node fam-to-mcp.js <family> cases <out> [ids] -> ops-<family>/<out>.cases-NN.json
// `ids` is a JSON file { key: itemId } with the ids the tagged setup ops returned (imports,
// helper comps); it is only needed when a case refers to "@key".
//
// Run sequence per project (instance.dialogs empty):
// 1. ae_save_project path <corpus>/scratch-close.aep
// 2. project.open <corpus>/combined/gen/empty-work.aep (copy of 001-empty.aep)
// 3. batch.run <out>.setup.json; write the tagged ids into ids-<out>.json
// 4. node fam-to-mcp.js <family> cases <out> ids-<out>.json; batch.run each cases-NN.json
// (check failed == 0)
// 5. ae_save_project path <corpus>/combined/raw/<out>; scrub.py -> combined/<out>
var fs = require("fs");
var path = require("path");
var family = process.argv[2];
var mode = process.argv[3];
var src = fs.readFileSync(path.join(__dirname, "fam-common.jsx"), "utf8") + "\n" + fs.readFileSync(path.join(__dirname, family + ".jsx"), "utf8");
eval(src); // our own generator files (trusted, local): define PROJECTS and the helpers
var outDir = path.join(__dirname, "ops-" + family);
fs.mkdirSync(outDir, { recursive: true });
function clone(v) { return JSON.parse(JSON.stringify(v)); }
function subst(v, comp, ids) {
if (typeof v === "string") {
if (v === "$") return comp;
if (v.charAt(0) === "@" && v.length > 1) {
var k = v.slice(1);
if (!(k in ids)) throw new Error("no id for " + v);
return ids[k];
}
return v;
}
if (Array.isArray(v)) return v.map(function (x) { return subst(x, comp, ids); });
if (v && typeof v === "object") {
var o = {};
for (var key in v) o[key] = subst(v[key], comp, ids);
return o;
}
return v;
}
if (mode === "setup") {
PROJECTS.forEach(function (p) {
// Settings first (right after the base template), so footage is imported under them.
var setup = p.setup.slice(0, 2);
if (p.settings) setup.push({ operation: "project.set_settings", args: p.settings });
setup = setup.concat(p.setup.slice(2));
var ops = setup.map(function (o) { var c = clone(o); delete c.tag; return c; });
ops.push({ operation: "project.get_settings", args: {} });
var tags = setup.map(function (o, i) { return o.tag ? i + ":" + o.tag : null; }).filter(Boolean);
fs.writeFileSync(path.join(outDir, p.out + ".setup.json"), JSON.stringify(ops));
console.log(p.out, "setup ops", ops.length, "tags (result index:key)", tags.join(" "));
});
} else if (mode === "cases") {
var out = process.argv[4];
var ids = process.argv[5] ? JSON.parse(fs.readFileSync(process.argv[5], "utf8")) : {};
var p = PROJECTS.filter(function (x) { return x.out === out; })[0];
if (!p) throw new Error("no project " + out);
var PER = 12, n = 1, cur = [], count = 0;
var flush = function () {
if (!cur.length) return;
fs.writeFileSync(path.join(outDir, out + ".cases-" + (n < 10 ? "0" : "") + n + ".json"), JSON.stringify(cur));
n++; cur = []; count = 0;
};
p.cases.forEach(function (c) {
cur.push({ operation: "comp.duplicate", args: { comp: BASE, newName: c.id } });
c.steps.forEach(function (s) { cur.push(subst(clone(s), c.id, ids)); });
if (++count >= PER) flush();
});
flush();
console.log(out, "case batches", n - 1, "cases", p.cases.length);
} else {
throw new Error("usage: node fam-to-mcp.js <family> setup|cases <out> [ids.json]");
}
+44
View File
@@ -0,0 +1,44 @@
// footage-precomp.jsx - combined fixture of the footage-precomp family (stills, sequences, clips,
// PSD/AI/EPS, precomps, time remap): one comp per case of partition.txt, recipes from
// synthetic/MANIFEST.md. Footage items are imported once and shared by the cases (pilot lesson
// 4: layer sources are compared by what they are). Needs fam-common.jsx.
function precompose() { return op("comp.precompose", { comp: "$", layerIndices: [1], newName: "Pre", moveAll: true }); }
var PROJECTS = [{
out: "footage-precomp.aep",
settings: null,
setup: baseTemplate().concat([
imp("png8", "test8x8.png"),
imp("wav", "test-tone.wav"),
imp("seq", "test-seq/seq_001.png", { sequence: true }),
imp("exrseq", "test-media/exrseq/shot_0101.exr", { sequence: true }),
imp("mp4", "test-media/clip.mp4"),
imp("tga", "test-media/still.tga"),
imp("psd", "test-media/still.psd", { importAs: "footage" }),
imp("ai", "test-media/still.ai", { importAs: "footage" }),
imp("eps", "test-media/still.eps"),
// 600/601: P30 (640x360, 30 fps, 3 s, green solid G640) and Q (320x240, 25 fps, 2 s, blue B320)
tag("P30", op("comp.create", { name: "P30", width: 640, height: 360, fps: 30, duration: 3, bgColor: [0, 0, 0] })),
op("layer.create_solid", { comp: "P30", name: "G640", color: [0, 1, 0], width: 640, height: 360 }),
tag("Q", op("comp.create", { name: "Q", width: 320, height: 240, fps: 25, duration: 2, bgColor: [0, 0, 0] })),
op("layer.create_solid", { comp: "Q", name: "B320", color: [0, 0, 1], width: 320, height: 240 })
]),
cases: [
{ id: "124-precomp-Pre", steps: [precompose()] },
{ id: "126-footage-png-layer", steps: [footage("png8", "png")] },
{ id: "319-precomp-timeremap", steps: [precompose(), props("Pre", { timeRemapEnabled: true })] },
// item only: the comp is the base, the item is checked at project level
{ id: "350-footage-wav-imported", steps: [] },
{ id: "351-footage-wav-as-layer", steps: [footage("wav")] },
{ id: "352-footage-pngseq-imported", steps: [] },
{ id: "354-footage-pngseq-timeremap", steps: [footage("seq"), props(1, { timeRemapEnabled: true })] },
{ id: "601-precomp-two-comps-in-C", steps: [footage("P30"), footage("Q")] },
{ id: "603-footage-exrseq-0101-as-layer", steps: [footage("exrseq")] },
{ id: "645-footage-mp4-conform-30", steps: [footage("mp4"), op("footage.interpret", { item: "@mp4", conformFrameRate: 30 })] },
{ id: "650-footage-tga-still-as-layer", steps: [footage("tga")] },
{ id: "651-footage-psd-flat-as-layer", steps: [footage("psd")] },
{ id: "652-footage-ai-as-layer", steps: [footage("ai")] },
{ id: "653-footage-eps-as-layer", steps: [footage("eps")] }
]
}];
+107
View File
@@ -0,0 +1,107 @@
"""Independent inspection of saved .aep / .aepx files for embedded colour profiles and private strings.
python -I inspect-embedded.py <dir-or-file>... [--forbid TEXT]...
It does not trust any cleanup tool: it looks at the final bytes, in four representations.
raw every ICC header ("acsp" at offset 36 of a profile) in the bytes of the file
base64 every long base64 run, decoded, searched for an ICC header
hex every long hex run (the .aepx `bdata="..."` attributes), decoded, searched the same way
strings vendor strings of well-known profiles (a stub keeps only the profile name, e.g. "sRGB IEC61966-2.1"), and every --forbid text (case-insensitive)
For each profile found it prints the size and its `desc` text. A file is reported CLEAN when every
profile found is a description-only stub (128-byte header, one tag, no colour data).
"""
import base64
import binascii
import re
import sys
VENDOR = [b"Hewlett", b"Hewlett-Packard", b"Adobe RGB", b"Apple Computer", b"Copyright (c)"]
def be32(d, at):
return int.from_bytes(d[at:at + 4], "big") if len(d) >= at + 4 else None
def icc_at(d, start):
"""(size, tag count, description) of a profile whose header starts at `start`, or None."""
if d[start + 36:start + 40] != b"acsp":
return None
size = be32(d, start) or 0
count = be32(d, start + 128) or 0
desc = ""
for i in range(min(count, 64)):
e = start + 132 + 12 * i
if d[e:e + 4] == b"desc":
off, ln = be32(d, e + 4), be32(d, e + 8)
body = d[start + off:start + off + ln]
if body[:4] == b"desc":
desc = body[12:12 + (be32(body, 8) or 0)].split(b"\0")[0].decode("latin-1")
elif body[:4] == b"mluc":
n, at = be32(body, 20), be32(body, 24)
desc = body[at:at + n].decode("utf-16-be", "replace")
return size, count, desc
def find_profiles(d, where):
out = []
i = d.find(b"acsp")
while i != -1:
if i >= 36:
p = icc_at(d, i - 36)
if p:
out.append((where, i - 36) + p)
i = d.find(b"acsp", i + 1)
return out
def inspect(path, forbid):
d = open(path, "rb").read()
found = find_profiles(d, "raw")
for m in re.finditer(rb"[A-Za-z0-9+/]{200,}={0,2}", d):
try:
b = base64.b64decode(m.group() + b"=" * (-len(m.group()) % 4))
except binascii.Error:
continue
found += find_profiles(b, "base64@%d" % m.start())
for m in re.finditer(rb"[0-9a-fA-F]{400,}", d):
h = m.group()
try:
b = binascii.unhexlify(h[: len(h) // 2 * 2])
except binascii.Error:
continue
found += find_profiles(b, "hex@%d" % m.start())
low = d.lower()
strings = [v.decode() for v in VENDOR if v.lower() in low]
# the same strings inside decoded base64 / hex runs
for m in re.finditer(rb"[A-Za-z0-9+/]{200,}={0,2}", d):
try:
b = base64.b64decode(m.group() + b"=" * (-len(m.group()) % 4)).lower()
except binascii.Error:
continue
strings += ["%s (base64)" % v.decode() for v in VENDOR if v.lower() in b]
bad = [t for t in forbid if t.lower().encode() in low or t.lower().encode("utf-16-le") in low]
stubs = all(p[2] <= 600 and p[3] == 1 for p in found)
print("%-28s %s profiles=%d %s%s%s" % (
path.rsplit("/", 1)[-1].rsplit("\\", 1)[-1],
"CLEAN" if stubs and not strings and not bad else "CHECK",
len(found),
["%s %dB tags=%d desc=%r" % (p[0], p[2], p[3], p[4]) for p in found],
(" vendor-strings=%s" % strings) if strings else "",
(" forbidden=%s" % bad) if bad else "",
))
return stubs and not strings and not bad
if __name__ == "__main__":
import os
args, forbid, files = sys.argv[1:], [], []
while args:
a = args.pop(0)
if a == "--forbid":
forbid.append(args.pop(0))
elif os.path.isdir(a):
files += sorted(os.path.join(a, f) for f in os.listdir(a) if f.endswith((".aep", ".aepx", ".ffx")))
else:
files.append(a)
ok = all([inspect(f, forbid) for f in files])
sys.exit(0 if ok else 1)
+107
View File
@@ -0,0 +1,107 @@
// keyframes.jsx - the case table of the combined KEYFRAMES fixture project.
//
// One composition per case of the synthetic corpus (MANIFEST.md group D, the batch 2/3 key,
// ease, expression and time-stretch cases), named exactly like the case's single-change fixture
// (e.g. "058-key-opacity-2key"). Every case comp is a duplicate of the base comp "000-base"
// (comp C of 000-base: 1920x1080, 25 fps, 5 s, black, one red 1920x1080 solid "L") plus that
// case's change and its FROM chain (051 -> 052..055, 055 -> 056/057, 981 -> 982 -> 983).
//
// Same vocabulary and emitter as layers-comps.jsx: each step is [operation, args] of the After
// Effects MCP, `comp` is filled in. Key times are what the MCP's keyframe ops take (comp time;
// AE stores layer time, so the stretched cases land where the old fixtures have them).
// A keyed multi-dimensional property is read once (property.get) before the save: AE writes the
// first key's speed only after an evaluation (pilot lesson 3). Not for the linear colour keys of
// 210 and 598: their old fixtures were saved unevaluated (first key speed 0), and a read writes
// a speed there. 307 (bezier colour keys) was read in its recipe, so it keeps its read.
// Run: node keyframes.jsx <outdir>; then the sequence of layers-comps.jsx (no footage).
var LC = require("./layers-comps.jsx");
var BASE = LC.BASE;
var POS = ["Transform", "Position"];
var OPA = ["Transform", "Opacity"];
var SCA = ["Transform", "Scale"];
var ANC = ["Transform", "Anchor Point"];
function key(prop, t, v, layer) { return ["keyframe.add", { layer: layer || "L", property: prop, time: t, value: v }]; }
function get(prop, t, layer) { return ["property.get", { layer: layer || "L", property: prop, time: t }]; }
function ease(prop, k, a) { a.layer = "L"; a.property = prop; a.keyIndex = k; return ["keyframe.set_easing", a]; }
function interp(prop, k, a, layer) { a.layer = layer || "L"; a.property = prop; a.keyIndex = k; return ["keyframe.set_interpolation", a]; }
function timing(a) { a.layer = "L"; return ["layer.set_timing", a]; }
function cat() { var r = []; for (var i = 0; i < arguments.length; i++) r = r.concat(arguments[i]); return r; }
// keyframe.apply with an out ease on key 1 and an in ease on key 2 (597, 598, 730)
function applyEase(prop, layer, v0, v1) {
return ["keyframe.apply", { layer: layer, property: prop, interp: "ease", keys: [
{ time: 0, value: v0, outSpeed: 50, outInfluence: 40 },
{ time: 2, value: v1, inSpeed: 30, inInfluence: 60 }] }];
}
var K051 = [key(POS, 0, [0, 0, 0]), key(POS, 1, [100, 0, 0])];
var K055 = cat(K051, [key(POS, 2.5, [200, 100, 0])]);
var POSKEYS = [key(POS, 0, [0, 0, 0]), key(POS, 1, [100, 0, 0])]; // 202-204
var OPAKEYS = [key(OPA, 0, 0), key(OPA, 2, 100)];
var GETPOS = [get(POS, 0.5)];
var FILL = ["Effects", "Fill", "Color"];
var K641 = [key(POS, 1, [100, 100, 0]), key(POS, 2, [500, 300, 0]), get(POS, 1.5)];
var K643 = [key(POS, 2, [100, 100, 0]), key(POS, 3, [500, 300, 0]), get(POS, 2.5)];
var K982 = [timing({ stretch: -100 }), timing({ startTime: 5 }), key(OPA, 0, 100), key(OPA, 4, 20)];
var CASES = [
{ id: "018-layer-stretch200", steps: [timing({ stretch: 200 })] },
{ id: "052-key-position-2key-ease", steps: cat(K051, [ease(POS, 1, { preset: "ease" }), ease(POS, 2, { preset: "ease" })], GETPOS) },
{ id: "053-key-position-2key-hold-key1", steps: cat(K051, [interp(POS, 1, { inType: "hold", outType: "hold" })], GETPOS) },
{ id: "054-key-position-2key-spatial-bezier", steps: cat(K051, [
["keyframe.set_spatial", { layer: "L", property: POS, keyIndex: 1, outTangent: [30, 60, 0], autoBezier: false, continuous: false }],
["keyframe.set_spatial", { layer: "L", property: POS, keyIndex: 2, inTangent: [-30, -60, 0], autoBezier: false, continuous: false }]],
[get(POS, 0.25)]) },
{ id: "055-key-position-3key-inserted-t2.5", steps: cat(K055, GETPOS) },
{ id: "056-key-position-3key-roving-key2", steps: cat(K055, [["keyframe.set_roving", { layer: "L", property: POS, keyIndex: 2, roving: true }]], GETPOS) },
{ id: "057-key-position-3key-label9-key2", steps: cat(K055, [["keyframe.set_label", { layer: "L", property: POS, keyIndex: 2, label: 9 }]], GETPOS) },
{ id: "058-key-opacity-2key", steps: OPAKEYS },
{ id: "060-expr-opacity-wiggle", steps: [["expression.set", { layer: "L", property: OPA, expression: "wiggle(1,10)" }]] },
{ id: "202-key-out-hold-in-linear", steps: cat(POSKEYS, [interp(POS, 1, { inType: "linear", outType: "hold" })], GETPOS) },
{ id: "203-key-in-hold-out-linear", steps: cat(POSKEYS, [interp(POS, 1, { inType: "hold", outType: "linear" })], GETPOS) },
{ id: "204-key-ease-asymmetric", steps: cat(POSKEYS, [
ease(POS, 1, { inSpeed: 5, inInfluence: 20, outSpeed: 50, outInfluence: 80 }),
ease(POS, 2, { inSpeed: 7, inInfluence: 60, outSpeed: 9, outInfluence: 40 })], GETPOS) },
{ id: "205-key-opacity-ease-asymmetric", steps: cat(OPAKEYS, [
ease(OPA, 1, { inSpeed: 5, inInfluence: 20, outSpeed: 20, outInfluence: 80 }),
ease(OPA, 2, { inSpeed: 30, inInfluence: 60, outSpeed: 9, outInfluence: 40 })]) },
{ id: "206-key-scale-2key-linear", steps: [key(SCA, 0, [100, 100, 100]), key(SCA, 1, [200, 150, 100]), get(SCA, 0.5)] },
{ id: "210-key-fill-color-2key-linear", steps: [["effect.add", { layer: "L", matchName: "ADBE Fill" }],
["effect.set_property", { layer: "L", effectIndex: 1, property: ["Color"], value: [1, 0, 0], time: 0 }],
["effect.set_property", { layer: "L", effectIndex: 1, property: ["Color"], value: [0, 0.5, 1], time: 1 }]] },
{ id: "213-expr-opacity-wiggle-disabled", steps: [["expression.set", { layer: "L", property: OPA, expression: "wiggle(1,10)" }], ["expression.disable_all", {}]] },
{ id: "305-key-scale-bezier-ease", steps: [key(SCA, 0, [100, 100, 100]), key(SCA, 2, [200, 150, 100]),
["keyframe.set_easing", { layer: "L", property: SCA, keyIndex: 1, inSpeed: 0, inInfluence: 33, outSpeed: 20, outInfluence: 66 }],
["keyframe.set_easing", { layer: "L", property: SCA, keyIndex: 2, inSpeed: 10, inInfluence: 66, outSpeed: 0, outInfluence: 33 }],
get(SCA, 1)] },
{ id: "307-key-fillcolor-bezier", steps: [["effect.add", { layer: "L", matchName: "ADBE Fill" }],
["effect.set_property", { layer: "L", effectIndex: 1, property: ["Color"], value: [1, 0, 0, 1], time: 0 }],
["effect.set_property", { layer: "L", effectIndex: 1, property: ["Color"], value: [0, 0, 1, 1], time: 2 }],
get(FILL, 1),
interp(FILL, 1, { inType: "bezier", outType: "bezier", temporalContinuous: false, temporalAutoBezier: false }),
interp(FILL, 2, { inType: "bezier", outType: "bezier", temporalContinuous: false, temporalAutoBezier: false })] },
{ id: "316-layer-stretch50", steps: [timing({ stretch: 50 })] },
{ id: "317-layer-stretch150", steps: [timing({ stretch: 150 })] },
{ id: "597-key-anchor-ease-out50-40-in30-60", steps: [applyEase(ANC, "L", [960, 540], [1160, 640]), get(ANC, 1)] },
{ id: "598-key-ramp-point-ease-color-bezier", steps: [["effect.add", { layer: "L", matchName: "ADBE Ramp" }],
applyEase(["Effects", "Gradient Ramp", "Start of Ramp"], "L", [100, 200], [500, 400]),
get(["Effects", "Gradient Ramp", "Start of Ramp"], 1),
key(["Effects", "Gradient Ramp", "Start Color"], 0, [1, 0, 0]),
key(["Effects", "Gradient Ramp", "Start Color"], 2, [0, 0, 1]),
interp(["Effects", "Gradient Ramp", "Start Color"], 1, { inType: "bezier", outType: "bezier" }),
interp(["Effects", "Gradient Ramp", "Start Color"], 2, { inType: "bezier", outType: "bezier" })] },
{ id: "641-stretch-200-keys-position-1s-2s", steps: cat([timing({ stretch: 200 })], K641) },
{ id: "642-stretch-50-keys-position-1s-2s", steps: cat([timing({ stretch: 50 })], K641) },
{ id: "643-stretch-200-start-1-keys-position-2s-3s", steps: cat([timing({ startTime: 1, stretch: 200 })], K643) },
{ id: "730-key-anchor-ease-on-400x800-solid", steps: [["layer.create_solid", { name: "P", color: [0, 0, 1], width: 400, height: 800 }],
applyEase(ANC, "P", [200, 400], [300, 500]), get(ANC, 1, "P")] },
{ id: "981-layer-stretch-minus100-start5", steps: [timing({ stretch: -100 }), timing({ startTime: 5 })] },
{ id: "982-layer-stretch-minus100-opacity-keys", steps: K982 },
{ id: "983-layer-stretch-minus50-opacity-keys", steps: cat(K982, [timing({ stretch: -50 })]) }
];
if (require.main === module) {
LC.emit(CASES, LC.TEMPLATE, BASE, process.argv[2] || "ops-keyframes", null, 16);
}
module.exports = { CASES: CASES };
+25
View File
@@ -0,0 +1,25 @@
# Fixture hygiene for the combined .aepx pair (aepx-pair.aepx): the XMP packet (CDATA of
# ProjectXMPMetadata) replaced by the base project's packet, as scrub.py does for the .aep, so
# that the .aep and .aepx of the pair carry the same trailer.
# Usage: layers-comps-scrub-aepx.py <in.aepx> <out.aepx> <000-base.aep>
import sys, zlib
src, dst, base_path = sys.argv[1], sys.argv[2], sys.argv[3]
d = open(src, 'rb').read()
base = open(base_path, 'rb').read()
at = base.find(b'<?xpacket begin')
assert at >= 0, 'the base project has no XMP packet'
packet = base[at:]
tag = b'<ProjectXMPMetadata><![CDATA['
start = d.find(tag)
assert start >= 0
start += len(tag)
end = d.find(b']]></ProjectXMPMetadata>', start)
assert end > start
out = d[:start] + packet + d[end:]
# Local folder and machine names that must not remain (comma-separated, from the environment so
# that they are not written here): e.g. SCRUB_FORBID=<folder name>,<host name prefix>.
import os
for bad in [w.encode() for w in os.environ.get('SCRUB_FORBID', '').split(',') if w]:
assert bad not in out, bad
open(dst, 'wb').write(out)
print('raw', len(out), 'zlib', len(zlib.compress(out, 9)))
+173
View File
@@ -0,0 +1,173 @@
// layers-comps.jsx - the case table of the combined LAYERS-COMPS fixture project.
//
// One composition per case of the synthetic corpus (MANIFEST.md groups A, B, C and the layer /
// comp header, anchor, matte and blend-mode cases), named exactly like the case's single-change
// fixture (e.g. "016-layer-blend-multiply"). Every case comp is a duplicate of the base comp
// "000-base" (comp C of 000-base: 1920x1080, 25 fps, 5 s, black, one red 1920x1080 solid "L")
// plus that case's change (and its FROM chain), so the importer's result for the old fixture's
// comp C must equal the case comp here.
//
// The table is in the vocabulary of the After Effects MCP (`eval.run` is disabled there): each
// step is [operation, args]; `comp` is filled in with the case comp. `$STEPS` in an args value
// is replaced by the item id of the imported steps.png footage (case 906).
// Also holds the .aep/.aepx pair table (PAIR, below) and the emitter keyframes.jsx uses.
// Run: node layers-comps.jsx <outdir> [stepsItemId] -> <outdir>/batch-00.json (template),
// batch-NN.json (cases), footage-906.json (needs the steps.png item id).
// Sequence: save the dirty project to scratch-close.aep, project.open
// gen/empty-work.aep (copy of 001-empty.aep), batch-00, batch-01..NN, project.import_file
// test-media/steps.png -> id N, rerun with N, footage-906.json, Save As layers-comps.aep, then
// scrub.py (footage path, host name, XMP):
// python -I gen/scrub.py layers-comps.aep layers-comps-scrubbed.aep <fixtures>/000-base.aep
// The pair: Save As aepx-pair.aep, then at once Save As aepx-pair.aepx, then
// python -I gen/scrub.py aepx-pair.aep aepx-pair-scrubbed.aep <fixtures>/000-base.aep
// python -I gen/layers-comps-scrub-aepx.py aepx-pair.aepx aepx-pair-scrubbed.aepx <fixtures>/000-base.aep
// (the .aepx scrub puts the base XMP packet into the ProjectXMPMetadata CDATA, so both halves
// carry the same trailer). The *-scrubbed files are the fixtures; the raw saves keep real paths.
var STEPS_PNG = "<corpus>/synthetic/test-media/steps.png";
var BASE = "000-base";
function sp(props) { return ["layer.set_props", { layer: "L", props: props }]; }
function cp(props) { return ["comp.set_props", { props: props }]; }
function timing(a) { a.layer = "L"; return ["layer.set_timing", a]; }
function blend(mode) { return ["layer.set_blend_mode", { layer: "L", mode: mode }]; }
function tr(a) { a.layer = a.layer || "L"; return ["transform.set", a]; }
function solid(name, color, w, h) { return ["layer.create_solid", { name: name, color: color, width: w, height: h }]; }
var M = solid("M", [0.5, 0.5, 0.5], 960, 540); // 402: grey 960x540 on top, the base of 403-408
function matte(layer, matteLayer, type) { return ["layer.set_track_matte", { layer: layer, matteLayer: matteLayer, matteType: type }]; }
var CASES = [
{ id: "010-layer-name", steps: [sp({ name: "Renamed" })] },
{ id: "012-layer-shy", steps: [sp({ shy: true })] },
{ id: "013-layer-locked", steps: [sp({ locked: true })] },
{ id: "014-layer-solo", steps: [sp({ solo: true })] },
{ id: "016-layer-blend-multiply", steps: [blend("multiply")] },
{ id: "017-layer-motionblur", steps: [sp({ motionBlur: true })] },
{ id: "019-layer-inpoint1", steps: [timing({ inPoint: 1 })] },
{ id: "021-layer-starttime0.5", steps: [timing({ startTime: 0.5 })] },
{ id: "022-layer-parent-null", steps: [["layer.create_null", { name: "Null" }], ["layer.set_parent", { layer: "L", parentLayer: 1 }]] },
{ id: "023-layer-quality-draft", steps: [sp({ quality: "draft" })] },
{ id: "024-layer-collapse", steps: [sp({ collapseTransformation: true })] },
{ id: "025-layer-adjustment", steps: [sp({ adjustmentLayer: true })] },
{ id: "026-layer-guide", steps: [sp({ guideLayer: true })] },
{ id: "030-comp-size-1280x720", steps: [cp({ width: 1280, height: 720 })] },
{ id: "031-comp-fps30", steps: [cp({ frameRate: 30 })] },
{ id: "032-comp-duration10", steps: [cp({ duration: 10 })] },
{ id: "033-comp-bg-green", steps: [cp({ bgColor: [0, 1, 0] })] },
{ id: "034-comp-shutter90", steps: [cp({ shutterAngle: 90 })] },
{ id: "035-comp-workarea-1-2", steps: [["comp.set_work_area", { start: 1, duration: 2 }]] },
{ id: "037-comp-pixelaspect2", steps: [cp({ pixelAspect: 2 })] },
{ id: "038-comp-motionblur", steps: [cp({ motionBlur: true })] },
{ id: "040-static-position-100-200", steps: [tr({ position: [100, 200, 0] })] },
{ id: "041-static-scale-50", steps: [tr({ scale: [50, 50, 100] })] },
{ id: "042-static-rotation-45", steps: [tr({ rotation: 45 })] },
{ id: "043-static-opacity-25", steps: [tr({ opacity: 25 })] },
{ id: "044-static-anchor-10-20", steps: [tr({ anchorPoint: [10, 20, 0] })] },
{ id: "211-anchor-100x100-solid-10-20", steps: [solid("S100", [1, 1, 1], 100, 100), tr({ layer: "S100", anchorPoint: [10, 20, 0] })] },
{ id: "212-anchor-400x300-solid-100-50", steps: [solid("S400", [1, 1, 1], 400, 300), tr({ layer: "S400", anchorPoint: [100, 50, 0] })] },
{ id: "222-layer-video-off", steps: [sp({ enabled: false })] },
{ id: "223-layer-audio-off", steps: [sp({ audioEnabled: false })] },
{ id: "224-layer-effects-off", steps: [sp({ effectsActive: false })] },
{ id: "225-layer-blend-screen", steps: [blend("screen")] },
{ id: "226-layer-blend-add", steps: [blend("add")] },
{ id: "227-layer-blend-overlay", steps: [blend("overlay")] },
{ id: "228-layer-blend-difference", steps: [blend("difference")] },
{ id: "229-comp-fps-29.97", steps: [cp({ frameRate: 29.97 })] },
{ id: "230-comp-fps-23.976", steps: [cp({ frameRate: 23.976 })] },
{ id: "231-comp-bg-grey-0.5", steps: [cp({ bgColor: [0.5, 0.5, 0.5] })] },
{ id: "259-solid-blue-0-0-1", steps: [solid("Blue", [0, 0, 1], 1920, 1080)] },
{ id: "299-save-noise", steps: [] },
{ id: "310-solid-100x100-pointcontrol", steps: [solid("S100", [1, 1, 1], 100, 100), ["effect.add", { layer: "S100", matchName: "ADBE Point Control" }]] },
{ id: "311-position-default-explicit", steps: [["property.set", { layer: "L", property: ["Transform", "Position"], value: [960, 540, 0] }]] },
{ id: "318-layer-inpoint-0.3333", steps: [timing({ inPoint: 0.3333 })] },
{ id: "325-comp-pixelaspect-0.9091", steps: [cp({ pixelAspect: 0.9091 })] },
{ id: "326-comp-shutterphase-m90", steps: [cp({ shutterPhase: -90 })] },
{ id: "327-comp-displaystartframe-100", steps: [cp({ displayStartFrame: 100 })] },
{ id: "403-matte-L-alpha-M", steps: [M, matte("L", "M", "alpha")] },
{ id: "404-matte-L-alphainv-M", steps: [M, matte("L", "M", "alphaInverted")] },
{ id: "405-matte-L-luma-M", steps: [M, matte("L", "M", "luma")] },
{ id: "406-matte-L-lumainv-M", steps: [M, matte("L", "M", "lumaInverted")] },
{ id: "407-matte-M-alpha-L-below", steps: [M, matte("M", "L", "alpha")] },
{ id: "408-matte-L-alpha-M-visible", steps: [M, matte("L", "M", "alpha"), ["layer.set_enabled", { layer: "M", enabled: true }]] }
];
// Case 906: L deleted; S = steps.png; 13 solids 300x300 [0.9,0.5,0.2] named by blend mode, in
// this order (each on top), at a 320 x 360 px grid (6 per row from [160,180]).
var MODES = ["normal", "add", "multiply", "screen", "overlay", "softLight", "hardLight", "difference", "exclusion", "colorDodge", "colorBurn", "darken", "lighten"];
function steps906() {
var s = [["layer.delete", { layer: "L" }], ["layer.create_footage", { sourceItemId: "$STEPS", name: "S" }]];
for (var i = 0; i < MODES.length; i++) {
var m = MODES[i];
s.push(solid(m, [0.9, 0.5, 0.2], 300, 300));
s.push(tr({ layer: m, position: [160 + 320 * (i % 6), 180 + 360 * Math.floor(i / 6)] }));
s.push(["layer.set_blend_mode", { layer: m, mode: m }]);
}
return s;
}
CASES.push({ id: "906-blendmodes-13-solids-on-steps", steps: steps906(), footage: true });
// The template comp (case 000-base itself) and the comp every case starts from.
var TEMPLATE = [
["comp.create", { name: BASE, width: 1920, height: 1080, fps: 25, duration: 5, bgColor: [0, 0, 0] }],
["layer.create_solid", { comp: BASE, name: "L", color: [1, 0, 0], width: 1920, height: 1080 }]
];
// ---------------------------------------------------------------- the .aep/.aepx pair
// aepx-pair.aep + aepx-pair.aepx: the `.aepx` tests (crates/aep/tests/aepx.rs,
// crates/aep-import/tests/aepx.rs, the 110 grafts of crates/aep-import/tests/combined.rs) need
// an .aep and an .aepx saved by AE from the same state; they read 000-base (lossless import,
// damage), 058-key-opacity-2key (damage), 060-expr-opacity-wiggle (the `wiggle(1,10)` Utf8),
// 110-text-A (the `btdk` list, lossless text import) and 124-precomp-Pre. All five go into ONE
// small project (template 000-base + four case comps), saved as .aep and right after as .aepx
// with no edit in between; it replaces the five old pairs. (058/060 as in keyframes.jsx.)
// Run: node layers-comps.jsx <outdir> pair
var PAIR = [
{ id: "058-key-opacity-2key", steps: [["keyframe.add", { layer: "L", property: ["Transform", "Opacity"], time: 0, value: 0 }], ["keyframe.add", { layer: "L", property: ["Transform", "Opacity"], time: 2, value: 100 }]] },
{ id: "060-expr-opacity-wiggle", steps: [["expression.set", { layer: "L", property: ["Transform", "Opacity"], expression: "wiggle(1,10)" }]] },
// 110: new point text layer T, text "A" (AE defaults: Times New Roman, 100 px, white fill)
{ id: "110-text-A", steps: [["layer.create_text", { text: "A", name: "T" }]] },
// 124: L precomposed (move all attributes) into a new comp "Pre"
{ id: "124-precomp-Pre", steps: [["comp.precompose", { layerIndices: [1], newName: "Pre", moveAll: true }]] }
];
// ---------------------------------------------------------------- MCP batch emitter (node)
function emit(cases, template, base, out, stepsId, per) {
var fs = require("fs");
var path = require("path");
fs.mkdirSync(out, { recursive: true });
function op(comp, st) {
var a = {};
for (var k in st[1]) {
var v = st[1][k];
a[k] = v === "$STEPS" ? stepsId : v;
}
if (a.comp === undefined) a.comp = comp;
return { operation: st[0], args: a };
}
fs.writeFileSync(path.join(out, "batch-00.json"), JSON.stringify(template.map(function (t) { return { operation: t[0], args: t[1] }; })));
var n = 1, cur = [], count = 0, total = 0;
function flush() {
if (!cur.length) return;
fs.writeFileSync(path.join(out, "batch-" + (n < 10 ? "0" : "") + n + ".json"), JSON.stringify(cur));
n++; cur = []; count = 0;
}
for (var i = 0; i < cases.length; i++) {
var c = cases[i];
var list = [{ operation: "comp.duplicate", args: { comp: c.from || base, newName: c.id } }];
for (var j = 0; j < c.steps.length; j++) list.push(op(c.id, c.steps[j]));
if (c.footage) {
if (stepsId !== null) fs.writeFileSync(path.join(out, "footage-" + c.id.slice(0, 3) + ".json"), JSON.stringify(list));
continue;
}
cur = cur.concat(list); total++;
if (++count >= per) flush();
}
flush();
console.log("batches", n - 1, "cases", total);
}
if (typeof require !== "undefined" && typeof module !== "undefined" && require.main === module) {
if (process.argv[3] === "pair") emit(PAIR, TEMPLATE, BASE, process.argv[2] || "ops-aepx-pair", null, 16);
else emit(CASES, TEMPLATE, BASE, process.argv[2] || "ops-layers-comps", process.argv[3] ? Number(process.argv[3]) : null, 20);
}
if (typeof module !== "undefined") module.exports = { CASES: CASES, TEMPLATE: TEMPLATE, BASE: BASE, emit: emit };
+21
View File
@@ -0,0 +1,21 @@
// markers.jsx - combined fixture of the markers family: one comp per case of partition.txt,
// recipes from synthetic/MANIFEST.md (groups J, 12, 249, 509/510). Needs fam-common.jsx.
function cm(a) { a.comp = "$"; return op("marker.add_comp", a); }
function lm(a) { a.comp = "$"; a.layer = "L"; return op("marker.add_layer", a); }
var PROJECTS = [{
out: "markers.aep",
settings: null,
setup: baseTemplate(),
cases: [
{ id: "122-marker-comp-1s", steps: [cm({ time: 1, comment: "CompMarker" })] },
{ id: "123-marker-layer-1s", steps: [lm({ time: 1, comment: "LayerMarker" })] },
{ id: "249-marker-layer-full", steps: [lm({ time: 1, comment: "LM", duration: 1, chapter: "Chap", url: "http://a.example/u", frameTarget: "_blank", cuePointName: "CueX" })] },
{ id: "347-marker-layer-label3", steps: [lm({ time: 1, comment: "M", label: 3 })] },
{ id: "348-marker-layer-navigation-cue", steps: [lm({ time: 1, comment: "M", cuePointName: "CueN", eventCuePoint: false })] },
{ id: "349-marker-layer-event-cue-params", steps: [lm({ time: 1, comment: "M", cuePointName: "CueE", eventCuePoint: true, params: { speaker: "A", n: "2" } })] },
{ id: "509-marker-comp-two", steps: [cm({ time: 1, comment: "M1", label: 2 }), cm({ time: 2.5, comment: "M2", duration: 0.5 })] },
{ id: "510-marker-layer-0.52-dur0.3", steps: [lm({ time: 0.52, comment: "LM", duration: 0.3 })] }
]
}];
+75
View File
@@ -0,0 +1,75 @@
// masks.jsx - case table of the combined MASKS fixture project (<corpus>/combined/masks.aep).
//
// One composition per case of the synthetic corpus (MANIFEST.md, masks family), named exactly
// like the case's single-change fixture. Every case comp is a duplicate of the base comp
// "000-base" (comp C of 000-base: 1920x1080, 25 fps, 5 s, black, one red 1920x1080 solid "L")
// plus that case's change (and its FROM chain), as MCP operations (the AE MCP has eval.run
// disabled, so the table is written in MCP operation terms; mss-to-mcp.js turns it into
// batch.run lists, "$" stands for the case comp).
//
// Keyed multi-dimensional properties are read once (property.get) before the save: AE writes
// the first key's speed only after an evaluation (pilot lesson 3).
var FAMILY = "masks";
var OUT_AEP = "<corpus>/combined/masks.aep";
function op(o, a) { return { operation: o, args: a }; }
function maskAdd(layer, shape, size, center, extra) {
var a = { comp: "$", layer: layer, shape: shape, size: size, center: center };
for (var k in extra) { a[k] = extra[k]; }
return op("mask.add", a);
}
function rect800(layer) { return maskAdd(layer || "L", "rect", [800, 400], [960, 540], {}); }
function maskProp(i, name) { return ["Masks", "Mask " + i, name]; }
function get(layer, path, t) { return op("property.get", { comp: "$", layer: layer, property: path, time: t }); }
var CASES = [
{ id: "090-mask-rect", steps: [rect800()] },
{ id: "091-mask-rect-props", steps: [rect800(), op("mask.set_props", { comp: "$", layer: "L", maskIndex: 1, feather: [20, 20], opacity: 50, mode: "Subtract", inverted: true, expansion: 5 })] },
{ id: "093-mask-path-2keys", steps: [rect800(),
op("mask.set_path", { comp: "$", layer: "L", maskIndex: 1, shape: "rect", size: [400, 200], center: [960, 540], time: 0 }),
op("mask.set_path", { comp: "$", layer: "L", maskIndex: 1, shape: "rect", size: [800, 400], center: [960, 540], time: 1 }),
get("L", maskProp(1, "Mask Path"), 0.5)] },
{ id: "208-key-mask-feather-2key-linear", steps: [rect800(),
op("keyframe.add", { comp: "$", layer: "L", property: maskProp(1, "Mask Feather"), time: 0, value: [0, 0] }),
op("keyframe.add", { comp: "$", layer: "L", property: maskProp(1, "Mask Feather"), time: 1, value: [40, 20] }),
get("L", maskProp(1, "Mask Feather"), 0.5)] },
{ id: "232-mask-ellipse", steps: [maskAdd("L", "ellipse", [800, 400], [960, 540], {})] },
{ id: "233-mask-open-path", steps: [op("mask.add", { comp: "$", layer: "L", mode: "Add" }),
op("mask.set_path", { comp: "$", layer: "L", maskIndex: 1, vertices: [[500, 300], [960, 700], [1400, 300]], closed: false })] },
{ id: "234-mask-mode-intersect", steps: [maskAdd("L", "rect", [800, 400], [960, 540], { mode: "Intersect" })] },
{ id: "235-mask-mode-lighten", steps: [maskAdd("L", "rect", [800, 400], [960, 540], { mode: "Lighten" })] },
{ id: "236-mask-mode-darken", steps: [maskAdd("L", "rect", [800, 400], [960, 540], { mode: "Darken" })] },
{ id: "237-mask-mode-difference", steps: [maskAdd("L", "rect", [800, 400], [960, 540], { mode: "Difference" })] },
{ id: "306-key-maskfeather-bezier-ease", steps: [rect800(),
op("keyframe.apply", { comp: "$", layer: "L", property: maskProp(1, "Mask Feather"), keys: [
{ time: 0, value: [0, 0], interp: "ease", inSpeed: 0, inInfluence: 33, outSpeed: 15, outInfluence: 66 },
{ time: 2, value: [50, 30], interp: "ease", inSpeed: 8, inInfluence: 66, outSpeed: 0, outInfluence: 33 }] }),
get("L", maskProp(1, "Mask Feather"), 1)] },
{ id: "309-solid-100x100-mask-rect", steps: [op("layer.create_solid", { comp: "$", name: "S100", color: [1, 1, 1], width: 100, height: 100 }),
maskAdd("S100", "rect", [60, 40], [50, 50], { mode: "Add" })] },
{ id: "328-mask-two-ellipse-rect", steps: [maskAdd("L", "ellipse", [800, 400], [960, 540], {}), maskAdd("L", "rect", [400, 300], [700, 500], {})] },
{ id: "329-mask-ellipse-mode-none", steps: [maskAdd("L", "ellipse", [800, 400], [960, 540], { mode: "None" })] },
{ id: "599-key-mask-path-ease-infl75", steps: [maskAdd("L", "rect", [200, 200], [960, 540], {}),
op("mask.set_path", { comp: "$", layer: "L", maskIndex: 1, shape: "rect", size: [200, 200], center: [960, 540], time: 0 }),
op("mask.set_path", { comp: "$", layer: "L", maskIndex: 1, shape: "rect", size: [600, 400], center: [960, 540], time: 2 }),
op("keyframe.set_easing", { comp: "$", layer: "L", property: maskProp(1, "Mask Path"), keyIndex: 1, inSpeed: 0, outSpeed: 0, inInfluence: 75, outInfluence: 75 }),
op("keyframe.set_easing", { comp: "$", layer: "L", property: maskProp(1, "Mask Path"), keyIndex: 2, inSpeed: 0, outSpeed: 0, inInfluence: 75, outInfluence: 75 }),
get("L", maskProp(1, "Mask Path"), 1)] },
{ id: "700-key-mask-path-ease-out20-in50", steps: [maskAdd("L", "rect", [200, 200], [960, 540], {}),
op("mask.set_path", { comp: "$", layer: "L", maskIndex: 1, shape: "rect", size: [200, 200], center: [960, 540], time: 0 }),
op("mask.set_path", { comp: "$", layer: "L", maskIndex: 1, shape: "rect", size: [600, 400], center: [960, 540], time: 2 }),
op("keyframe.set_easing", { comp: "$", layer: "L", property: maskProp(1, "Mask Path"), keyIndex: 1, inSpeed: 0, outSpeed: 0, inInfluence: 20, outInfluence: 20 }),
op("keyframe.set_easing", { comp: "$", layer: "L", property: maskProp(1, "Mask Path"), keyIndex: 2, inSpeed: 0, outSpeed: 0, inInfluence: 50, outInfluence: 50 }),
get("L", maskProp(1, "Mask Path"), 1)] },
{ id: "706-mask-on-shape-rect-0-m150-100-150", steps: [op("layer.create_shape", { comp: "$", name: "S" }),
op("shape.add_group", { comp: "$", layer: "S", name: "Group 1" }),
op("shape.add_rect", { comp: "$", layer: "S", groupIndex: 1, size: [400, 200] }),
op("shape.add_fill", { comp: "$", layer: "S", groupIndex: 1, color: [0, 1, 0, 1] }),
maskAdd("S", "rect", [100, 300], [50, 0], {})] },
{ id: "900-mask-added-no-path", steps: [op("property.add", { comp: "$", layer: "L", property: ["ADBE Mask Parade"], matchName: "ADBE Mask Atom" })] },
{ id: "901-mask-no-path-expansion-m100", steps: [op("property.add", { comp: "$", layer: "L", property: ["ADBE Mask Parade"], matchName: "ADBE Mask Atom" }),
op("property.set", { comp: "$", layer: "L", property: maskProp(1, "Mask Expansion"), value: -100 })] }
];
var TEMPLATES = [];
var EXTRA_CASES = ["000-base"];
+63
View File
@@ -0,0 +1,63 @@
// Turns the case table of <family>.jsx (masks, shapes, styles) into After Effects MCP batch.run
// operation lists. Usage: node mss-to-mcp.js <family> [outdir]
//
// Run sequence (instance.dialogs empty):
// 1. ae_save_project path <corpus>/scratch-close.aep (never project.open on a
// dirty project), then project.open <corpus>/combined/gen/empty-work.aep
// (copy of 001-empty.aep); instance.dialogs must be empty
// 2. batch.run ops/<family>/batch-00.json (template comp "000-base")
// 3. for every entry of ops/<family>/merge.json: project.merge {path, folderName}; rename the
// returned comp "C" (item.set_props by id) to `rename`; instance.dialogs must be empty
// 4. batch.run ops/<family>/batch-01..NN.json (check `failed` == 0 after each)
// 5. batch.run ops/<family>/cleanup.json is not generated: delete the "src-*" comps by id
// (project.delete_item), then ae_save_project path <OUT_AEP>
// 6. scrub.py <OUT_AEP> <family>-scrubbed.aep synthetic/000-base.aep
var fs = require("fs");
var path = require("path");
var fam = process.argv[2];
var src = fs.readFileSync(path.join(__dirname, fam + ".jsx"), "utf8");
var SOURCES = [], MERGED = [];
eval(src); // our own case table (trusted, local)
var out = process.argv[3] || path.join(__dirname, "ops", fam);
fs.mkdirSync(out, { recursive: true });
var BASE = "000-base";
function subst(v, comp) {
if (v === "$") return comp;
if (Array.isArray(v)) return v.map(function (x) { return subst(x, comp); });
if (v && typeof v === "object") {
var o = {};
for (var k in v) o[k] = subst(v[k], comp);
return o;
}
return v;
}
var templates = [
{ operation: "comp.create", args: { name: BASE, width: 1920, height: 1080, fps: 25, duration: 5, bgColor: [0, 0, 0] } },
{ operation: "layer.create_solid", args: { comp: BASE, name: "L", color: [1, 0, 0], width: 1920, height: 1080 } }
];
fs.writeFileSync(path.join(out, "batch-00.json"), JSON.stringify(templates));
var merge = [];
SOURCES.forEach(function (s) { merge.push({ path: s.path, folderName: "src-" + s.key, rename: "src-" + s.key }); });
MERGED.forEach(function (m) { merge.push({ path: m.path, folderName: "orig-" + m.id.slice(0, 3), rename: m.id }); });
fs.writeFileSync(path.join(out, "merge.json"), JSON.stringify(merge, null, 1));
var PER = 8, n = 1, cur = [], count = 0, names = [];
function flush() {
if (!cur.length) return;
fs.writeFileSync(path.join(out, "batch-" + (n < 10 ? "0" : "") + n + ".json"), JSON.stringify(cur));
n++; cur = []; count = 0;
}
CASES.forEach(function (c) {
var from = !c.from || c.from === BASE ? BASE : "src-" + c.from;
cur.push({ operation: "comp.duplicate", args: { comp: from, newName: c.id } });
c.steps.forEach(function (s) { cur.push(subst(s, c.id)); });
names.push(c.id);
if (++count >= PER) flush();
});
flush();
fs.writeFileSync(path.join(out, "cases.txt"), EXTRA_CASES.concat(names).concat(MERGED.map(function (m) { return m.id; })).join("\n") + "\n");
console.log(fam, "batches", n - 1, "cases", names.length, "merged", MERGED.length, "sources", SOURCES.length);
+72
View File
@@ -0,0 +1,72 @@
# Byte edits of the text family (the old fixtures 732 and 733 are 517 with one paragraph slot
# changed in the file; AE scripting cannot set those slots). Finds the comp item by name, then
# the text document (LIST btdk) of its layer, and makes the same one-byte edit there.
# Usage: patch-text.py <in.aep> <out.aep>
import struct, sys
EDITS = {
"732-text-box-byteedit-para24-0": (b"/23 true /24 1 /25", b"/23 true /24 0 /25"),
"733-text-box-byteedit-para35-0": (b"/34 0 /35 1 /36", b"/34 0 /35 0 /36"),
}
src, dst = sys.argv[1], sys.argv[2]
d = bytearray(open(src, "rb").read())
assert d[:4] == b"RIFX" and d[8:12] == b"Egg!"
def chunks(start, end):
"""(id, list type or None, body start, body end) of the chunks in [start, end)."""
p = start
while p + 8 <= end:
cid = bytes(d[p:p + 4])
size = struct.unpack(">I", d[p + 4:p + 8])[0]
body = p + 8
if cid == b"LIST":
yield cid, bytes(d[body:body + 4]), body + 4, body + size
else:
yield cid, None, body, body + size
p = body + size + (size & 1)
def walk_items(start, end, out):
for cid, ltype, b, e in chunks(start, end):
if cid != b"LIST" or ltype == b"btdk":
continue
if ltype == b"Item":
name = None
for c2, _, b2, e2 in chunks(b, e):
if c2 == b"Utf8":
name = bytes(d[b2:e2]).decode("utf-8", "replace")
break
out.append((name, b, e))
walk_items(b, e, out)
def btdks(start, end, out):
for cid, ltype, b, e in chunks(start, end):
if cid == b"LIST" and ltype == b"btdk":
out.append((b, e))
elif cid == b"LIST":
btdks(b, e, out)
items = []
walk_items(12, len(d), items)
done = 0
for name, b, e in items:
if name not in EDITS:
continue
old, new = EDITS[name]
docs = []
btdks(b, e, docs)
assert len(docs) == 1, (name, len(docs))
db, de = docs[0]
body = bytes(d[db:de])
n = body.count(old)
assert n == 1, (name, n)
at = db + body.index(old)
d[at:at + len(old)] = new
print(name, "patched at", at)
done += 1
assert done == len(EDITS), done
open(dst, "wb").write(bytes(d))
+37
View File
@@ -0,0 +1,37 @@
# Fixture hygiene for a combined file, as done for the single fixtures: footage alias JSON with a
# same-length neutral path, host name HOST000, neutral ascend counts; XMP replaced by the base
# project's packet. Usage: scrub.py <in.aep> <out.aep> <000-base.aep>
import re, sys, zlib
src, dst, base_path = sys.argv[1], sys.argv[2], sys.argv[3]
d = bytes(open(src, 'rb').read())
BS2 = bytes([92, 92]) # a JSON-escaped backslash
def fix(m):
js = m.group(0)
full = re.search(rb'"fullpath":"(.*?)"', js).group(1)
name = full.split(BS2)[-1]
pre = b'C:' + BS2 + b'fixtures' + BS2
mid = len(full) - len(pre) - len(BS2) - len(name)
neutral = pre + (b'dir' * 200)[:mid] + BS2 + name
out = js.replace(full, neutral)
out = re.sub(rb'"server_name":"([^"]*)"', lambda n: b'"server_name":"' + (b'HOST' + b'0' * 64)[:len(n.group(1))] + b'"', out)
out = re.sub(rb'"ascendcount_base":\d', b'"ascendcount_base":1', out)
out = re.sub(rb'"ascendcount_target":\d', b'"ascendcount_target":2', out)
assert len(out) == len(js)
return out
d, n = re.subn(rb'\{"ascendcount_base".*?\}', fix, d)
print('aliases scrubbed', n)
base = open(base_path, 'rb').read()
xi = d.find(b'<?xpacket begin')
xj = base.find(b'<?xpacket begin')
assert xi >= 0, 'the saved project has no XMP packet'
assert xj >= 0, 'the base project has no XMP packet'
out = d[:xi] + base[xj:]
# Local folder and machine names that must not remain (comma-separated, from the environment so
# that they are not written here): e.g. SCRUB_FORBID=<folder name>,<host name prefix>.
import os
for bad in [w.encode() for w in os.environ.get('SCRUB_FORBID', '').split(',') if w]:
assert bad not in out, bad
open(dst, 'wb').write(out)
print('raw', len(out), 'zlib', len(zlib.compress(out, 9)))
+44
View File
@@ -0,0 +1,44 @@
// settings.jsx - combined fixtures of the settings family. Project settings hold one value per
// project, so the 11 cases go into three small projects; each combines as many non-default
// settings as do not conflict (bpc 8/16, the three time display styles), everything else stays at
// the 000-base defaults. One comp per case (the base comp, 902 with its layers); the equivalence
// check compares every setting a case changes against the old fixture and that the file changes
// no setting none of its cases changes. Needs fam-common.jsx.
var PROJECTS = [
{
out: "settings-a.aep",
settings: { bitsPerChannel: 8, workingSpace: "", workingGamma: 2.4, compensateForSceneReferredProfiles: false, timeDisplayType: "frames", displayStartFrame: 1 },
setup: baseTemplate(),
cases: [
{ id: "621-settings-bpc-8", steps: [] },
{ id: "623-settings-workingspace-none", steps: [] },
{ id: "625-settings-gamma-2.4", steps: [] },
{ id: "628-settings-scene-compensation-off", steps: [] },
{ id: "629-settings-time-display-frames", steps: [] },
{ id: "630-settings-frame-start-1", steps: [] }
]
},
{
out: "settings-b.aep",
settings: { linearizeWorkingSpace: true, linearBlending: true, timeDisplayType: "frames", framesUseFeetFrames: true, feetFramesFilmType: "mm35" },
setup: baseTemplate(),
cases: [
{ id: "632-settings-linearize-and-blend-linear", steps: [] },
{ id: "633-settings-feet-frames-35", steps: [] }
]
},
{
out: "settings-c.aep",
settings: { bitsPerChannel: 16, workingSpace: "Rec.709 Gamma 2.4", timeDisplayType: "frames", framesUseFeetFrames: true, feetFramesFilmType: "mm16" },
setup: baseTemplate().concat([imp("steps", "test-media/steps.png")]),
cases: [
{ id: "622-settings-bpc-16", steps: [] },
{ id: "634-settings-feet-frames-16", steps: [] },
{ id: "902-settings-rec709-16bpc-steps-png-grey-solid", steps: [
footage("steps", "S"),
op("layer.create_solid", { comp: "$", name: "G", color: [0.5, 0.5, 0.5], width: 400, height: 200 }),
setp("G", ["Transform", "Position"], [1600, 900])] }
]
}
];
+96
View File
@@ -0,0 +1,96 @@
// shapes.jsx - case table of the combined SHAPES fixture project (<corpus>/combined/shapes.aep).
//
// One composition per case of the synthetic corpus (MANIFEST.md, shapes family), named exactly
// like the case's single-change fixture. Every case comp is a duplicate of the base comp
// "000-base" (comp C of 000-base: 1920x1080, 25 fps, 5 s, black, one red solid "L") plus the
// case's new shape layer on top (named "S", or "Shape" for the batch-3 cases 330-333, as in the
// originals) built with the same MCP operations as the original (shape.add_* or property.add of
// the match name; the two store different records), and the case's change / FROM chain
// (451 -> 457/462/464/467/469/471/473/482/483, 850 -> 851-857). Written in MCP operation
// terms (eval.run is disabled on the MCP); mss-to-mcp.js turns it into batch.run lists, "$"
// stands for the case comp.
//
// 986 (Fill eye switched off) is not scriptable (the shape item switch has no MCP operation):
// the original file is merged into the project (project.merge) and its comp renamed; it is an
// imported original, not a regenerated case.
var FAMILY = "shapes";
var OUT_AEP = "<corpus>/combined/shapes.aep";
function op(o, a) { return { operation: o, args: a }; }
function shape(name) { return [op("layer.create_shape", { comp: "$", name: name || "S" }), op("shape.add_group", { comp: "$", layer: name || "S", name: "Group 1" })]; }
function add(kind, extra, layer, group) {
var a = { comp: "$", layer: layer || "S", groupIndex: group || 1 };
for (var k in extra) { a[k] = extra[k]; }
return op("shape." + kind, a);
}
function padd(path, mn, name, layer) {
var a = { comp: "$", layer: layer || "S", property: path, matchName: mn };
if (name) { a.name = name; }
return op("property.add", a);
}
function G(rest) { return ["Contents", "Group 1"].concat(rest); }
function C(item, prop) { return G(["Contents", item, prop]); }
function set(path, v, layer) { return op("property.set", { comp: "$", layer: layer || "S", property: path, value: v }); }
function keys(path, ks, layer) { return op("keyframe.apply", { comp: "$", layer: layer || "S", property: path, keys: ks }); }
function get(path, t, layer) { return op("property.get", { comp: "$", layer: layer || "S", property: path, time: t }); }
function cat() { var r = []; for (var i = 0; i < arguments.length; i++) { r = r.concat(arguments[i]); } return r; }
var GREEN = [0, 1, 0, 1];
var RECT43 = add("add_rect", { size: [400, 300] });
var RECT42 = add("add_rect", { size: [400, 200] });
var S451 = cat(shape(), [add("add_ellipse", { size: [400, 300] }), add("add_fill", { color: GREEN })]);
var S850 = cat(shape(), [RECT42, add("add_fill", { color: [1, 0, 0, 1] }), add("add_trim_paths", {})]);
var CASES = [
{ id: "238-shape-rect-rounded-corners", steps: cat(shape(), [RECT43, add("add_fill", { color: GREEN }), add("add_rounded_corners", { radius: 20 })]) },
{ id: "239-shape-stroke-green-w8-round", steps: cat(shape(), [RECT43, add("add_stroke", { color: GREEN, width: 8 }), set(C("Stroke 1", "Line Cap"), 2), set(C("Stroke 1", "Line Join"), 2)]) },
{ id: "240-shape-custom-path-tangents", steps: cat(shape(), [add("add_path", { vertices: [[0, -100], [100, 100], [-100, 100]], inTangents: [[-10, -20], [30, 20], [-60, 10]], outTangents: [[40, 0], [-20, 30], [0, -50]], closed: true }), add("add_fill", { color: GREEN })]) },
{ id: "241-shape-gradient-fill-linear", steps: cat(shape(), [RECT43, add("add_gradient_fill", { gradientType: "linear", startPoint: [-200, 0], endPoint: [200, 0] })]) },
{ id: "242-shape-group-position-50-50", steps: cat(shape(), [RECT43, add("add_fill", { color: GREEN }), set(G(["Transform", "Position"]), [50, 50])]) },
{ id: "330-shape-polystar-star-5-50-100", steps: cat(shape("Shape"), [add("add_polystar", { starType: "star", points: 5, outerRadius: 100, innerRadius: 50 }, "Shape"), add("add_fill", { color: GREEN }, "Shape")]) },
{ id: "331-shape-polystar-polygon-5-100", steps: cat(shape("Shape"), [add("add_polystar", { starType: "polygon", points: 5, outerRadius: 100 }, "Shape"), add("add_fill", { color: GREEN }, "Shape")]) },
{ id: "332-shape-gradient-fill-radial", steps: cat(shape("Shape"), [add("add_rect", { size: [400, 300] }, "Shape"), add("add_gradient_fill", { gradientType: "radial", startPoint: [0, 0], endPoint: [200, 0] }, "Shape")]) },
{ id: "333-shape-group-two-rects", steps: cat(shape("Shape"), [add("add_rect", { size: [400, 300] }, "Shape"), add("add_rect", { size: [100, 100], position: [300, 0] }, "Shape"), add("add_fill", { color: GREEN }, "Shape")]) },
{ id: "451-shape-ellipse-400x300-fill", steps: S451 },
{ id: "457-shape-group-scale-50-80", steps: cat(S451, [set(G(["Transform", "Scale"]), [50, 80])]) },
{ id: "462-shape-layer-anchor-10-20", steps: cat(S451, [set(["Transform", "Anchor Point"], [10, 20])]) },
{ id: "464-shape-stroke-opacity-50", steps: cat(S451, [add("add_stroke", { color: [1, 0, 0, 1], width: 6 }), set(C("Stroke 1", "Opacity"), 50)]) },
{ id: "467-shape-trim-end-70", steps: cat(S451, [add("add_trim_paths", {}), set(C("Trim Paths 1", "End"), 70)]) },
{ id: "469-shape-trim-type-2", steps: cat(S451, [add("add_trim_paths", {}), set(C("Trim Paths 1", "Trim Multiple Shapes"), 2)]) },
{ id: "471-shape-rect-roundness-30", steps: cat(S451, [add("add_rect", { size: [200, 100] }), set(C("Rectangle Path 1", "Roundness"), 30)]) },
{ id: "473-shape-star-points-6", steps: cat(S451, [add("add_polystar", { starType: "star", points: 5, outerRadius: 100 }), set(C("Polystar Path 1", "Points"), 6)]) },
{ id: "482-shape-two-groups", steps: cat(S451, [op("shape.add_group", { comp: "$", layer: "S", name: "Group 2" }), add("add_rect", { size: [200, 100] }, "S", 2), add("add_fill", { color: [0, 0, 1, 1] }, "S", 2)]) },
{ id: "483-shape-nested-group-rect", steps: cat(S451, [padd(G(["Contents"]), "ADBE Vector Group", "Group 1"),
padd(G(["Contents", "Group 1", "Contents"]), "ADBE Vector Shape - Rect"),
set(G(["Contents", "Group 1", "Contents", "Rectangle Path 1", "Size"]), [100, 50])]) },
{ id: "519-shape-all-items-default", steps: cat(shape(), [
padd(G(["Contents"]), "ADBE Vector Shape - Rect"), padd(G(["Contents"]), "ADBE Vector Shape - Ellipse"),
padd(G(["Contents"]), "ADBE Vector Shape - Star"), padd(G(["Contents"]), "ADBE Vector Graphic - Fill"),
padd(G(["Contents"]), "ADBE Vector Graphic - Stroke"), padd(G(["Contents"]), "ADBE Vector Graphic - G-Fill"),
padd(G(["Contents"]), "ADBE Vector Graphic - G-Stroke"), padd(G(["Contents"]), "ADBE Vector Filter - Trim"),
padd(G(["Contents"]), "ADBE Vector Filter - RC")]) },
{ id: "707-shape-merge-subtract-rect-ellipse", steps: cat(shape(), [RECT42, add("add_ellipse", { size: [200, 200] }), add("add_merge_paths", { mode: "subtract" }), add("add_fill", { color: GREEN })]) },
{ id: "708-shape-merge-intersect-rect-ellipse", steps: cat(shape(), [RECT42, add("add_ellipse", { size: [200, 200] }), add("add_merge_paths", { mode: "intersect" }), add("add_fill", { color: GREEN })]) },
{ id: "709-shape-repeater-3-pos150-60-rot10-scale90-80-op40", // shape.add_repeater fails in this MCP version ("null is not an object" after adding the
// Repeater); property.add + property.set gives the same imported result as the original.
steps: cat(shape(), [RECT42, add("add_fill", { color: GREEN }), padd(G(["Contents"]), "ADBE Vector Filter - Repeater"),
set(C("Repeater 1", "Copies"), 3), set(C("Repeater 1", "Transform").concat(["Position"]), [150, 60]),
set(C("Repeater 1", "Transform").concat(["Rotation"]), 10), set(C("Repeater 1", "Transform").concat(["Scale"]), [90, 80]),
set(C("Repeater 1", "Transform").concat(["End Opacity"]), 40)]) },
{ id: "710-shape-offset-paths-20-round", steps: cat(shape(), [RECT42, add("add_offset_paths", { amount: 20, lineJoin: "round" }), add("add_fill", { color: GREEN })]) },
{ id: "731-shape-merge-offset-repeater-defaults", steps: cat(shape(), [RECT42, padd(G(["Contents"]), "ADBE Vector Filter - Merge"), padd(G(["Contents"]), "ADBE Vector Filter - Offset"), padd(G(["Contents"]), "ADBE Vector Filter - Repeater")]) },
{ id: "828-shape-offset-paths-20-copies3-copyoffset1.5-stroke", steps: cat(shape(), [RECT42, add("add_offset_paths", { amount: 20 }), add("add_stroke", { color: GREEN, width: 2 }), set(C("Offset Paths 1", "Copies"), 3), set(C("Offset Paths 1", "Copy Offset"), 1.5)]) },
{ id: "851-shape-key-trim-end-0-100-linear", steps: cat(S850, [keys(C("Trim Paths 1", "End"), [{ time: 0, value: 0, interp: "linear" }, { time: 2, value: 100, interp: "linear" }])]) },
{ id: "852-shape-key-trim-end-bezier-out0-60-in20-30", steps: cat(S850, [keys(C("Trim Paths 1", "End"), [{ time: 0, value: 0, interp: "ease", outSpeed: 0, outInfluence: 60 }, { time: 2, value: 100, interp: "ease", inSpeed: 20, inInfluence: 30 }])]) },
{ id: "853-shape-key-group-position-0-200-100-linear", steps: cat(S850, [keys(G(["Transform", "Position"]), [{ time: 0, value: [0, 0], interp: "linear" }, { time: 2, value: [200, 100], interp: "linear" }]), get(G(["Transform", "Position"]), 1)]) },
{ id: "854-shape-key-fill-color-red-blue-linear", steps: cat(S850, [keys(C("Fill 1", "Color"), [{ time: 0, value: [1, 0, 0, 1], interp: "linear" }, { time: 2, value: [0, 0, 1, 1], interp: "linear" }]), get(C("Fill 1", "Color"), 1)]) },
{ id: "855-shape-key-trim-offset-0-90-hold", steps: cat(S850, [keys(C("Trim Paths 1", "Offset"), [{ time: 0, value: 0, interp: "linear" }, { time: 2, value: 90, interp: "hold" }])]) },
{ id: "856-shape-trim-end-expression-time50", steps: cat(S850, [op("expression.set", { comp: "$", layer: "S", property: C("Trim Paths 1", "End"), expression: "time*50" })]) },
{ id: "857-shape-key-group-scale-100-50-150-linear", steps: cat(S850, [keys(G(["Transform", "Scale"]), [{ time: 0, value: [100, 100], interp: "linear" }, { time: 2, value: [50, 150], interp: "linear" }]), get(G(["Transform", "Scale"]), 1)]) }
];
// Imported originals (project.merge of the synthetic file, comp "C" renamed to the case id).
var MERGED = [
{ id: "986-shape-fill-switched-off-green", path: "<corpus>/synthetic/986-shape-fill-switched-off-green.aep", why: "Fill eye switch off: not scriptable" }
];
var EXTRA_CASES = ["000-base"];
+188
View File
@@ -0,0 +1,188 @@
//! Developer tool: replaces every embedded ICC profile of an .aep / .aepx by a stub that keeps only the
//! profile's description. Fixture hygiene: a saved project carries the vendor's working-space profile
//! (a few KB of colour data); the importer reads only the profile's name, the `desc` tag, so the stub
//! (a 128-byte header, one `desc` tag, no colour data, made here) imports identically.
//!
//! `cargo run -p effectcraft-aep --example stubicc -- in.aep out.aep`
//!
//! It handles the JSON `"colorProfileData":"<base64>"` in `Utf8` chunks (or anywhere in the text of an
//! .aepx) and a raw ICC profile stored as a chunk of its own (the profile of an imported image).
#![deny(clippy::unwrap_used, clippy::expect_used, clippy::panic, clippy::unimplemented, clippy::todo, clippy::unreachable)]
use effectcraft_aep::{Body, Chunk};
const KEY: &[u8] = b"\"colorProfileData\":\"";
const B64: &[u8; 64] = b"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
/// Ends this developer tool with a message instead of a panic.
trait OrExit<T> {
fn or_exit(self, what: &str) -> T;
}
impl<T> OrExit<T> for Option<T> {
fn or_exit(self, what: &str) -> T {
match self {
Some(v) => v,
None => exit(what),
}
}
}
impl<T, E: std::fmt::Debug> OrExit<T> for Result<T, E> {
fn or_exit(self, what: &str) -> T {
match self {
Ok(v) => v,
Err(e) => exit(&format!("{what}: {e:?}")),
}
}
}
fn exit(msg: &str) -> ! {
eprintln!("{msg}");
std::process::exit(1)
}
fn b64_decode(text: &[u8]) -> Option<Vec<u8>> {
let (mut out, mut acc, mut bits) = (Vec::new(), 0u32, 0u32);
for &c in text.iter().filter(|c| **c != b'=') {
let v = u32::try_from(B64.iter().position(|b| *b == c)?).ok()?;
acc = (acc << 6 | v) & 0x00ff_ffff;
bits += 6;
if bits >= 8 {
bits -= 8;
out.push(((acc >> bits) & 0xff) as u8);
}
}
Some(out)
}
fn b64_encode(data: &[u8]) -> Vec<u8> {
let mut out = Vec::new();
for ch in data.chunks(3) {
let at = |i: usize| u32::from(ch.get(i).copied().unwrap_or(0));
let n = (at(0) << 16) | (at(1) << 8) | at(2);
for i in 0..4usize {
if i <= ch.len() {
out.push(B64.get(((n >> (18 - 6 * i)) & 63) as usize).copied().unwrap_or(b'A'));
} else {
out.push(b'=');
}
}
}
out
}
fn be32(d: &[u8], at: usize) -> Option<usize> {
let b: [u8; 4] = d.get(at..at.checked_add(4)?)?.try_into().ok()?;
usize::try_from(u32::from_be_bytes(b)).ok()
}
/// The profile description (ICC.1 `desc`: v2 ASCII or v4 `mluc`, first record).
fn description(icc: &[u8]) -> Option<String> {
let count = be32(icc, 128)?;
let tag = (0..count.min(1024)).find_map(|i| {
let at = 132usize.checked_add(i.checked_mul(12)?)?;
(icc.get(at..at.checked_add(4)?)? == b"desc").then_some(at)
})?;
let off = be32(icc, tag.checked_add(4)?)?;
let body = icc.get(off..off.checked_add(be32(icc, tag.checked_add(8)?)?)?)?;
let text = match body.get(..4)? {
b"desc" => {
let n = be32(body, 8)?;
String::from_utf8_lossy(body.get(12..12usize.checked_add(n)?)?.split(|b| *b == 0).next()?).into_owned()
}
b"mluc" => {
let (n, at) = (be32(body, 20)?, be32(body, 24)?);
let units: Vec<u16> = body.get(at..at.checked_add(n)?)?.chunks(2).filter_map(|p| Some(u16::from_be_bytes([*p.first()?, *p.get(1)?]))).collect();
String::from_utf16_lossy(&units)
}
_ => return None,
};
Some(text.trim_end_matches('\0').trim().to_owned())
}
/// A profile with a header, one `desc` tag and no colour data.
fn stub(desc: &str) -> Option<Vec<u8>> {
let mut body = b"desc\0\0\0\0".to_vec();
body.extend_from_slice(&u32::try_from(desc.len().checked_add(1)?).ok()?.to_be_bytes());
body.extend_from_slice(desc.as_bytes());
body.push(0);
body.extend_from_slice(&[0; 4 + 4 + 2 + 1 + 67]);
let mut p = vec![0u8; 128];
for (at, v) in [(8, &0x0240_0000u32.to_be_bytes()[..]), (12, b"mntr"), (16, b"RGB "), (20, b"XYZ "), (36, b"acsp")] {
p.get_mut(at..at + v.len())?.copy_from_slice(v);
}
p.extend_from_slice(&1u32.to_be_bytes());
p.extend_from_slice(b"desc");
p.extend_from_slice(&144u32.to_be_bytes());
p.extend_from_slice(&u32::try_from(body.len()).ok()?.to_be_bytes());
p.extend_from_slice(&body);
let size = u32::try_from(p.len()).ok()?.to_be_bytes();
p.get_mut(..4)?.copy_from_slice(&size);
Some(p)
}
/// Replaces every profile value in `text`; returns the new text and how many were replaced.
fn stub_text(text: &[u8]) -> (Vec<u8>, usize) {
let (mut out, mut n, mut i) = (Vec::with_capacity(text.len()), 0, 0);
while let Some(&b) = text.get(i) {
let value = text.get(i..).filter(|t| t.starts_with(KEY)).and_then(|t| {
let rest = t.get(KEY.len()..)?;
let len = rest.iter().position(|b| *b == b'"')?;
let stubbed = description(&b64_decode(rest.get(..len)?)?).and_then(|d| stub(&d))?;
Some((len, b64_encode(&stubbed)))
});
match value {
Some((len, enc)) => {
out.extend_from_slice(KEY);
out.extend_from_slice(&enc);
i += KEY.len() + len;
n += 1;
}
None => {
out.push(b);
i += 1;
}
}
}
(out, n)
}
fn walk(chunks: &mut [Chunk<'_>], n: &mut usize) {
for c in chunks.iter_mut() {
let data = c.bytes().map(<[u8]>::to_vec);
match data {
Some(d) if c.id == *b"Utf8" && d.windows(KEY.len()).any(|w| w == KEY) => {
let (new, k) = stub_text(&d);
*c = Chunk::data(*b"Utf8", new);
*n += k;
}
Some(d) if d.len() > 132 && d.get(36..40) == Some(b"acsp") => {
if let Some(s) = description(&d).and_then(|t| stub(&t)) {
*c = Chunk::data(c.id, s);
*n += 1;
}
}
_ => {
if let Body::List { children, .. } | Body::Chunks(children) = &mut c.body {
walk(children, n);
}
}
}
}
}
fn main() {
let args: Vec<String> = std::env::args().collect();
let (Some(input), Some(output)) = (args.get(1), args.get(2)) else { exit("usage: stubicc <in.aep|in.aepx> <out>") };
let bytes = std::fs::read(input).or_exit("read the input");
let (out, n) = if input.ends_with(".aepx") {
stub_text(&bytes)
} else {
let mut file = effectcraft_aep::parse(&bytes).or_exit("parse the input");
let mut n = 0;
walk(&mut file.chunks, &mut n);
(effectcraft_aep::write(&file).or_exit("write the output"), n)
};
std::fs::write(output, out).or_exit("write the output");
println!("stubbed {n} profile(s)");
}
+84
View File
@@ -0,0 +1,84 @@
// styles.jsx - case table of the combined STYLES fixture project (<corpus>/combined/styles.aep),
// which also holds the three preset-made effect cases 963/964/985 that the effects pilot skipped.
//
// One composition per case, named exactly like the case's single-change fixture. Written in MCP
// operation terms (eval.run is disabled on the MCP); mss-to-mcp.js turns it into batch.run
// lists, "$" stands for the case comp.
//
// Layer styles cannot be added through the MCP in an AE session whose Layer menu has not been
// opened in the UI (command.execute 9000-9008 does nothing; property.add of `dropShadow/enabled`
// is refused; property.set on an absent style is refused), and keystrokes / menus are not
// allowed. MCP-only route: the AE-saved style-default originals of the corpus (951 all nine,
// 952 Drop Shadow, 955 Inner Glow, 959 Gradient Overlay, 960 Stroke) are merged into the project
// (project.merge; each lands in its own folder; its comp "C" is renamed "src-NNN"), and every
// case comp is a comp.duplicate of its FROM source plus the case's own changes by property.set /
// keyframe.apply on match-name paths. The preset cases start from the merged presets base 984
// (= 949: solid "B" 600x400 [0.2,0.4,0.8] over "S" = steps.png, L deleted) plus
// layer.apply_preset of the contributor's preset on S. 340 (text) starts from the base comp "000-base".
// After the cases, the six "src-*" comps are deleted (project.delete_item); their folders, solids
// and steps.png items stay (the case comps use them).
//
// 951 is the duplicate of its own merged source (no change on top). Imported originals (not regenerated; their change is a byte patch or a hand edit that no MCP
// operation can make): 988 (style eye
// switched off), 734 (text byte edit).
var FAMILY = "styles";
var OUT_AEP = "<corpus>/combined/styles.aep";
var SYN = "<corpus>/synthetic/";
var PRESETS = "<corpus>/presets/";
function op(o, a) { return { operation: o, args: a }; }
function st(style, prop) { return ["ADBE Layer Styles", style + "/enabled", style + "/" + prop]; }
function bo(prop) { return ["ADBE Layer Styles", "ADBE Blend Options Group", prop]; }
function adv(prop) { return ["ADBE Layer Styles", "ADBE Blend Options Group", "ADBE Adv Blend Group", prop]; }
function set(path, v) { return op("property.set", { comp: "$", layer: "B", property: path, value: v }); }
function S(style, kv) { var r = []; for (var k in kv) { r.push(set(st(style, k), kv[k])); } return r; }
function cat() { var r = []; for (var i = 0; i < arguments.length; i++) { r = r.concat(arguments[i]); } return r; }
// Sources merged into the project: { key, path }; comp "C" of each becomes "src-<key>".
var SOURCES = [
{ key: "951", path: SYN + "951-styles-all-nine-defaults-on-B.aep" },
{ key: "952", path: SYN + "952-style-drop-shadow-defaults-on-B.aep" },
{ key: "955", path: SYN + "955-style-inner-glow-defaults-on-B.aep" },
{ key: "959", path: SYN + "959-style-gradient-overlay-defaults-on-B.aep" },
{ key: "960", path: SYN + "960-style-stroke-defaults-on-B.aep" },
{ key: "984", path: SYN + "984-presets-save-noise.aep" }
];
// Imported originals: merged, comp "C" renamed to the case id.
var MERGED = [
{ id: "988-style-drop-shadow-switched-off", path: SYN + "988-style-drop-shadow-switched-off.aep", why: "style eye switched off: byte patch, not scriptable" },
{ id: "734-text-box-byteedit-style68-1", path: SYN + "734-text-box-byteedit-style68-1.aep", why: "text byte edit, not scriptable" }
];
var ALL977 = cat(
[set(bo("ADBE Global Angle2"), 45), set(bo("ADBE Global Altitude2"), 40), set(adv("ADBE Layer Fill Opacity2"), 80),
set(adv("ADBE R Channel Blend"), 0), set(adv("ADBE Blend Interior"), 1), set(adv("ADBE Blend Ranges"), 0)],
S("dropShadow", { mode2: 1, color: [0, 0, 1], opacity: 60, useGlobalAngle: 1, localLightingAngle: 30, distance: 12, chokeMatte: 10, blur: 8, noise: 5, layerConceals: 0 }),
S("innerShadow", { mode2: 1, color: [0, 1, 0], opacity: 55, useGlobalAngle: 1, localLightingAngle: 60, distance: 7, chokeMatte: 15, blur: 9, noise: 3 }),
S("outerGlow", { mode2: 1, opacity: 65, noise: 2, AEColorChoice: 2, color: [1, 0, 0], gradientSmoothness: 80, glowTechnique: 2, chokeMatte: 12, blur: 20, inputRange: 40, shadingNoise: 10 }),
S("innerGlow", { mode2: 1, opacity: 45, noise: 4, AEColorChoice: 2, color: [0, 1, 0], gradientSmoothness: 70, glowTechnique: 2, innerGlowSource: 2, chokeMatte: 8, blur: 15, inputRange: 30, shadingNoise: 20 }),
S("bevelEmboss", { bevelStyle: 1, bevelTechnique: 2, strengthRatio: 150, bevelDirection: 2, blur: 10, softness: 3, useGlobalAngle: 1, localLightingAngle: 70, localLightingAltitude: 50, highlightMode: 1, highlightColor: [1, 1, 0], highlightOpacity: 60, shadowMode: 1, shadowColor: [0, 0, 1], shadowOpacity: 40 }),
S("chromeFX", { mode2: 1, color: [1, 0, 1], opacity: 70, localLightingAngle: 45, distance: 20, blur: 10, invert: 0 }),
S("solidFill", { mode2: 5, color: [0, 1, 1], opacity: 50 }),
S("gradientFill", { mode2: 5, opacity: 70, gradientSmoothness: 50, angle: 30, type: 2, reverse: 1, align: 0, scale: 120, offset: [10, 20] }),
S("frameFX", { mode2: 5, color: [0, 0, 1], size: 6, opacity: 80, style: 2 })
);
// from: "000-base" (template) or a source key ("952", ...).
var CASES = [
{ id: "340-text-range-two-styles", from: "000-base", steps: [op("layer.create_text", { comp: "$", text: "Hello", name: "T" }),
op("text.set_style_range", { comp: "$", layer: "T", start: 1, end: 3, fillColor: [1, 0, 0] }),
op("text.set_style_range", { comp: "$", layer: "T", start: 3, end: 5, fillColor: [0, 0, 1], fontSize: 60 })] },
{ id: "951-styles-all-nine-defaults-on-B", from: "951", steps: [] },
{ id: "966-style-drop-shadow-opacity50-distance20", from: "952", steps: S("dropShadow", { opacity: 50, distance: 20 }) },
{ id: "970-style-stroke-size10-color-green", from: "960", steps: S("frameFX", { size: 10, color: [0, 1, 0] }) },
{ id: "974-style-gradient-overlay-angle45-scale150", from: "959", steps: S("gradientFill", { angle: 45, scale: 150 }) },
{ id: "975-style-fill-opacity0-with-drop-shadow", from: "952", steps: [set(adv("ADBE Layer Fill Opacity2"), 0)] },
{ id: "976-style-drop-shadow-opacity-keyed-100-20-linear", from: "952", steps: [op("keyframe.apply", { comp: "$", layer: "B", property: st("dropShadow", "opacity"), keys: [{ time: 0, value: 100, interp: "linear" }, { time: 2, value: 20, interp: "linear" }] })] },
{ id: "977-styles-all-params-changed", from: "951", steps: ALL977 },
{ id: "979-style-inner-glow-source-2", from: "955", steps: S("innerGlow", { innerGlowSource: 2 }) },
{ id: "963-curves-red-mid-down-on-S", from: "984", steps: [op("layer.apply_preset", { comp: "$", layer: "S", path: PRESETS + "curves-red-mid-down.ffx" })] },
{ id: "964-curves-rgb-s-curve-on-S", from: "984", steps: [op("layer.apply_preset", { comp: "$", layer: "S", path: PRESETS + "curves-rgb-two-points.ffx" })] },
{ id: "985-meshwarp-3x3-vertex-moved-on-S", from: "984", steps: [op("layer.apply_preset", { comp: "$", layer: "S", path: PRESETS + "meshwarp-3x3-center-right.ffx" })] }
];
var EXTRA_CASES = ["000-base"];
+322
View File
@@ -0,0 +1,322 @@
// text.jsx - builds the combined TEXT fixture project (ExtendScript, ES3), and, run under node,
// translates the same case table into After Effects MCP batch.run operation lists.
//
// One composition per case of the synthetic corpus (MANIFEST.md, text family in partition.txt),
// named exactly like the case's single-change fixture (e.g. "539-text-hscale-0.9"). Every case
// comp is a duplicate of the base comp "000-base" (comp C of 000-base: 1920x1080, 25 fps, 5 s,
// black, one red 1920x1080 solid layer "L") plus that case's steps: a new text layer "T" on top
// of L and the case's change, with its whole FROM chain replayed (e.g. 400 = 110 -> text
// "A" ETX "B" (386) -> "A" CR "B" (387) -> Auto Leading on). Noise references (384, 399, 725)
// are no-ops.
//
// Text layers are created with the panel's default character state (Times New Roman
// TimesNewRomanPSMT, 100 px, white; the default stores the superscript baseline slot, which
// is why the S17 cases set fontBaselineOption normal first).
//
// Byte-edited cases (732, 733: one paragraph slot of 517 changed in the file, not reachable by
// scripting) are built as 517 here and patched afterwards by patch-text.py (same edit as the
// old fixtures: one byte in the comp's text document).
//
// Step vocabulary (the text layer is always "T"):
// ["text", s, opts] new text layer T, text s; opts {box: [w,h], boxPos: [x,y]}
// ["content", s] Source Text text -> s
// ["style", {..}] text.set_style attributes on the whole document
// ["range", start, end, {..}] text.set_style_range on characters [start, end)
// ["reset", scope] text.reset_style character|paragraph|both
// ["anim", name, {..}] text animator with these properties and a Range Selector
// ["sel", a, match, v] property match of Range Selector 1 of animator a -> v
// ["skey", a, match, [[t,v],..], interp] keys on that selector property
// ["get", a, match] read that selector property (as the old case did)
// ["rmanim", a] remove animator a
// ["anchor", [x,y,z]] T Transform / Anchor Point
// ["mask", center, size] rect mask on T (layer space)
//
// Usage under node: node text.jsx <outdir> (writes batch-00.json = template comp,
// batch-NN.json = cases, smoke.json = a few cases built on batch-00)
var OUT_AEP = "<corpus>/combined/text.aep";
var EMPTY_AEP = "<corpus>/combined/gen/empty-work.aep"; // a copy of synthetic/001-empty.aep
function cat() {
var r = [];
for (var i = 0; i < arguments.length; i++) { r = r.concat(arguments[i]); }
return r;
}
function st(o) { return [["style", o]]; }
var A = [["text", "A", {}]];
var HELLO = [["text", "Hello", {}]];
var BOX_HELLO = [["text", "Hello", { box: [400, 200] }]];
var B517 = [["text", "The quick brown fox jumps over the lazy dog and keeps running far away", { box: [600, 400], boxPos: [-300, -200] }]];
var HHHH = [["text", "HHHH", {}]];
var B538 = cat(HHHH, st({ fontBaselineOption: "normal" }));
var B113 = cat(A, [["content", "Hello"]], st({ fontSize: 60 }), st({ fillColor: [1, 0.5, 0] }));
var B386 = cat(A, [["content", "A\u0003B"]]);
var B579 = cat(B538, [["anim", "Animator 1", { "ADBE Text Position 3D": [0, -50, 0] }]]);
var B592 = cat(B579, [["anim", "Many", {
"ADBE Text Anchor Point 3D": [3, 4, 0], "ADBE Text Scale 3D": [150, 120, 100], "ADBE Text Skew": 10,
"ADBE Text Skew Axis": 20, "ADBE Text Rotation": 45, "ADBE Text Opacity": 37, "ADBE Text Fill Color": [0, 1, 0],
"ADBE Text Stroke Color": [0, 0, 1], "ADBE Text Stroke Width": 3, "ADBE Text Tracking Amount": 20,
"ADBE Text Line Spacing": [10, 20], "ADBE Text Blur": [5, 6]
}]]);
var B593 = cat(B592, [["skey", "Animator 1", "ADBE Text Percent Start", [[0, 0], [2, 100]], "ease"]]);
var B594 = cat(B593, [["rmanim", "Many"]]);
var B595 = cat(B594, [["rmanim", "Animator 1"]], st({ applyStroke: true, strokeWidth: 5, strokeColor: [0, 0, 1], horizontalScale: 0.9, verticalScale: 1.5, baselineShift: 41 }));
var B727 = cat(B538, [["reset", "paragraph"]]);
function sel(m, v) { return cat(B579, [["sel", "Animator 1", m, v]]); }
var CASES = [
{ id: "110-text-A", steps: A },
{ id: "113-text-Hello-size60-fillorange", steps: B113 },
{ id: "114-text-animator-opacity", steps: cat(B113, [["anim", "Animator 1", { "ADBE Text Opacity": 0 }]]) },
{ id: "243-text-multiline-A-CR-B", steps: [["text", "A\rB", {}]] },
{ id: "245-text-box-400x200-Hello", steps: BOX_HELLO },
{ id: "246-text-box-center-align", steps: cat(BOX_HELLO, st({ justification: "center" })) },
{ id: "247-text-tracking-100", steps: cat(HELLO, st({ tracking: 100 })) },
{ id: "248-text-range-fill-red-1-3", steps: cat(HELLO, [["range", 1, 3, { fillColor: [1, 0, 0] }]]) },
{ id: "334-text-box-right-align", steps: cat(BOX_HELLO, st({ justification: "right" })) },
{ id: "335-text-point-fauxbold", steps: cat(HELLO, st({ fauxBold: true })) },
{ id: "336-text-point-fauxitalic", steps: cat(HELLO, st({ fauxItalic: true })) },
{ id: "337-text-point-allcaps", steps: cat(HELLO, st({ allCaps: true })) },
{ id: "338-text-point-smallcaps", steps: cat(HELLO, st({ smallCaps: true })) },
{ id: "339-text-point-leading60", steps: cat(HELLO, st({ leading: 60 })) },
{ id: "385-text-anchor-10-20", steps: cat(A, [["anchor", [10, 20, 0]]]) },
{ id: "386-text-etx-A-B", steps: B386 },
{ id: "400-text-autoleading-on", steps: cat(B386, [["content", "A\rB"]], st({ autoLeading: true })) },
{ id: "517-text-box-600x400-wrap", steps: B517 },
{ id: "526-text-point-HHHH-default", steps: HHHH },
{ id: "527-text-point-HHHH-baseline-normal", steps: cat(HHHH, st({ fontBaselineOption: "normal" })) },
{ id: "528-text-point-HHHH-baseline-subscript", steps: cat(HHHH, st({ fontBaselineOption: "normal" }), st({ fontBaselineOption: "subscript" })) },
{ id: "538-text-point-HHHH-normal-ref", steps: B538 },
{ id: "539-text-hscale-0.9", steps: cat(B538, st({ horizontalScale: 0.9 })) },
{ id: "540-text-vscale-1.5", steps: cat(B538, st({ verticalScale: 1.5 })) },
{ id: "541-text-baselineshift-41", steps: cat(B538, st({ baselineShift: 41 })) },
{ id: "542-text-autokern-none", steps: cat(B538, st({ autoKernType: "none" })) },
{ id: "543-text-autokern-optical", steps: cat(B538, st({ autoKernType: "optical" })) },
{ id: "544-text-applystroke-on", steps: cat(B538, st({ applyStroke: true })) },
{ id: "545-text-strokewidth-5", steps: cat(B538, st({ strokeWidth: 5 })) },
{ id: "546-text-applyfill-off", steps: cat(B538, st({ applyFill: false })) },
{ id: "548-text-linejoin-round", steps: cat(B538, st({ lineJoinType: "round" })) },
{ id: "550-text-strokeoverfill-off", steps: cat(B538, st({ strokeOverFill: false })) },
{ id: "552-text-nobreak-on", steps: cat(B538, st({ noBreak: true })) },
{ id: "553-text-tsume-0.5", steps: cat(B538, st({ tsume: 0.5 })) },
{ id: "554-text-kerning-50", steps: cat(B538, st({ kerning: 50 })) },
{ id: "555-text-ligature-on", steps: cat(B538, st({ ligature: true })) },
{ id: "556-text-autohyphenate-off", steps: cat(B538, st({ autoHyphenate: false })) },
{ id: "558-text-hangingroman-on", steps: cat(B538, st({ hangingRoman: true })) },
{ id: "559-text-everyline-on", steps: cat(B538, st({ everyLineComposer: true })) },
{ id: "560-text-firstlineindent-20", steps: cat(B538, st({ firstLineIndent: 20 })) },
{ id: "561-text-startindent-30", steps: cat(B538, st({ startIndent: 30 })) },
{ id: "562-text-endindent-40", steps: cat(B538, st({ endIndent: 40 })) },
{ id: "563-text-spacebefore-10", steps: cat(B538, st({ spaceBefore: 10 })) },
{ id: "564-text-spaceafter-12", steps: cat(B538, st({ spaceAfter: 12 })) },
{ id: "565-text-justify-fullleft", steps: cat(B538, st({ justification: "fullLeft" })) },
{ id: "566-text-justify-fullcenter", steps: cat(B538, st({ justification: "fullCenter" })) },
{ id: "567-text-justify-fullright", steps: cat(B538, st({ justification: "fullRight" })) },
{ id: "568-text-justify-fullall", steps: cat(B538, st({ justification: "fullLastLineFull" })) },
{ id: "569-text-direction-rtl", steps: cat(B538, st({ direction: "rightToLeft" })) },
{ id: "571-text-digitset-arabic", steps: cat(B538, st({ digitSet: "arabic" })) },
{ id: "572-text-leadingtype-japanese", steps: cat(B538, st({ leadingType: "japanese" })) },
{ id: "573-text-baselinedir-rotated", steps: cat(B538, st({ baselineDirection: "verticalRotated" })) },
{ id: "575-text-vertical-rtl", steps: cat(B538, st({ lineOrientation: "verticalRtl" })) },
{ id: "576-text-baselinedir-crossstream", steps: cat(B538, st({ baselineDirection: "verticalCrossStream" })) },
{ id: "578-text-digitset-hindi", steps: cat(B538, st({ digitSet: "hindi" })) },
{ id: "579-textanim-position-0-m50", steps: B579 },
{ id: "580-textanim-start-25", steps: sel("ADBE Text Percent Start", 25) },
{ id: "581-textanim-end-75", steps: sel("ADBE Text Percent End", 75) },
{ id: "582-textanim-offset-10", steps: sel("ADBE Text Percent Offset", 10) },
{ id: "583-textanim-units-index", steps: cat(sel("ADBE Text Range Units", 2), [["get", "Animator 1", "ADBE Text Index Start"], ["get", "Animator 1", "ADBE Text Index End"]]) },
{ id: "584-textanim-basedon-3-words", steps: sel("ADBE Text Range Type2", 3) },
{ id: "585-textanim-mode-2-subtract", steps: sel("ADBE Text Selector Mode", 2) },
{ id: "586-textanim-amount-50", steps: sel("ADBE Text Selector Max Amount", 50) },
{ id: "587-textanim-shape-2-rampup", steps: sel("ADBE Text Range Shape", 2) },
{ id: "588-textanim-smoothness-50", steps: sel("ADBE Text Selector Smoothness", 50) },
{ id: "589-textanim-easehigh-30", steps: sel("ADBE Text Levels Max Ease", 30) },
{ id: "590-textanim-easelow-40", steps: sel("ADBE Text Levels Min Ease", 40) },
{ id: "591-textanim-randomize-seed-7", steps: cat(B579, [["sel", "Animator 1", "ADBE Text Randomize Order", 1], ["sel", "Animator 1", "ADBE Text Random Seed", 7]]) },
{ id: "592-textanim-many-props", steps: B592 },
{ id: "593-textanim-start-keyed-ease-0-100", steps: B593 },
{ id: "594-textanim-position-start-keyed-ease", steps: B594 },
{ id: "595-text-stroke-scale-shift-combined", steps: B595 },
{ id: "596-text-combined-fill-over-stroke", steps: cat(B595, st({ strokeOverFill: false })) },
{ id: "705-mask-on-text-rect-40-m70-160-10", steps: cat(B538, [["mask", [100, -30], [120, 80]]]) },
{ id: "725-text-point-HHHH-normal-ref-S18", steps: B538 },
{ id: "727-text-reset-paragraph", steps: B727 },
{ id: "728-textanim-character-offset-3", steps: cat(B727, [["anim", "Off", { "ADBE Text Character Offset": 3 }]]) },
{ id: "732-text-box-byteedit-para24-0", steps: B517, patch: "para24" },
{ id: "733-text-box-byteedit-para35-0", steps: B517, patch: "para35" }
];
var BASE = "000-base";
var TEXT_GROUP = ["ADBE Text Properties", "ADBE Text Animators"];
// Range Selector properties that sit in its "Advanced" group.
var ADVANCED = { "ADBE Text Range Units": 1, "ADBE Text Range Type2": 1, "ADBE Text Selector Mode": 1, "ADBE Text Selector Max Amount": 1,
"ADBE Text Range Shape": 1, "ADBE Text Selector Smoothness": 1, "ADBE Text Levels Max Ease": 1, "ADBE Text Levels Min Ease": 1,
"ADBE Text Randomize Order": 1, "ADBE Text Random Seed": 1 };
// ---------------------------------------------------------------- MCP translation (node)
function mcpOps(comp, s) {
var op = s[0];
if (op === "text") {
var a = { comp: comp, text: s[1], name: "T" };
if (s[2].box) a.boxSize = s[2].box;
if (s[2].boxPos) a.boxPosition = s[2].boxPos;
return [{ operation: "layer.create_text", args: a }];
}
if (op === "content") return [{ operation: "text.set_content", args: { comp: comp, layer: "T", text: s[1] } }];
if (op === "style" || op === "range") {
var o = op === "style" ? s[1] : s[3];
var b = { comp: comp, layer: "T" };
for (var k in o) b[k] = o[k];
if (op === "range") { b.rangeType = "characters"; b.start = s[1]; b.end = s[2]; }
return [{ operation: op === "style" ? "text.set_style" : "text.set_style_range", args: b }];
}
if (op === "reset") return [{ operation: "text.reset_style", args: { comp: comp, layer: "T", scope: s[1] } }];
if (op === "anim") return [{ operation: "text.add_animator", args: { comp: comp, layer: "T", name: s[1], properties: s[2], selector: "range" } }];
var selPath = function (a, m) { return TEXT_GROUP.concat([a, "ADBE Text Selectors", "Range Selector 1"], ADVANCED[m] ? ["ADBE Text Range Advanced", m] : [m]); };
if (op === "get") return [{ operation: "property.get", args: { comp: comp, layer: "T", property: selPath(s[1], s[2]) } }];
if (op === "sel") return [{ operation: "property.set", args: { comp: comp, layer: "T", property: selPath(s[1], s[2]), value: s[3] } }];
if (op === "skey") {
var keys = [];
for (var i = 0; i < s[3].length; i++) keys.push({ time: s[3][i][0], value: s[3][i][1], interp: s[4] });
return [{ operation: "keyframe.apply", args: { comp: comp, layer: "T", property: selPath(s[1], s[2]), keys: keys } }];
}
if (op === "rmanim") return [{ operation: "property.remove", args: { comp: comp, layer: "T", property: TEXT_GROUP.concat([s[1]]) } }];
if (op === "anchor") return [{ operation: "property.set", args: { comp: comp, layer: "T", property: ["ADBE Transform Group", "ADBE Anchor Point"], value: s[1] } }];
if (op === "mask") return [{ operation: "mask.add", args: { comp: comp, layer: "T", shape: "rect", center: s[1], size: s[2] } }];
throw new Error("unknown step " + op);
}
if (typeof app === "undefined" && typeof require === "function") {
var fs = require("fs");
var path = require("path");
var out = process.argv[2] || path.join(__dirname, "ops-text");
fs.mkdirSync(out, { recursive: true });
var templates = [
{ operation: "comp.create", args: { name: BASE, width: 1920, height: 1080, fps: 25, duration: 5, bgColor: [0, 0, 0] } },
{ operation: "layer.create_solid", args: { comp: BASE, name: "L", color: [1, 0, 0], width: 1920, height: 1080 } }
];
fs.writeFileSync(path.join(out, "batch-00.json"), JSON.stringify(templates));
// Pass 1 creates every case comp and its text layer (the first step of every case is the
// "text" step), pass 2 runs the remaining steps: a new text layer takes the panel's current
// character state, so no layer is created after another layer was styled.
var createOps = function (c) {
return [{ operation: "comp.duplicate", args: { comp: BASE, newName: c.id } }].concat(mcpOps(c.id, c.steps[0]));
};
var changeOps = function (c) {
var list = [];
for (var j = 1; j < c.steps.length; j++) list = list.concat(mcpOps(c.id, c.steps[j]));
return list;
};
var write = function (prefix, list, per, fn) {
var n = 1, cur = [], count = 0;
for (var ci = 0; ci < list.length; ci++) {
cur = cur.concat(fn(list[ci]));
if (++count >= per || ci === list.length - 1) {
if (cur.length) fs.writeFileSync(path.join(out, prefix + (n < 10 ? "0" : "") + n + ".json"), JSON.stringify(cur));
n++; cur = []; count = 0;
}
}
return n - 1;
};
var nc = write("create-", CASES, 40, createOps);
var nx = write("change-", CASES, 20, changeOps);
var SMOKE = ["110-", "113-", "245-", "248-", "385-", "386-", "538-", "554-", "575-", "583-", "591-", "592-", "593-", "595-", "705-", "727-", "728-"];
var smoke = [];
for (var q = 0; q < CASES.length; q++) {
for (var r = 0; r < SMOKE.length; r++) if (CASES[q].id.indexOf(SMOKE[r]) === 0) smoke.push(CASES[q]);
}
write("smoke-create", smoke, 100, createOps);
write("smoke-change", smoke, 100, changeOps);
console.log("create batches", nc, "change batches", nx, "cases", CASES.length);
}
// ---------------------------------------------------------------- ExtendScript runner
function findText(comp) { return comp.layer("T"); }
function applyAttrs(td, o) {
var map = { fontSize: "fontSize", fillColor: "fillColor", strokeColor: "strokeColor", strokeWidth: "strokeWidth", tracking: "tracking",
leading: "leading", applyFill: "applyFill", applyStroke: "applyStroke", strokeOverFill: "strokeOverFill", baselineShift: "baselineShift",
autoLeading: "autoLeading", fauxBold: "fauxBold", fauxItalic: "fauxItalic", horizontalScale: "horizontalScale", verticalScale: "verticalScale",
tsume: "tsume", kerning: "kerning", ligature: "ligature", noBreak: "noBreak", autoHyphenate: "autoHyphenate", everyLineComposer: "everyLineComposer",
hangingRoman: "hangingRoman", firstLineIndent: "firstLineIndent", startIndent: "startIndent", endIndent: "endIndent",
spaceBefore: "spaceBefore", spaceAfter: "spaceAfter" };
var enums = {
justification: { left: ParagraphJustification.LEFT_JUSTIFY, center: ParagraphJustification.CENTER_JUSTIFY, right: ParagraphJustification.RIGHT_JUSTIFY,
fullLeft: ParagraphJustification.FULL_JUSTIFY_LASTLINE_LEFT, fullCenter: ParagraphJustification.FULL_JUSTIFY_LASTLINE_CENTER,
fullRight: ParagraphJustification.FULL_JUSTIFY_LASTLINE_RIGHT, fullLastLineFull: ParagraphJustification.FULL_JUSTIFY_LASTLINE_FULL },
fontBaselineOption: { normal: FontBaselineOption.FONT_NORMAL_BASELINE, superscript: FontBaselineOption.FONT_FAUXED_SUPERSCRIPT, subscript: FontBaselineOption.FONT_FAUXED_SUBSCRIPT },
autoKernType: { none: AutoKernType.NO_AUTO_KERN, metric: AutoKernType.METRIC_KERN, optical: AutoKernType.OPTICAL_KERN },
lineJoinType: { miter: LineJoinType.LINE_JOIN_MITER, round: LineJoinType.LINE_JOIN_ROUND, bevel: LineJoinType.LINE_JOIN_BEVEL },
direction: { leftToRight: ParagraphDirection.DIRECTION_LEFT_TO_RIGHT, rightToLeft: ParagraphDirection.DIRECTION_RIGHT_TO_LEFT },
digitSet: { "default": DigitSet.DEFAULT_DIGITS, arabic: DigitSet.ARABIC_DIGITS, hindi: DigitSet.HINDI_DIGITS },
leadingType: { roman: LeadingType.ROMAN_LEADING_TYPE, japanese: LeadingType.JAPANESE_LEADING_TYPE },
baselineDirection: { withStream: BaselineDirection.BASELINE_WITH_STREAM, verticalRotated: BaselineDirection.BASELINE_VERTICAL_ROTATED,
verticalCrossStream: BaselineDirection.BASELINE_VERTICAL_CROSS_STREAM },
lineOrientation: { horizontal: LineOrientation.HORIZONTAL, verticalRtl: LineOrientation.VERTICAL_RIGHT_TO_LEFT, verticalLtr: LineOrientation.VERTICAL_LEFT_TO_RIGHT }
};
for (var k in o) {
if (k === "allCaps") { td.fontCapsOption = o[k] ? FontCapsOption.FONT_ALL_CAPS : FontCapsOption.FONT_NORMAL_CAPS; }
else if (k === "smallCaps") { td.fontCapsOption = o[k] ? FontCapsOption.FONT_SMALL_CAPS : FontCapsOption.FONT_NORMAL_CAPS; }
else if (k === "autoKernType" || k === "justification" || enums[k]) { td[k] = enums[k][o[k]]; }
else { td[map[k]] = o[k]; }
}
}
function runStep(comp, s) {
var op = s[0], t, td, prop;
if (op === "text") {
t = s[2].box ? comp.layers.addBoxText(s[2].box, s[1]) : comp.layers.addText(s[1]);
t.name = "T";
if (s[2].boxPos) { td = t.property("ADBE Text Properties").property("ADBE Text Document").value; td.boxTextPos = s[2].boxPos; t.property("ADBE Text Properties").property("ADBE Text Document").setValue(td); }
return;
}
t = findText(comp);
var src = t.property("ADBE Text Properties").property("ADBE Text Document");
if (op === "content") { td = src.value; td.text = s[1]; src.setValue(td); }
else if (op === "style") { td = src.value; applyAttrs(td, s[1]); src.setValue(td); }
else if (op === "range") { td = src.value; applyAttrs(td.characterRange(s[1], s[2]), s[3]); src.setValue(td); }
else if (op === "reset") { td = src.value; if (s[1] !== "paragraph") { td.resetCharStyle(); } if (s[1] !== "character") { td.resetParagraphStyle(); } src.setValue(td); }
else if (op === "anim") {
var an = t.property("ADBE Text Properties").property("ADBE Text Animators").addProperty("ADBE Text Animator");
an.name = s[1];
an.property("ADBE Text Selectors").addProperty("ADBE Text Selector");
for (var m in s[2]) { an.property("ADBE Text Animator Properties").addProperty(m).setValue(s[2][m]); }
} else if (op === "sel" || op === "skey" || op === "get") {
prop = t.property("ADBE Text Properties").property("ADBE Text Animators").property(s[1]).property("ADBE Text Selectors").property(1);
prop = ADVANCED[s[2]] ? prop.property("ADBE Text Range Advanced").property(s[2]) : prop.property(s[2]);
if (op === "get") { prop.valueAtTime(0, false); }
else if (op === "sel") { prop.setValue(s[3]); }
else {
for (var i = 0; i < s[3].length; i++) { prop.setValueAtTime(s[3][i][0], s[3][i][1]); }
var e = [new KeyframeEase(0, 33.333333)];
for (var j = 1; j <= prop.numKeys; j++) { prop.setTemporalEaseAtKey(j, e, e); }
}
} else if (op === "rmanim") { t.property("ADBE Text Properties").property("ADBE Text Animators").property(s[1]).remove(); }
else if (op === "anchor") { t.property("ADBE Transform Group").property("ADBE Anchor Point").setValue(s[1]); }
else if (op === "mask") {
var sh = new Shape(), cx = s[1][0], cy = s[1][1], hw = s[2][0] / 2, hh = s[2][1] / 2;
sh.vertices = [[cx - hw, cy - hh], [cx + hw, cy - hh], [cx + hw, cy + hh], [cx - hw, cy + hh]];
sh.closed = true;
t.property("ADBE Mask Parade").addProperty("ADBE Mask Atom").property("ADBE Mask Shape").setValue(sh);
} else { throw new Error("unknown step " + op); }
}
function main() {
app.project.close(CloseOptions.DO_NOT_SAVE_CHANGES);
app.open(new File(EMPTY_AEP));
var base = app.project.items.addComp(BASE, 1920, 1080, 1, 5, 25);
base.bgColor = [0, 0, 0];
base.layers.addSolid([1, 0, 0], "L", 1920, 1080, 1);
for (var i = 0; i < CASES.length; i++) {
var comp = base.duplicate();
comp.name = CASES[i].id;
for (var j = 0; j < CASES[i].steps.length; j++) { runStep(comp, CASES[i].steps[j]); }
}
app.project.save(new File(OUT_AEP)); // then patch-text.py for 732/733
return CASES.length + 1;
}
if (typeof app !== "undefined" && typeof EC_DATA_ONLY === "undefined") {
main();
}
+99
View File
@@ -0,0 +1,99 @@
// Turns the CASES table of effects.jsx into After Effects MCP batch.run operation lists (for
// running the generator through the MCP, where eval.run is disabled).
// Usage: node to-mcp.js <outdir> [stepsItemId]
//
// Run sequence (instance.dialogs empty):
// 1. ae_save_project path <corpus>/scratch-close.aep (never project.open on a
// dirty untitled project: AE then raises a Save As dialog)
// 2. project.open <corpus>/combined/gen/empty-work.aep (copy of 001-empty.aep);
// instance.dialogs must be empty
// 3. batch.run ops/batch-00.json (templates 000-base, 520-solid-M-grey-960x540), then
// ops/smoke.json; ae_save_project path .../combined/effects-smoke.aep; run the Rust check
// with COMBINED_AEP=that file and COMBINED_CASES=216,390,221,534,323,321,077,220,366
// 4. fix the table, reopen empty-work.aep (step 1-2), batch-00, batch-01..NN one by one
// (check `failed` == 0 after each; timeoutMs 180000)
// 5. project.import_file test-media/steps.png -> item id N; node to-mcp.js ops N;
// batch.run ops/footage-905-....json
// 6. ae_save_project path <corpus>/combined/effects.aep
// Writes <outdir>/batch-00.json (templates), batch-NN.json (cases, a few per batch) and, when a
// stepsItemId is given, the footage case(s) that need the imported steps.png item.
var fs = require("fs");
var path = require("path");
var src = fs.readFileSync(path.join(__dirname, "effects.jsx"), "utf8");
var EC_DATA_ONLY = true;
eval(src); // our own generator file (trusted, local): defines CASES, BASE, BASE_M
var out = process.argv[2] || path.join(__dirname, "ops");
var stepsId = process.argv[3] ? Number(process.argv[3]) : null;
fs.mkdirSync(out, { recursive: true });
function ops(comp, st) {
var op = st[0];
if (op === "fx") {
var a = { comp: comp, layer: st[1], matchName: st[2] };
if (st.length > 3) a.name = st[3];
return { operation: "effect.add", args: a };
}
if (op === "set") return { operation: "effect.set_property", args: { comp: comp, layer: st[1], effectIndex: st[2], property: [st[3]], value: st[4] } };
if (op === "key") return { operation: "effect.set_property", args: { comp: comp, layer: st[1], effectIndex: st[2], property: [st[3]], value: st[5], time: st[4] } };
if (op === "expr") return { operation: "expression.set", args: { comp: comp, layer: st[1], property: ["ADBE Effect Parade", st[2], st[3]], expression: st[4] } };
if (op === "eval") return { operation: "property.get", args: { comp: comp, layer: st[1], property: ["ADBE Effect Parade", st[2], st[3]], time: st[4] } };
if (op === "move") return { operation: "effect.move", args: { comp: comp, layer: st[1], effectIndex: st[2], toIndex: st[3] } };
if (op === "items") return { operation: "effect.set_dropdown_items", args: { comp: comp, layer: st[1], effect: st[2], items: st[3] } };
if (op === "solid") return { operation: "layer.create_solid", args: { comp: comp, name: st[1], color: st[2], width: st[3], height: st[4] } };
if (op === "null") return { operation: "layer.create_null", args: { comp: comp, name: st[1] } };
if (op === "footage") return { operation: "layer.create_footage", args: { comp: comp, sourceItemId: stepsId, name: st[1] } };
if (op === "delete") return { operation: "layer.delete", args: { comp: comp, layer: st[1] } };
if (op === "video") return { operation: "layer.set_enabled", args: { comp: comp, layer: st[1], enabled: st[2] } };
throw new Error("unknown step " + op);
}
var templates = [
{ operation: "comp.create", args: { name: BASE, width: 1920, height: 1080, fps: 25, duration: 5, bgColor: [0, 0, 0] } },
{ operation: "layer.create_solid", args: { comp: BASE, name: "L", color: [1, 0, 0], width: 1920, height: 1080 } },
{ operation: "comp.duplicate", args: { comp: BASE, newName: BASE_M } },
{ operation: "layer.create_solid", args: { comp: BASE_M, name: "M", color: [0.5, 0.5, 0.5], width: 960, height: 540 } }
];
fs.writeFileSync(path.join(out, "batch-00.json"), JSON.stringify(templates));
var PER = 16;
var n = 1, cur = [], count = 0, names = [];
function flush() {
if (cur.length) {
fs.writeFileSync(path.join(out, "batch-" + (n < 10 ? "0" : "") + n + ".json"), JSON.stringify(cur));
n++;
cur = [];
count = 0;
}
}
for (var i = 0; i < CASES.length; i++) {
var c = CASES[i];
if (c.footage) continue;
cur.push({ operation: "comp.duplicate", args: { comp: c.base === "520" ? BASE_M : BASE, newName: c.id } });
for (var j = 0; j < c.steps.length; j++) cur.push(ops(c.id, c.steps[j]));
names.push(c.id);
if (++count >= PER) flush();
}
flush();
if (stepsId !== null) {
for (var k = 0; k < CASES.length; k++) {
var f = CASES[k];
if (!f.footage) continue;
var list = [{ operation: "comp.duplicate", args: { comp: BASE, newName: f.id } }];
for (var m = 0; m < f.steps.length; m++) list.push(ops(f.id, f.steps[m]));
fs.writeFileSync(path.join(out, "footage-" + f.id + ".json"), JSON.stringify(list));
}
}
// Smoke test: one case per step kind, built on top of batch-00 (run on a scratch save first).
var SMOKE = ["216-", "390-", "221-", "534-", "323-", "321-", "077-", "220-", "366-"];
var smoke = [];
for (var q = 0; q < CASES.length; q++) {
var sc = CASES[q];
var hit = false;
for (var r = 0; r < SMOKE.length; r++) if (sc.id.indexOf(SMOKE[r]) === 0) hit = true;
if (!hit) continue;
smoke.push({ operation: "comp.duplicate", args: { comp: sc.base === "520" ? BASE_M : BASE, newName: sc.id } });
for (var u = 0; u < sc.steps.length; u++) smoke.push(ops(sc.id, sc.steps[u]));
}
fs.writeFileSync(path.join(out, "smoke.json"), JSON.stringify(smoke));
console.log("batches", n - 1, "cases", names.length);