|  Developer
Updated on June 23, 2022

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!
Edit
Here is it an example of usage:
Edit
				
					{
   "id":"_ID_",
   "jsonrpc":"2.0",
   "method":"hub.scenes.scripts.set",
   "params":{
      "_id": "5cf0dc8c7f000068d223e88a",
      "name": "better name than was before"
   }
}				
			
Edit
				
					{
    "error": null,
    "id": "_ID_",
    "result": {
    }
}