Repository navigation
Conversation
file.importAep (File > Import > After Effects Project...) runs packaging/aep/aep_ir_export.py (py-aep, MIT) through Python at import time and turns its versioned JSON IR into editable EffectCraft objects with the new effectcraft-aep crate; file.importAeIr imports an IR file. The .ecproj it makes needs neither Python nor py-aep. Data the importer needs: TextDoc/CharStyle font version, linked font file and render substitute, digit set and auto-hyphenation; gradient midpoints; SourceLayer.crop_bounds; Puppet MeshGeometry. Text resolves linked fonts and file.findMissing reports substituted fonts. The fork's AEP fidelity fixes to effects and the renderer are not included; six importer tests that check effect parameters added by them are left out with them. Collected from the fork's AEP commits (78b87fe Add editable After Effects import and SceneYard compatibility, b8bdb60, 90b54de, 402136c, c8c66ed, f5329b0, 209c136, 0fa24be, ba3ec8a, de3aa77 and the other AEP import commits), with Value::Path / Value::Gradient unboxed as on upstream main. (cherry picked from commit a8de065c709534d4ea35e101e6749e8823c9fca5)
…rytold#859 storytold#860; fidelity harness waits for agents-1
# Conflicts: # crates/engine/src/lib.rs
…w gradient editor, sampling and tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MMnX8KooFZRPByLioEuyso
|
Thank you for this, @eliasx45! Thanks for the very thorough AEP import work. We're holding it for the maintainers, since it touches the open clean-room question in docs/gaps.md (G4). Things that would need to change in any case:
If you are not on our Discord yet, please join us: https://discord.gg/artcraft |
…pus-mined map Review on storytold#860: - The exporter script is only the app bundle's own copy or EFFECTCRAFT_AEP_EXPORTER, never a search of the executable's parent folders. - file.importAep (runs an outside interpreter) is refused while file access is confined; test. - integrations/effectcraft/ae_effect_map.json and its scanner (mined from a third-party template corpus, with a local path) are removed, and so are third-party plug-in entries (Sapphire, Deep Glow, Shadow Studio) and template pseudo effects in the importer's tables. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014d65YdNxQmjRkbXRtP2NwH
|
@echelon Thanks. Fixed: no parent-folder search for the exporter; file.importAep is refused while confined; the corpus-mined ae_effect_map.json and third-party plug-in entries are removed. Open questions: does this need to wait for clean-room import (G4)? Should the remaining AE effect table be rebuilt from public docs only? |
|
@echelon Further hardening is pushed: bundle-only automatic exporter discovery, bounded stdout plus drained/bounded diagnostics, UTF-8 subprocess output, and explicit Python 3.11 diagnostics. The unreachable corpus-derived Shadow Studio defaults table is also removed. AEP import remains refused under confinement, and unresolved symlinks are rejected. Strict affected-crate Clippy and formatting pass; native launcher checks, a real-Python Unicode probe, and 24 exporter tests pass. Full runtime CI/real-project visual fidelity were not rerun. Clean-room G4 and the remaining first-party effect-table provenance still need the maintainer decision noted earlier; #859 is closed now. |
|
Hi @eliasx45, thanks for this PR! Most of the conflict comes from the shared module layout (#2491), which moved or split files this PR touches:
When you rebase, please also make sure it fits the other recent changes:
CI ( |
|
Thanks for the importer work and the subsequent launcher hardening. Closing this external-converter approach because native .aep/.aepx import landed in #2558 on November 4, and the external py-aep route in #248 is closed as not planned. This is a consolidation decision, not a claim that all fidelity gaps are solved. Please bring any remaining independently reproducible import gaps as focused fixes against the native importer on current main. |
What
.aepimport (File ▸ Import ▸ After Effects Project...,file.importAep;file.importAeIrfor analready converted IR file):
packaging/aep/aep_ir_export.pyreads the.aepwith py-aep(MIT, pinned in
requirements.txt) and writes a versioned JSON IR;convert_aep.pyis astandalone converter.
effectcraft-aepturns the IR into editable EffectCraft objects: comps, layers,keyframes with eases, masks, shapes (repeaters, dashes, gradients), text with styles, animators
and path options, effects through an AE match-name map (
integrations/effectcraft/ae_effect_map.*),layer styles, 3D layers / cameras / lights / models, Puppet meshes, Roto Brush controls, markers
and Essential Properties. Anything it can't represent is reported as a fidelity loss; an import
with losses is refused unless
allowLosses: true.TextDoc/CharStylekeep the requested font's version, a verifiedlinked font file (path + SHA-256) and a render substitute (
render_font),digit_setandauto_hyphenate; gradients keep colour/opacity midpoints;SourceLayer.crop_bounds; PuppetMeshGeometry. Text resolves linked fonts and reports exact / substituted / missing fonts infile.findMissing.Services::export_aep_ir(EFFECTCRAFT_AEP_PYTHON,EFFECTCRAFT_AEP_EXPORTER); browser hosts return Unsupported. Big imports run as a background task.macOS packaging bundles the exporter script. Confined MCP sessions check the paths it reads.
Why
Opening existing After Effects work is gap 1 in
docs/gaps.md.Converter dependency: a question for the maintainers. The converter is an optional external
Python tool, py-aep (MIT), used only while converting, the
way ffmpeg is used only from outside as a test oracle: Python and py-aep are needed at import time
only, the resulting
.ecprojneeds neither, and EffectCraft itself stays pure Rust with no Pythoncode linked in.
docs/gaps.mdlists this route (#248) as an open clean-room question, so: is anoptional external converter like this acceptable to you? If not, the IR and the
effectcraft-aepcrate stay useful for a future native reader. This PR changes no AGENTS.md rule.
Measured fidelity. On 9 October, on our fork, 255 SceneYard template projects
converted and rendered close to After Effects' own renders: median mean-absolute error 0.018, with 2
projects clearly off (a liquid-glass wave shape, 3D lighting);
.aepx,.mogrtand.ffxare notread. That measurement includes the fork's AEP fidelity fixes to effects and the renderer (about 60
commits: Deep Glow, Radio Waves, CC Light Sweep, 4-Color Gradient, Orientation order, light
intensity, text indents, cropped Illustrator layers, ...). They are not in this PR: it is the
importer and the data it needs, so imported projects open and stay editable, but render less
faithfully until those follow. Six importer tests that check effect parameters added by those fixes
(Glow operation, CC Page Turn, CC Sphere, Curves, inert effect defaults, model material keys) are
left out with them.
How tested
rustfmt --checkandcargo checkof the affected crates.cargo test:effectcraft-aep71/71; enginetests_aep4/4 andtests_menu_cmds46/46;keyframe and text pass.
cargo clippy --all-targets -- -D warnings: clean for aep, engine, keyframe, text, project,automation, ui-egui and xtask.
.aepend to end (needs Python, py-aep and After Effects projects) andthe full
cargo xtask ci.Cherry-picked from our fork and adapted to upstream
main: the importer crate as itstands on the fork, plus the parts of
78b87fe6,b8bdb609,90b54de2,402136ca,c8c66ed1,f5329b04,209c1364,0fa24be1,ba3ec8a2,de3aa77aand the other AEP commits that it needs;Value::Path/Value::Gradientstay unboxed as upstream has them.Review hardening update
Merged current upstream main. Automatic exporter discovery is limited to the application bundle; explicit exporter overrides remain supported. The launcher uses bounded stdout and drained/bounded stderr instead of a shared temporary JSON file, forces UTF-8, and reaps failed subprocesses. The Python exporter now reports its 3.11 minimum clearly. Removed the unreachable corpus-derived Shadow Studio defaults table; third-party effects remain outside the effect-id map. Confinement rejects unresolved symlinks and continues refusing AEP import.
Final formatting and strict all-target Clippy for AEP, engine and automation passed. Focused native launcher tests and the real-Python Unicode probe passed; all 24 exporter Python tests passed against the pinned py-aep version. Full runtime CI and real-project visual fidelity were not rerun.
Maintainer decisions remain on clean-room G4 and provenance of the remaining first-party effect table. #859 is now closed.