set_opacity
Adjust a Figma node's layer opacity between 0 (transparent) and 1 (opaque). Opacity multiplies with fill or stroke alpha; for full exclusion use set_visible.
Instructions
Set a node's layer opacity from 0 (transparent) to 1 (opaque); this multiplies with any fill or stroke alpha. Opacity 0 still renders, exports, and hit-tests — to exclude a node from rendering use set_visible(false), and to remove it use delete_nodes. Returns { ok, nodeId }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nodeId | Yes | Figma node id | |
| opacity | Yes | Opacity 0–1 |