Connections is the next of the core concepts of Cavalry we will look at.
Related resources to this post are in the box below:
Cavalry is a node based program, which means that connections can be used to drive attributes from one element to another.

An example of a connection.
You can identify a connection anchor as anything that turns blue on hover. You simply click and drag from the desired anchor to make a connection to another attribute anchor. Where this isn’t possible, the ending of the line will turn to red.
Input / Output
Connections can be either Inputs or Outputs. When you make a connection there are a couple of indicators to look out for, which will appear in the Scene Window layer stack and in the Attribute Editor.

A detail of a live connection, in the scene window.
An Input is when an attribute is being driven by another attribute. Indicated by a yellow left arrow icon.
An Output is when an attribute is driving another attribute. Indicated by a purple right arrow icon.
Clicking on the yellow/purple icon allows you to view and manage active connections.
Connecting Scale
You might have two objects in your scene, and want them always be the same size. Let’s go with a square and a circle. Link them by dragging the square’s scale attribute anchor to the scale anchor of the circle. Going forward, if you edit the scale value of the square object, the circle will scale with it.
Connecting scale between shapes.
Connecting Position
We can use this process to affect positioning as well; for example, by linking the x (horizontal) value of one shape to the y (vertical) value of another. Now, animating the square along the x axis, moves the circle along the y axis at the same pace.
Connecting positioning between shapes.
As you can imagine, being able to link attributes together like this provides a multitude of possibilities. We’ll be making a lot of connections, so if you are following along, I encourage you to try out the simple examples above.
—
Discover more on the Cavalry documentation site: Context




