Convert .ffx files into JS-escaped binary strings + ExtendScript wrapper
npm install ffx-to-jsConvert an After Effects .ffx file into a JS-escaped binary string, optionally wrapped in an ExtendScript helper to recreate the file.
``bash`
ffx-to-js
[--resource-folder
- Default output: .jscontrolName
- Default names: inferred from embedded when present, otherwise the input name.
`bash`
npm install -g ffx-to-jsor
npx ffx-to-js or (local dev)
npm run bin
> [!NOTE]
> bun can be used instead of npm, but npm is the target.
`ts
import {
fileToBinaryString,
fileToFfxScript,
writeBinaryStringToTxt,
} from "ffx-to-js";
// Returns binary string
const binary = await fileToBinaryString("./preset.ffx");
// Returns full JS code (binary string + script)
const script = await fileToFfxScript("./preset.ffx");
// Saves JS code as file
await writeBinaryStringToTxt("./preset.ffx", "./preset.js");
``
This is a modern adaptation of RenderTom's Convert to Binary AE Script