Skip to content

🎥 Make videos programmatically with React

create workflows section

Jonny Burgerdc3a339f33ec
diff --git a/packages/docs/docs/rendering-from-dataset.md b/packages/docs/docs/dataset-render.md
similarity index 97%
rename from packages/docs/docs/rendering-from-dataset.md
rename to packages/docs/docs/dataset-render.md
index 48f1284439..38773372ff 100644
--- a/packages/docs/docs/rendering-from-dataset.md
+++ b/packages/docs/docs/dataset-render.md
@@ -1,6 +1,6 @@
---
id: dataset-render
-title: Rendering From Dataset
+title: Render a dataset
---
You can write a script to generate videos based on different input props from datasets.
@@ -40,7 +40,7 @@ import { getCompositions, renderMedia } from "@remotion/renderer";
for (var data of dataset) {
inputProps['name'] = data['name'];
- inputProps['color'] = data['color'];
+ inputProps['color'] = data['color'];
const comps = await getCompositions(bundleLocation, {
inputProps,
@@ -54,7 +54,7 @@ for (var data of dataset) {
throw new Error(`No composition with the ID ${compositionId} found.
Review "${entry}" for the correct ID.`);
}
-
+
const outputLocation = `out/${inputProps['name']}.mp4`;
console.log("Attempting to render:", outputLocation);
await renderMedia({
@@ -69,4 +69,4 @@ for (var data of dataset) {
(also make sure to take care that each output video gets a different output location)
-The script can be run using node or ts-node (in case of typescript).
\ No newline at end of file
+The script can be run using node or ts-node (in case of typescript).
diff --git a/packages/docs/docs/lottie/lottie-aftereffects.md b/packages/docs/docs/lottie/lottie-aftereffects.md
index 3d16880a67..9fddeb3eff 100644
--- a/packages/docs/docs/lottie/lottie-aftereffects.md
+++ b/packages/docs/docs/lottie/lottie-aftereffects.md
@@ -1,6 +1,6 @@
---
id: lottie-aftereffects
-title: Importing from After Effects
+title: Import from After Effects
slug: after-effects
---
@@ -54,9 +54,9 @@ Click Render <InlineStep>3</InlineStep> to write the file.
Copy the file into the Remotion project. The recommended way is to put the JSON inside the `public/` folder of Remotion (create it if necessary) and then load it using [`staticFile()`](/docs/staticfile):
```tsx twoslash title="Animation.tsx"
-import { continueRender, delayRender, staticFile } from "remotion";
-import { useEffect, useState } from "react";
import { Lottie, LottieAnimationData } from "@remotion/lottie";
+import { useEffect, useState } from "react";
+import { continueRender, delayRender, staticFile } from "remotion";
const Balloons = () => {
const [handle] = useState(() => delayRender("Loading Lottie animation"));
diff --git a/packages/docs/docs/lottie/lottie-lottiefiles.md b/packages/docs/docs/lottie/lottie-lottiefiles.md
index d6ad1601ca..8253f66285 100644
--- a/packages/docs/docs/lottie/lottie-lottiefiles.md
+++ b/packages/docs/docs/lottie/lottie-lottiefiles.md
@@ -22,9 +22,9 @@ If you find a file that you like, click on it, then click `Download` <InlineStep
Copy the file into the Remotion project. The recommended way is to put the JSON inside the `public/` folder of Remotion (create it if necessary) and then load it using [`staticFile()`](/docs/staticfile):
```tsx twoslash title="Animation.tsx"
-import { continueRender, delayRender, staticFile } from "remotion";
-import { useEffect, useState } from "react";
import { Lottie, LottieAnimationData } from "@remotion/lottie";
+import { useEffect, useState } from "react";
+import { continueRender, delayRender, staticFile } from "remotion";
const Balloons = () => {
const [handle] = useState(() => delayRender("Loading Lottie animation"));
@@ -54,4 +54,4 @@ const Balloons = () => {
## See also
-- [Importing from After Effects](/docs/lottie/after-effects)
+- [Import from After Effects](/docs/lottie/after-effects)
diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.js
index 540510aed1..cfe0b13696 100644
--- a/packages/docs/sidebars.js
+++ b/packages/docs/sidebars.js
@@ -321,8 +321,6 @@ module.exports = {
"scaling",
"video-manipulation",
"render-as-gif",
- "figma",
- "spline",
],
},
{
@@ -409,7 +407,6 @@ module.exports = {
"troubleshooting/defaultprops-too-big",
],
},
-
{
type: "category",
label: "Snippets",
@@ -421,6 +418,17 @@ module.exports = {
"miscellaneous/snippets/offthread-video-while-rendering",
],
},
+ {
+ type: "category",
+ label: "Workflows",
+ items: [
+ "dataset-render",
+ "miscellaneous/render-all",
+ "figma",
+ "spline",
+ "lottie/lottie-aftereffects",
+ ],
+ },
{
type: "link",
href: "/docs/api",
@@ -445,7 +453,6 @@ module.exports = {
"react-18",
"legacy-babel",
"miscellaneous/typescript-aliases",
- "miscellaneous/render-all",
"miscellaneous/render-in-browser",
],
},