set_reactions
Replace all prototype reactions on a Figma node with raw Plugin API Reaction objects to handle advanced triggers like SET_VARIABLE, CONDITIONAL, or ON_KEY_DOWN.
Instructions
Replace all prototype reactions of a node with raw Figma Plugin API Reaction objects ({ trigger, actions: [...] }). Use for advanced cases (e.g. SET_VARIABLE, CONDITIONAL, ON_KEY_DOWN). Trigger timeout/delay are in milliseconds, transition duration in seconds.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | ID of the node | |
| reactions | Yes | Array of raw Reaction objects; an empty array removes all reactions |