Tutorial 46: Text Wrap around Shapes in Cavalry

This is not a true Text Wrap feature, like you can find in InDesign or Illustrator. This is more of a mograph way of simulating it. At the end, you can get some interesting results and it takes very little time to set up. Main “workhorse” of this method is Ray tool.

Ray tool simply shoots out a ray or line from a single point in 1 or 2 directions. Thats it. It goes indefinitely, unless it collides with something. And this whole method or effect relies on this Collision data. By using this Ray inside a Duplicator, we can create whole columns of Rays that will react to objects they collide with.

Whole paragraphs only please

We can simplify this method to instancing single line text on a path (Ray). By using multiple Rays inside a Duplicator, we simulate paragraph lines. This is why this setup works best with a single paragraph, no matter how long. If you have spaces (extra lines) in your text, then you will end up with multiple lines overlapping each other.

This is why I would recommend you “clean up” or sanitise your text first, before using it in a Text Wrap setup.

Text Wrap around objects

As mentioned before, Ray shoots out a line in one or two directions. When you want to wrap text around the object, you need to use minimum 2 “columns” of Rays inside Duplicator. For example, Grid > Count X: 2 as. minimum. This will allow Rays to detect back of the object easily.

However, this creates it’s own problems. Rays do not collide or detect each other in this setup. This will result with text overlapping itself in certain places. To fix this, I ended up using a simple Path / Line parented to my main shape. This helps separate Rays from each other and creates a text column layout as well.

Text inside Objects

This method is really interesting and a bit complex, too. We need to create Rays only inside the Shape. Duplicator > Mode > Mask is perfect for this. This mode means that Duplicator will create Shapes inside a Mask only. We can setup custom distribution for this Mask duplication. For example:

  • Duplicator > Mask – to limit where things are generated
  • Sort – to reorder our Rays
  • Linear – to create a single column or Rays

This will result in a single column of Rays, reordered top to bottom, inside our Shape. It’s super handy and powerful as it is responsive to Shape changes, too.

If you end up in a situation where text “spills” out of your shape, then simply use Is Within modifier on Text > Sub-Mesh to hide text outside your Shape. This “spillover” occurs, because our text needs to go somewhere, even when it does not fit within inside the Mask.

Get Project File From Gumroad

This project file contains all the assets necessary to make animation in the tutorial in final form. Everything is labeled, linked, with expressions and ready to use, if you wish to make your own version or just play around with it.

If you have any suggestions for tutorials or how I can improve, please do get in touch. I would love to hear from you.

Found it helpful? Consider sharing it with others.

Other tutorials

2026-01-21T16:53:38+00:00
Go to Top