assembly_set_occurrence_state
Set an assembly occurrence's grounded state and/or visibility to fix it in place or show/hide it. Returns the updated is_grounded and is_light_bulb_on flags.
Instructions
Ground/unground an occurrence and/or switch its light bulb (visibility). Pass at least one of grounded, light_bulb.
Returns {"occurrence": occurrence} with "is_grounded" and "is_light_bulb_on".
Example: assembly_set_occurrence_state(occurrence="occurrence:Box:1", grounded=true).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grounded | No | Fix the occurrence in place (ground) | |
| light_bulb | No | Show (true) or hide (false) the occurrence | |
| occurrence | Yes | Occurrence: 'occurrence:<fullPathName>' (e.g. 'occurrence:Box:1', nested 'occurrence:Box:1+Hinge:1') as returned by assembly_list |