Skip to main content

camera kit

25 tools. Generated from the plugin source; do not edit by hand.

Guide​

Use camera.* to inspect and configure cine-camera work, build physical rail/crane moves, and read the active PIE view. Generic actor creation and transforms remain in actor.*; sequence camera cuts remain in sequencer.*.

Start with a camera actor created through camera.spawn_camera (kind="cine" or kind="camera"; add mountRig="rail" or "crane" to spawn a rig at the same place with the camera already mounted on it), or actor.spawn_camera. Then inspect it with camera.get, use camera.configure_component when a placed camera needs explicit controller-rotation or HMD locks, read cine settings with camera.get_cine, and call camera.list_cine_presets before choosing project-defined preset names. Use camera.configure_cine to apply focal length, aperture, a filmback or lens preset, and manual focus distance in one transaction. camera.configure_tracking_focus changes the cine camera to tracking focus, with an optional target actor and a centimetre offset; it can draw a transient marker for framing review.

For a physical move, call camera.spawn_rig with kind="rail" or kind="crane". Set a rail's normalized position from 0 to 1, or a crane's pitch/yaw and arm length in centimetres. camera.attach_to_rig uses the rig's public moving mount, so subsequent rail/crane controls move the camera. Preserve world placement with its default keepWorldTransform=true unless you deliberately want the camera aligned to the mount.

During Play-In-Editor, call camera.get_runtime_view to inspect the active controller's target, point of view and FOV. Use the existing play.set_view_target if the runtime camera must change. Use sequencer.add_track with kind="camera_cut" when authoring cuts in a Level Sequence.

Typical sequence:

  1. camera.spawn_camera with kind="cine", a label and initial transform (optionally mountRig).
  2. camera.get_cine to establish the current optical state.
  3. camera.list_cine_presets, then camera.configure_cine with the required lens/filmback and manual focus distance.
  4. camera.spawn_rig for a rail or crane at the desired set location.
  5. camera.get_rig to inspect the rig mount and camera.attach_to_rig using the camera and rig labels.
  6. camera.configure_rail or camera.configure_crane to compose the move.
  7. Create the Level Sequence with sequencer.create and add a camera_cut track through sequencer.add_track.
  8. Start PIE and use camera.get_runtime_view to confirm the active in-game POV.

Names are resolved as labels, object names or paths. Camera focus distance and rig dimensions are centimetres; lens focal length and filmback are millimetres. Editor viewport navigation is owned by view.get_camera and view.set_camera. The kit does not create a second runtime view-target setter, because play.set_view_target is already the stable player-controller workflow.

Use camera.list_rigs to audit rail and crane placement before changing a move. It reports only native rail/crane actors, including their mounted cameras.

PIE controls: camera.add_camera_modifier, camera.remove_camera_modifier, camera.start_camera_shake, camera.stop_all_camera_shakes, camera.set_game_camera_cut_this_frame, and camera.set_view_target_with_blend act on a selected PIE player controller. They never start PIE.

Rail splines: camera.list_spline_points, camera.add_spline_point, camera.set_spline_point and camera.remove_spline_point edit the rail path (local space unless worldSpace=true); remove accepts index=-1 for the last point and refuses to leave fewer than two points.

camera.start_camera_shake needs a concrete shake class. The engine oscillation shake is MatineeCameraShake on 4.27 and LegacyCameraShake on 5.x; either name is accepted on both. Abstract classes (CameraShakeBase) are rejected. camera.set_view_target_with_blend resolves the target by label, name or unique class name (DefaultPawn for the default pawn).

Tools​

Legend. risk 0 = read-only, 1 = harmless editor op, 2 = modifies asset, 3 = deletes/replaces asset, 4 = project/config/build op, 5 = potentially destructive (calls above MaxAutoRisk need "_confirm": true). mutates = runs in a transaction (edit.undo reverts). requires PIE / requires world = refused without a PIE session / an open level. requires plugin = unavailable while the plugin is disabled. dryRun = honours the dryRun argument. smoke = covered by edit.self_test.

camera.add_camera_modifier (risk 2, mutates, requires PIE, smoke)​

Adds a camera modifier of a concrete UCameraModifier class to the PIE player's camera manager.

ArgumentTypeDescription
classstringrequired. Modifier or shake class (path or short name).

camera.add_spline_point (risk 2, mutates, requires world, smoke)​

No description.

ArgumentTypeDescription
rigstringrequired. Rail rig actor.
indexintegerPoint index for set/remove; remove accepts -1 for the last point. Default -1.
location{x,y,z}Point position in centimetres.
worldSpacebooleanUse world coordinates; false uses spline local coordinates. Default false.

camera.attach_to_rig (risk 2, mutates, requires world, smoke)​

Attaches a camera actor to the public moving mount of a rail or crane.

ArgumentTypeDescription
camerastringrequired. Camera actor label, object name or path.
rigstringrequired. Camera rail or crane label, object name or path.
keepWorldTransformbooleanPreserve the camera world transform during attachment. Default true.

camera.configure_cine (risk 2, mutates, requires world, smoke)​

Changes focal length, aperture, named presets and manual/disabled focus without changing the actor transform.

ArgumentTypeDescription
actorstringrequired. Cine camera actor label, object name or path.
focalLengthnumberFocal length in millimetres; zero preserves it. Default 0.0.
aperturenumberAperture in f-stops; zero preserves it. Default 0.0.
filmbackPresetstringFilmback preset name; empty preserves the current filmback.
lensPresetstringLens preset name; empty preserves the current lens settings.
focusMethodstringFocus method: manual or disable; empty preserves it.
manualFocusDistancenumberManual focus distance in centimetres; zero preserves it. Default 0.0.

camera.configure_component (risk 2, mutates, requires world, smoke)​

Sets controller-rotation and HMD locks on a placed camera component.

ArgumentTypeDescription
actorstringrequired. Camera actor label, object name or path.
hasUsePawnControlRotationbooleanApply usePawnControlRotation when true. Default false.
usePawnControlRotationbooleanLet a pawn controller drive the camera rotation. Default false.
hasLockToHmdbooleanApply lockToHmd when true. Default false.
lockToHmdbooleanLock camera position and rotation to the active HMD. Default false.

camera.configure_crane (risk 2, mutates, requires world, smoke)​

Sets a crane rig's arm length, yaw, pitch and mount locks.

ArgumentTypeDescription
rigstringrequired. Crane rig actor label, object name or path.
pitchnumberCrane arm pitch in degrees. Default 0.0.
yawnumberCrane arm yaw in degrees. Default 0.0.
armLengthnumberCrane arm length in centimetres; zero preserves it. Default 0.0.
lockMountPitchbooleanWhether the camera mount follows crane pitch. Default true.
lockMountYawbooleanWhether the camera mount follows crane yaw. Default true.

camera.configure_rail (risk 2, mutates, requires world, smoke)​

Sets a rail rig's normalized position and mount orientation lock.

ArgumentTypeDescription
rigstringrequired. Rail rig actor label, object name or path.
positionnumberNormalized rail position from 0 through 1. Default 0.0.
lockOrientationbooleanWhether the camera mount follows the rail tangent. Default true.

camera.configure_tracking_focus (risk 2, mutates, requires world, smoke)​

Configures tracking focus against an optional actor with a relative-centimetre offset.

ArgumentTypeDescription
actorstringrequired. Cine camera actor label, object name or path.
targetActorstringOptional actor to track; an empty value clears the current tracking target.
relativeOffset{x,y,z}Offset from target origin in centimetres.
drawDebugMarkerbooleanDraw a transient editor-world marker at the target offset. Default false.

camera.get (risk 0, requires world, smoke)​

Gets transform, projection and cine settings from one camera actor.

ArgumentTypeDescription
actorstringrequired. Camera actor label, object name or path.

camera.get_cine (risk 0, requires world, smoke)​

Gets cine-specific lens, filmback and focus state.

ArgumentTypeDescription
actorstringrequired. Cine camera actor label, object name or path.

camera.get_rig (risk 0, requires world, smoke)​

Gets one rail or crane actor's current mechanical state and mounted cameras.

ArgumentTypeDescription
actorstringrequired. Camera actor label, object name or path.

camera.get_runtime_view (risk 0, requires PIE, smoke)​

Gets the active player-controller view target and point of view during PIE.

ArgumentTypeDescription
playerIndexintegerZero-based local player controller index. Default 0.

camera.list (risk 0, requires world, smoke)​

Lists camera and cine-camera actors in the editor world.

ArgumentTypeDescription
nameContainsstringOptional case-insensitive label or object-name fragment.
limitintegerMaximum cameras to return. Default 100.

camera.list_cine_presets (risk 0, requires world, smoke)​

Lists the project cine-camera filmback and lens preset names.

ArgumentTypeDescription
actorstringrequired. Cine camera actor label, object name or path.

camera.list_rigs (risk 0, requires world, smoke)​

Lists editor-world rail and crane actors with their current mechanical state.

ArgumentTypeDescription
nameContainsstringOptional case-insensitive rail or crane label/name fragment.
limitintegerMaximum rigs to return. Default 100.

camera.list_spline_points (risk 0, requires world, smoke)​

No description.

ArgumentTypeDescription
rigstringrequired. Rail rig actor.
indexintegerPoint index for set/remove; remove accepts -1 for the last point. Default -1.
location{x,y,z}Point position in centimetres.
worldSpacebooleanUse world coordinates; false uses spline local coordinates. Default false.

camera.remove_camera_modifier (risk 2, mutates, requires PIE, smoke)​

Removes the first active camera modifier of the class from the PIE player's camera manager.

ArgumentTypeDescription
classstringrequired. Modifier or shake class (path or short name).

camera.remove_spline_point (risk 2, mutates, requires world, smoke)​

No description.

ArgumentTypeDescription
rigstringrequired. Rail rig actor.
indexintegerPoint index for set/remove; remove accepts -1 for the last point. Default -1.
location{x,y,z}Point position in centimetres.
worldSpacebooleanUse world coordinates; false uses spline local coordinates. Default false.

camera.set_game_camera_cut_this_frame (risk 2, mutates, requires PIE, smoke)​

Flags a camera cut for this frame (resets motion blur and temporal history).

ArgumentTypeDescription
playerIndexintegerZero-based local player controller index. Default 0.

camera.set_spline_point (risk 2, mutates, requires world, smoke)​

No description.

ArgumentTypeDescription
rigstringrequired. Rail rig actor.
indexintegerPoint index for set/remove; remove accepts -1 for the last point. Default -1.
location{x,y,z}Point position in centimetres.
worldSpacebooleanUse world coordinates; false uses spline local coordinates. Default false.

camera.set_view_target_with_blend (risk 2, mutates, requires PIE, smoke)​

Sets the PIE player's view target (actor label, name or unique class) with an optional blend in seconds.

ArgumentTypeDescription
targetstringrequired. New camera view target actor (label, object name or unique class name).
blendTimenumberBlend duration in seconds. Default 0.

camera.spawn_camera (risk 2, mutates, requires world, smoke)​

Spawns a camera or cine-camera actor in the editor world, optionally mounted on a new rail or crane rig; returns the camera state (rig label in message).

ArgumentTypeDescription
kindstringCamera kind: camera (ACameraActor) or cine (ACineCameraActor). Default TEXT("cine").
namestringActor label; an engine-unique label is chosen when empty.
location{x,y,z}World location in centimetres.
rotation{x,y,z}Rotation as pitch, yaw and roll in degrees.
mountRigstringOptional rig to spawn at the same place with the camera mounted on it: rail or crane; empty spawns no rig.
rigNamestringLabel of the rig spawned by mountRig; defaults to _Rig.

camera.spawn_rig (risk 2, mutates, requires world, smoke)​

Spawns a native rail or crane rig in the editor world.

ArgumentTypeDescription
kindstringrequired. Rig kind: rail or crane.
namestringActor label; an engine-unique label is chosen when empty.
location{x,y,z}World location in centimetres.
rotation{x,y,z}Rotation as pitch, yaw and roll in degrees.

camera.start_camera_shake (risk 2, mutates, requires PIE, smoke)​

Starts a concrete camera shake class on the PIE player (MatineeCameraShake/LegacyCameraShake are accepted on every engine).

ArgumentTypeDescription
classstringrequired. Modifier or shake class (path or short name).

camera.stop_all_camera_shakes (risk 2, mutates, requires PIE, smoke)​

Stops every active camera shake on the PIE player.

ArgumentTypeDescription
playerIndexintegerZero-based local player controller index. Default 0.