Cavalry Animation
Published in

Cavalry Animation

Dynamic Rendering

Cavalry has the ability to easily create many variations of the same render. We call this Dynamic Rendering.

Our example scene for dynamic rendering.

You simply say how many times you want your Composition to render, Cavalry then gives you access to a ‘Dynamic Index’ attribute which you can use to change things in your scene — per render. It’s really very simple, and insanely powerful.

Here we start with a simple animation of some string animation showing the population of Tokyo.

A render of our example scene.

Let’s open the Render Manager and see what we have here.

Note the ‘Dynamic Index’ attribute.

When we click the Dynamic Render checkbox it enables a ‘Number of Renders’ attribute, this is the number of variations we want to create.

Next we need something to change dynamically. This scene contains a spreadsheet of city names and populations that is connected to our text shapes via a couple of Spreadsheet utilities.

After we turn on Dynamic Rendering, we need to tell the Spreadsheet utilities that we want to set the spreadsheet row index ourselves (Cavalry automates this by default, more on that another day) and then we’ll connect the Row Index with the Dynamic Index from the Render Manager.

It takes just a few clicks to set up Dynamic Rendering.

So that’s it, we’re all set up. Now let’s press render and see what happens. Here are the first 4 renders.

We can take this a step further by choosing a random color for each city with a Color Array utility and a Random Behaviour (connected to the Colour Array index). To get different random numbers each time, we simply connect the Dynamic Index to the Random Seed attribute on the Random Behaviour.

As you can see, this kind of feature is extremely useful for versioning or producing a lot of similar or even randomly generated variations of an animation or still. Imagine if you needed the same animation outputting at multiple resolutions, a feature like Dynamic Rendering when used together with other features such as Comp Constraints (which pins Elements to the edges of your composition) make these potential logistical nightmares easy to deal with. Here’s an example of such a situation:

All of this is one Composition, using Dynamic Rendering and Comp Constraints.



Created by animators, for animators — Cavalry makes 2d animation smarter, easier and faster to produce. Available for Mac and Windows.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ian Waters

Ian Waters


Co-creator of Cavalry. CTO of Scene Group. Ex-Animator with a background in Interaction Design.