How to transform a shape into another shape!


Related resources to this post are in the box below:

If your two objects happen to have the same number of node points, then you can use the Blend Shape behaviour to achieve this. In the majority of use cases, this is unlikely, and so there is another method…

Morph Behaviour

For this example, we will turn a Star into a Circle. Hold Alt and click on each tool to add a basic version of each to the scene.

Having added those, edit the Star Shape in the attribute editor, click on Deformers > Morph. Let’s have a quick look at the options offered by this behaviour.

morph window in cavalry

Strength refers to where you are in the morphing process.
Mode can be Simple Morph or Wave Morph. The latter should be employed where you have particularly complex shapes, such as outlined text characters.
Morph Target is the resulting shape (i.e. the circle).
Morph Divisions allows you to edit the number of nodes.
Sampling Offset — sometimes the starting node will be in a position that makes the morph fold between shapes. You may not want this to occur and so adjusting this value will change how the transition works.

Back to our animation! Drag the Circle shape into the Morph Target field to make a connection. Hide the Circle (Ellipse Shape) layer. You can preview the morph animation by scrubbing the Morph Strength value.

The standard effect

Scrub to the 50% marker to see the midpoint of the animation. Now by playing with the Sampling Offset value you can tidy up the animation if needed.

Once this looks right, you can add the Strength keyframes to your scene — 0 to 100%.

Final animation

Playing with attributes such as rotation, colour, and easing could make the result more interesting.

—
I have tried to give a simple overview to this process, but if you’d rather follow along with a more detailed video, try this one from the Cavalry YouTube channel: Using Cavalry to morph between shapes