Skip to main content
POST
/
camera
set camera position and target
curl --request POST \
  --url http://localhost:3917/camera \
  --header 'Content-Type: application/json' \
  --data '
{
  "eye": [
    8,
    6,
    8
  ],
  "target": [
    0,
    0,
    0
  ]
}
'
{
  "ok": true,
  "message": "<string>"
}

Body

application/json

Camera eye and/or target as [x, y, z] (each optional). Sets CameraOverride so the editor's mouse orbit won't clobber it.

The body is of type any.

Response

200 - application/json

Camera updated.

ok
boolean
required
message
string | null