aeFunctions

An importable library of our most used expressions

Github Repo

v2.0.3

Add `addLineBreaks` function

The problem

If you write a lot of expressions, you end up reusing the same code between project and properties. This involves copy/pasting parts bits of code, which is hard to update and keep track of.

The solution

aeFunctions is a library of our most used expressions, that you can import and use across all your projects.

js
// Import aeFunctions library
const { addLineBreaks } = footage("eKeys.jsx").sourceData.getFunctions();
// Use one of the functions
addLineBreaks(value, 24);

This abstracts away a lot of the boilerplate code into reusable and composable functions.

Usage

Import

Download the library .jsx file and import it into your After Effects project.

It's also a good idea to place the file in any compositions where it's used, so that After Effects will count it as used when reducing the project.

Reference the library

Call the getFunctions method of the library, which returns an object containing the functions.

javascript
const { functionName } = footage("aeFunctions.jsx").sourceData.getFunctions();

Use the functions

You then call the function. Documentation for all the functions is below.

javascript
functionName();

API

getFunctions

function


ts
getFunctions();

Returns

An object containing the functions in the library.

Functions

Checking the version

All of our libraries expose a version string you can use to check if it's up to date:

js
throw footage("lib.jsx").sourceData.version;
For enquiries contact us at hey@motiondeveloper.com