bind_variable_to_node
Bind a Figma local variable to a node property such as fillColor, opacity, or visible, making the property value dynamic based on the variable.
Instructions
Bind a local variable to a node property so the property is driven by the variable's value. COLOR variables: use fillColor or strokeColor. BOOLEAN variables: use visible. FLOAT variables: use opacity, rotation, width, height, cornerRadius, topLeftRadius, topRightRadius, bottomLeftRadius, bottomRightRadius, strokeWeight, itemSpacing, paddingTop, paddingRight, paddingBottom, paddingLeft.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Property to bind: fillColor | strokeColor | visible | opacity | rotation | width | height | cornerRadius | topLeftRadius | topRightRadius | bottomLeftRadius | bottomRightRadius | strokeWeight | itemSpacing | paddingTop | paddingRight | paddingBottom | paddingLeft | |
| nodeId | Yes | Target node ID in colon format e.g. 4029:12345 | |
| variableId | Yes | Variable ID to bind (from get_variable_defs) |