hub.scenes.scripts.set
- Version: 1.0
- Classes: UI
- Title: Scene manager categories
- Description: Change a script snippet, you can modify a script snippet even if the script snippet is associated with some scene.
Edit
| Field | Type | Required | Description |
|---|---|---|---|
| _id | string | + | Id of a script snippet to change |
| code | string | – | Lua code snippet to be run within a scene (Max 5 kb for Linux and 1 kb for Atom) |
| name | string | – | Title for the script snippet ( Max 30 characters ) |
Edit
| Code | Message | Data |
|---|---|---|
| -32600 | Wrong params, | |
| -32600 | Anonymous plugin doesn’t exist! |