object.move
Moves an object forward or back among the objects beside it.
JSON-RPC 2.0project.write
to counts from the back, from 0. Objects in a group move among that group's objects.
Parameters
- objectstringrequiredThe object's id or name.
- scenestringIts scene's id or name. Default: the scene being edited.
- positionstring
front,back,forwardorbackward. - tonumberAn index from the back, instead of
position.
Result
- indexnumberWhere it is now, from the back.
Errors
Invalid params (-32602) without position or to. Not found (-32004) for an unknown scene or object.
Events
Subscribers to events get workspace.changed.
From an AI agent
The MCP server's move_object reaches this method.
Example
{ "jsonrpc": "2.0", "id": 1, "method": "object.move", "params": { "object": "Webcam", "position": "front" }}lightair call object.move '{"object":"Webcam","position":"front"}'const result = lightair.call("object.move", {"object":"Webcam","position":"front"});Result
{ "index": 4 }