Skip to main content

smwebsdk.persona.animatetonamedcamerawithorbitpan

Home > @soulmachines/smwebsdk > Persona > animateToNamedCameraWithOrbitPan

Persona.animateToNamedCameraWithOrbitPan() method

Cut or animate to a named camera position, with support for camera adjustment.

Signature:

animateToNamedCameraWithOrbitPan(cameraName: string, time: number, orbitDegX: number, orbitDegY: number, panDeg: number, tiltDeg: number): Promise<VariablesModel>;

Parameters

ParameterTypeDescription
cameraNamestringNamed camera position. The currently supported option is "CloseUp".
timenumberTime in seconds for the animation to run. 0 indicates a cut.
orbitDegXnumberDegrees of horizontal rotation around implicit orbit point of camera position (typically the middle of the Persona's head)
orbitDegYnumberDegrees of vertical rotation around implicit orbit point of camera position (typically the middle of the Persona's head)
panDegnumberDegrees of camera pan. Orbital adjustment is applied before pan adjustment.
tiltDegnumberDegrees of camera tilt. Orbital adjustment is applied before tilt adjustment.

Returns:

Promise<VariablesModel>