> ## Documentation Index
> Fetch the complete documentation index at: https://rendermate.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Migrate from Plainly

> Move Plainly After Effects templates to Rendermate: footage, compositions and dynamic layers as documents, animation as Lottie or keyframes, parameters, renders, webhooks and delivery, step by step.

A Plainly video is an After Effects project uploaded as a template, with layers marked as
parameters that each render fills in. A Rendermate video is a [document](https://rendermate.com/docs/documents.md): a timeline of
JSX nodes, versioned like a git repository and rendered on Rendermate's GPUs. This guide moves a
Plainly integration over in the order you'd do it: files first, then each template, then rendering
and delivery.

***

## (1) How do I move my files to Rendermate?

Every file a document uses is a file in your workspace. Your After Effects project's footage,
images and fonts are on your computer, and the [CLI](https://rendermate.com/docs/cli.md) keeps a folder of them in step with one
in your workspace:

```bash theme={null}
rendermate login
rendermate sync ./project-files
```

Media you pass to Plainly as parameter URLs moves with `import_asset` (`POST /v1/imports`), once
per file:

```bash theme={null}
curl https://api.rendermate.com/v1/imports \
  -H "Authorization: Bearer $RENDERMATE_API_KEY" \
  --json '{ "url": "https://my-bucket.s3.amazonaws.com/clip.mp4", "name": "renders/clip.mp4" }'
```

A document then refers to each file as `asset://<name>`, such as `asset://renders/clip.mp4`.

***

## (2) How do I rebuild an After Effects template as a document?

### (A) Keep the animation as Lottie

Export the animated parts of the composition, such as the intro, the lower third and the
transitions, as Lottie JSON with the Bodymovin extension, with its images included in the JSON.
Upload each file, declare it in `assets.lotties`, and play it with a `<lottie>` node. Put the
parameter layers, the text and media that change per render, on top as `text` and `media` nodes:

```jsx theme={null}
export const assets = {
  lotties: [{id: "intro", source: {type: "uri", uri: "asset://ae/intro.json"}}],
  fonts: [{id: "montserrat", family: "Montserrat", weight: 700, style: "normal", source: {type: "uri", uri: "asset://fonts/Montserrat-Bold.ttf"}}],
};

// Inside <timeline>:
<lottie
  id="intro"
  common={{start: 0, duration: 4, order: "a0"}}
  assetId="intro"
  destination={{x: 0, y: 0, width: 1920, height: 1080}}
/>
<text
  id="headline"
  common={{start: 1, duration: 3, order: "a1"}}
  content={{
    type: "paragraph",
    text: "Hello World",
    position: {x: 0, y: 560},
    width: 1920,
    align: "center",
    style: {fontId: "montserrat", fontSize: 64, color: "#ffffff"},
  }}
/>
```

### (B) Rebuild the composition as nodes

Connect your agent to `https://api.rendermate.com/mcp` ([Claude Code](https://rendermate.com/docs/mcp/claude-code.md),
[Cursor](https://rendermate.com/docs/mcp/cursor.md)) and give it frames of the composition and its layers with their keyframes.
It writes the document with `create_document` and `edit_document` and checks each moment with
`get_frame` against your frames, following the mapping below. You can also write the nodes
yourself: [How do I edit a document?](https://rendermate.com/docs/documents.md#how-do-i-edit-a-document) shows the request.

### How does a composition map onto a document?

| After Effects and Plainly | | Rendermate |
| - | - | - |
| The composition's width and height | → | `canvas.width`, `canvas.height` |
| The composition's frame rate | → | `canvas.frameRate`: `{numerator: 25, denominator: 1}` |
| The composition's duration | → | `canvas.duration`, in seconds |
| A layer's in point and out point | → | `common.start` and `common.duration`, in seconds: frames divided by the frame rate |
| Layer stacking, top of the panel on top | → | `common.order` keys: the bottom layer gets the lowest key, such as `"a0"` |
| A precomp | → | Its layers, with the precomp's start added to theirs, or a `<lottie>` node |
| A solid | → | `<fill>` for the whole frame, or `<shape>` with a `rect` geometry |

[How do order keys work?](https://rendermate.com/docs/documents.md#how-do-order-keys-work) explains the keys.

### How do dynamic layers map?

| Plainly | | Rendermate node |
| - | - | - |
| A text layer parameter | → | `<text>` with `paragraph` content, its `id` the parameter name |
| An image parameter | → | `<media>` with an asset from `assets.images` |
| A video parameter | → | `<media>` with an asset from `assets.media` |
| An audio parameter | → | `<audio>` with `gain` |
| A color parameter | → | The `color` of a text style or a shape's `paint` |
| Media auto scale `fill` | → | `fit="cover"` |
| Media auto scale `fixedRatio` | → | `fit="contain"` |

### How do positions and anchor points become pixels?

After Effects places a layer's anchor point at its position. A document places a `media` or
`shape` node in a rectangle in pixels, and a `text` node at a `position` in pixels, both from the
canvas's top-left corner. A 640×360 layer with its anchor point at its center and its position at
960, 540 has its top-left corner at 640, 360. A text node's `position` is where its first line's
baseline starts.

### How do After Effects keyframes become Doc.keys?

Keyframe the value itself, `Doc.keys([seconds, value, easing], …)`, timed from the node's own
`start`, not from the composition's start. A keyframe's easing shapes the move to the next one.

| After Effects | | Rendermate |
| - | - | - |
| Opacity 0% to 100% over 12 frames at 25 fps | → | `common.opacity`: `Doc.keys([0, 0], [0.48, 1])` |
| Position keyframes | → | `common.transform.translateX` and `translateY`, as the difference from the node's pixels |
| Scale keyframes | → | `common.transform.scaleX` and `scaleY`, as factors: 120% is 1.2 |
| Rotation keyframes | → | `common.transform.rotate`, `{value, unit: "degrees"}` |
| Linear keyframes | → | `"linear"` |
| Easy Ease, Easy Ease Out, Easy Ease In | → | `"easeInOutCubic"`, `"easeOutCubic"`, `"easeInCubic"` |
| Hold keyframes | → | `"hold"` |

### What do Plainly's scripts become?

Your code works out the numbers that the scripts worked out during the render:

| Plainly script | | Rendermate |
| - | - | - |
| **Crop** to a background video's length | → | `canvas.duration` set to the file's own length, in seconds |
| **Extend** a layer | → | The node's `common.duration` |
| **Set duration**, **Trim**, **Shift** | → | The node's `common.duration`, `sourceIn` and `common.start` |
| **Spread layers** | → | Each node's `start` as the previous one's `start` plus its `duration`, or a `sequence` node |
| **Text auto scale** | → | A smaller `fontSize` for longer values, chosen by your code and checked with `get_frame` |
| **Set composition size** | → | `canvas.width` and `canvas.height` |

***

## (3) How do I replace parameters and batch renders?

Your code writes the values into the JSX. Keep your template as a JSX string with placeholders, such
as `{{headline}}`, one per Plainly parameter, replace them, and send the result:

* **One video per record:** call `create_document` with the filled-in `jsx`.
* **A change to one video:** commit an `edits` replacement, such as the headline's text, on the
  version you read.
* **A batch, such as a CSV:** loop over the rows, creating a document and an export for each.

Every edit is a new version that stays readable, with its author and message, and
[`list_versions`](https://rendermate.com/docs/mcp/tools/documents#list_versions) shows the history.

***

## (4) How do I move captions, voice-overs and avatar videos?

Call the model through `create_generation` (`POST /v1/generations`), at the provider's own price.
Its output is saved as an asset, ready for a document's `assets`:

| Plainly | | Rendermate |
| - | - | - |
| A captions file (`srtFileUrl` or `assFileUrl`) | → | A transcription model, such as `assemblyai/universal-2`, then `text` nodes; or a `text` node per line of your SRT file |
| A voice-over you record or generate elsewhere | → | A speech model, such as `elevenlabs/v4` or `assemblyai/tts-1` |
| Render on HeyGen avatar | → | The avatar video imported with `import_asset`, as a `<media>` node |
| A `watermark` | → | A `<media>` node from `assets.images` on top |

A transcript has every word with its start and end time, so captions can show line by line or word
by word. [Models](https://rendermate.com/docs/models.md) lists every model, with its inputs and params.

***

## (5) How do I render, get notified and deliver the video?

| Plainly | | Rendermate |
| - | - | - |
| `POST /api/v2/renders` with `projectId`, `templateId` and `parameters` | → | `create_export` (`POST /v1/exports`) with the document and a version |
| `GET /api/v2/renders/{renderId}` | → | `get_export` (`GET /v1/exports/{id}`) |
| `DONE`, `FAILED` | → | The export's status, and webhooks `export.succeeded` and `export.failed` |
| `webhook.url`, `onFailure` | → | [Webhooks](https://rendermate.com/docs/webhooks.md): `export.succeeded` and `export.failed` |
| `webhook.passthrough` | → | Your own record of the export's `id` |
| `output` | → | The export's `download_url` |
| `options.thumbnails` with `atSeconds` | → | `get_frame` (`POST /v1/documents/{id}/frames`) at those seconds |
| API key as Basic auth | → | `Authorization: Bearer` with a Rendermate API key |
| Uploads to S3, YouTube, Vimeo, Drive or Dropbox | → | Your webhook handler copies the file from `download_url` |
| Sharing the render's link | → | A link (`create_link`): a page, an embed and HLS playback |

Exporting a version again reuses what was already rendered.

A link plays one fixed version, or follows `latest`, so it plays each new version as you commit it.
It can autoplay, show controls, expire and ask for a password, and its pages can be on
[your own domain](https://rendermate.com/docs/custom-domains.md).

***

## (6) How do I switch over?

### (A) All at once

For a few templates, rebuild each one as a document, check it with `get_frame`, and switch your code
from `POST /api/v2/renders` to `create_export` in one release.

### (B) One template at a time

For a larger integration, keep rendering with Plainly while you move one template over:

1. Rebuild it as a document.
2. Compare a frame of your Plainly render with `get_frame` at the same time.
3. Switch the code that renders it to `create_export`, and its webhook handler to
   `export.succeeded`.
4. Move on to the next.

***

## Next steps

* [Documents](https://rendermate.com/docs/documents.md): every node, keyframes, assets and errors.
* [Webhooks](https://rendermate.com/docs/webhooks.md): verify and handle `export.succeeded`.
* [Models](https://rendermate.com/docs/models.md): every model `create_generation` can call.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.