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
Parameter | Type | Description |
---|---|---|
cameraName | string | Named camera position. The currently supported option is "CloseUp". |
time | number | Time in seconds for the animation to run. 0 indicates a cut. |
orbitDegX | number | Degrees of horizontal rotation around implicit orbit point of camera position (typically the middle of the Persona's head) |
orbitDegY | number | Degrees of vertical rotation around implicit orbit point of camera position (typically the middle of the Persona's head) |
panDeg | number | Degrees of camera pan. Orbital adjustment is applied before pan adjustment. |
tiltDeg | number | Degrees of camera tilt. Orbital adjustment is applied before tilt adjustment. |
Returns:
Promise<VariablesModel>