A utility library for After Effects ExtendScript development. It provides a set of reusable functions for working with compositions and layers in After Effects.
npm install aekit
# or
yarn add aekit
In your ExtendScript file:
var aekit = require("aekit");
var myComp = aekit.comp.find("Main Composition");
var newLayer = aekit.layer.createSolid(
myComp,
"Background",
[1, 0, 0],
1920,
1080,
5
);
var frameCount = aekit.utils.secondsToFrames(5, 30);
-
aekit.comp.find(name)
: Find a composition by name -
aekit.comp.create(name, width, height, duration, frameRate)
: Create a new composition -
aekit.layer.find(comp, name)
: Find a layer in a composition by name -
aekit.layer.createSolid(comp, name, color, width, height, duration)
: Create a solid layer -
aekit.utils.secondsToFrames(seconds, fps)
: Convert seconds to frames -
aekit.utils.framesToSeconds(frames, fps)
: Convert frames to seconds
MIT