set_layers
Set layer visibility or a layer mask on an object or camera in a live Three.js scene. Changes are browser-only, recorded as pending edits, and undoable.
Instructions
[LIVE PREVIEW] Changes the scene in the browser only — NOT saved to source code, lost on reload. Recorded in pending_changes (→ code edits) and undoable with revert_changes. Set layers on an object or the camera.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | No | Set the bitmask directly | |
| name | No | Object name | |
| uuid | No | Object UUID | |
| layer | No | Layer 0-31 to enable/disable | |
| target | No | "camera" to target the camera | |
| enabled | No | Enable or disable that layer |