set_camera
Create or update a camera for render_final by placing it explicitly via location and look_at, or by framing named objects; set azimuth, elevation, fov, ortho scale, and roll.
Instructions
Create or update a camera for render_final. Place it one of two ways.
Explicit: location and look_at in world metres; on an existing camera, one of them keeps the other.
Framed: frame is a list of object names (with children); the camera stands so their box fits the view.
azimuth (degrees around Z: 0 looks from the front at -Y, 90 from +X; 35 when empty) and elevation (above
the horizon; 20 when empty) set the side; margin is spare room (1.15 = 15%); look_at overrides the aim point.
fov_deg is the vertical field of view and is applied on every call, so repeat it on updates. fov_deg=0 or an
ortho_scale (metres across) makes it orthographic. roll_deg rolls about the view axis. make_active sets the
scene camera. Returns the location, the forward vector and the projection. For a camera that matches a photo
use match_camera.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | camera | |
| frame | No | ||
| margin | No | ||
| azimuth | No | ||
| fov_deg | No | ||
| look_at | No | ||
| location | No | ||
| roll_deg | No | ||
| elevation | No | ||
| make_active | No | ||
| ortho_scale | No |