Distance
Intro
Drive an attribute of one layer using its distance from another.
UI
Target - Connect a shape to measure from.
Offset - Add/subtract a value to the output.
Example
- Create two Basic Shapes
- Create a Distance.
- Connect basicShape1→distance.target.
- Connect distance.id→basicShape2.rotation.
- Move Basic Shape 1
As Basic Shape 1 and Basic Shape 2 move, Basic Shape 2's rotation changes.
info
Measure can also be used to calculate the distance between two Shapes/transforms but it is not possible to use Measure's output to drive either of the Input Shape's transforms as that would create a cycle. Distance allows this as per the example above.