body_set_visibility
Show or hide Fusion 360 bodies and set their opacity, with all-or-nothing rollback if any value is rejected.
Instructions
Show/hide bodies (light bulb) and/or set their opacity.
All or nothing: if Fusion refuses a value for one body, every body gets its previous values back. is_visible in the result is the effective visibility (a hidden component hides its bodies even with the light bulb on).
Errors: neither visible nor opacity, opacity outside 0..1 -> INVALID_PARAMS.
Returns {"bodies": [{ref, type, name, light_bulb, is_visible, opacity}]}.
Example: body_set_visibility(bodies=[a, b], visible=false)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bodies | Yes | Body refs (inspect_query / earlier results) | |
| opacity | No | 0 = transparent .. 1 = opaque | |
| visible | No | Light bulb on/off |