camera_reset
Default view direction, framing the whole scene. Keeps the projection kind.
Usage
surface.execute('camera_reset', { animate?, viewport? })Parameters
animatebooleanviewportstringthe slot (viewport id); the first by default
Returns
object with eye, target, up, projection, transition, in the ok: true envelope.
{
"type": "object",
"properties": {
"eye": {
"type": "object",
"description": "f64 world-space point or direction",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"z": {
"type": "number"
}
},
"required": [
"x",
"y",
"z"
]
},
"target": {
"type": "object",
"description": "f64 world-space point or direction",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"z": {
"type": "number"
}
},
"required": [
"x",
"y",
"z"
]
},
"up": {
"type": "object",
"description": "f64 world-space point or direction",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"z": {
"type": "number"
}
},
"required": [
"x",
"y",
"z"
]
},
"projection": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"perspective",
"orthographic"
]
},
"fovYDeg": {
"type": "number"
},
"height": {
"type": "number"
}
},
"required": [
"kind"
]
},
"transition": {
"type": "integer",
"minimum": 1
}
},
"required": [
"eye",
"target",
"up",
"projection"
]
}