Skip to main content

camera.get_view

Overview

  • Returns the live state of the active game camera: world position, rotation, the forward/right/up unit vectors derived from that rotation, the field of view actually in effect this frame, aspect ratio, projection mode, viewport resolution, the current inZOI camera mode (ShoulderView, QuarterView, BuildView, PhotoMode, ...) and the actor the camera is following. This reads the camera cache the renderer used, so fov here is the value in effect right now, which can differ from the user preference reported by camera.get_settings. aspect_ratio is the effective one used to render (the viewport aspect unless the camera constrains it), not the camera's raw AspectRatio field, which normally sits at an unused 4:3 default. Coordinates are Unreal world space: left-handed, Z-up, centimetres, with forward = +X, right = +Y, up = +Z. The camera interpolates and does collision avoidance every frame, so treat the result as a snapshot; pause the simulation first if you need a stable reading.

Metadata

FieldValue
DisplayGet Camera View
Categorycamera
AccessPublic
ScopeB1Standalone
TagsExperimental
Aliases—

Parameters

  • This command takes no parameters.

Usage

await inzoi.cli.execute('camera.get_view');