-
Notifications
You must be signed in to change notification settings - Fork 0
Communication between the CLI and OGrEE 3D
Cédric Vautrain edited this page Jan 17, 2022
·
16 revisions
OGrEE-3D is listening to the TCP port 5500.
All data are given with a simple json structure:
{
"type" : "keyword",
"data" : "serialized corresponding data structure"
}
{
"type" : "load template",
"data" : "JSON of the template (in API format)"
}
{
"type" : "select",
"data" : "id of the object to select"
}
{
"type" : "delete",
"data" : "id of the object to delete"
}
{
"type" : "focus",
"data" : "id of the object to focus"
}
{
"type" : "create",
"data" : "JSON of the created object (in API format)"
}
{
"type" : "modify",
"data" : "JSON of the created object (in API format)"
}
{
"type" : "ui",
"data" : Serialized UI instruction
}
{
"command" : "delay",
"data" : "time"
}
{
"command" : "infos",
"data" : "true|false"
}
{
"command" : "debug",
"data" : "true|false"
}
{
"command" : "highlight",
"data" : "id of the object to highlight"
}
{
"type" : "camera",
"data" : Serialized camera instruction
}
{
"command" : "move",
"position" : "{"x":posX, "y":posY, "z":posZ}",
"rotation" : "{"x":rotX, "y":rotY}"
}
{
"command" : "translate",
"position" : "{"x":posX, "y":posY, "z":posZ}",
"rotation" : "{"x":rotX, "y":rotY}"
}
{
"command" : "wait",
"position" : null,
"rotation" : "{"x":999, "y":time}"
}