Connect attributes
cavalry_connectConnects a source layer output to a target layer's input attribute in Cavalry, optionally replacing an existing connection.
Instructions
Connect an output to an input. A layer's main output is its "id" attribute, e.g. connect shape "id" -> duplicator "shapes", or colorMaterial "id" -> shape "material" with force=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | Replace an existing input connection. Defaults to false. | |
| toAttrId | Yes | Attribute path, e.g. "position.x", "rotation", "material.materialColor". | |
| toLayerId | Yes | Cavalry layer id, e.g. "basicShape#1". Use cavalry_list_layers to find ids. | |
| fromAttrId | No | Source attribute. Defaults to "id" (the layer's output). | |
| fromLayerId | Yes | Cavalry layer id, e.g. "basicShape#1". Use cavalry_list_layers to find ids. |