Skip to content
This repository has been archived by the owner on Jan 10, 2020. It is now read-only.

Latest commit

 

History

History

js

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Keyframes JS Source Code

How to export animations from After Effects

See scripts/README.html


The following are instructions for making changes to the JS code. You don't need to do any of this stuff if you just want to run the script.

Setup

Use yarn or npm.

Install dependencies.

yarn install

Compile into Keyframes After Effects Scripts.

yarn compile

File watcher, compile every time a file changes.

yarn compile-watch

Run tests.

yarn test

File watcher, run the tests every time a file changes.

yarn test-watch

AECompToKeyframesAnimation

Converts After Effects Comp JSON into Keyframes Animation descriptor JSON.

Usage example: Convert an After Effects Comp JSON file into a Keyframes Animation descriptor JSON file.

var AECompToKeyframesAnimation = require('AECompToKeyframesAnimation');
fs.writeFileSync(exportPath, JSON.stringify(AECompToKeyframesAnimation(fs.readFileSync(importPath))));

Usually this code is used by the Keyframes After Effects Scripts/FB Keyframes Exporter.jsx run by Adobe After Effects. /scripts/lib/keyframes/AECompToKeyframesAnimation.js is a compiled version of this code. Compile using the instructions in the setup section above.