Skip to main content

Distance

Intro

Drive an attribute of one layer using its distance from another.

UI

Common Attributes +

Target - Connect a shape to measure from.

Offset - Add/subtract a value to the output.

Example
  1. Create two Basic Shapes
  2. Create a Distance.
  3. Connect basicShape1distance.target.
  4. Connect distance.idbasicShape2.rotation.
  5. 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.