By default scripts are not allowed to write files or send or receive communication over a network. To allow scripts to write files and communicate over a network, choose Edit > Preferences > General (Windows) or After Effects > Preferences > General (Mac OS), and select the Allow Scripts To Write Files And Access Network option.
Export the current After Effects comp to FB Keyframes Animation Descriptor JSON document.
Requires "Allow Scripts To Write Files And Access Network"
There are two options for exporting, a command line tool and an After Effects plugin.
- Under this folder run
npm install . -g
- Open an After Effects project
- Open the comp you want to export
- Run
keyframes-cli
in terminal
A file named ${COMP_NAME}.kf.json
should show up under the same folder
- Quit After Effects
- Move (or symlink) this folder into your AE Scripts folder
e.g.
/Applications/Adobe After Effects CC 2015/Scripts/Keyframes
on macOS - Launch After Effects
- Open an After Effects project
- Menu item: File / Scripts / Keyframes_Exporter.jsx
The exporter palette window will open - Press Export
You can keep the palette window open and press Export multiple times.
- Open an After Effects project
- Open the comp you want to export
- Menu item: File / Scripts / Run Script File…
- Choose
Keyframes_Exporter.jsx
The exporter palette window will open - Press Export
You'll see a bunch of progress messages. Eventually the folder with the exported JSON will open. You'll see three new files:
-
Project.aep.comp-###-Comp Name.kf.json
FB Keyframes compatible animation descriptor. -
Project.aep.comp-###-Comp Name.json
Raw JSON description. -
Project.aep.comp-###-Comp Name.log
Export progress messages and warnings with timestamps. Check this file for warnings about incompatible features. Also useful for diagnosing performance issues.