bind_variable_to_node
Bind a variable to a node's dimension or style field (e.g., width, height, cornerRadius) by specifying field and variable ID, or unbind by passing null. Variable type must match field type.
Instructions
Bind a variable to a node field (e.g. width, height, characters, itemSpacing, topLeftRadius, or cornerRadius to bind all four corners at once), or unbind by passing variableId: null. The variable's resolvedType must match the field's type. To bind a fill or stroke color use bind_variable_to_paint instead; get bindable variable ids from get_variable_defs. Returns { ok, nodeId }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| field | Yes | Bindable field name, e.g. "width" | |
| nodeId | Yes | Node to bind on | |
| variableId | Yes | Variable id to bind, or null to remove the binding on this field |