AutoMovie API
    Preparing search index...

    Variable resolveLookAtConst

    resolveLookAt: (
        sample: IAutoMovieMotionSample,
        lookAt: IAutoMovieLookAt | undefined,
    ) => IAutoMovieMotionSample = ...

    Turn the gaze channels of a sampled expression into eye-bone rotations, for a model whose IAutoMovieLookAt is "bone".

    Each eye channel's weight is its gaze preset's expansion (GAZE_PRESET_CHANNELS) times the preset intensity, replaced by the expression's own blendshape for that channel when it lists one, and clamped to [0, 1] with a non-finite value read as 0, the rules the viewer's morph expansion applies. A weight scales the declared range in its direction linearly. Each eye's flexion, positive down, is down · verticalDown − up · verticalUp; its twist, positive toward the model's own left, is out · horizontalOuter − in · horizontalInner on the left eye and in · horizontalInner − out · horizontalOuter on the right, since the left eye looks out toward the left and the right eye looks in. The bone's declared axes, or the host table's, decide what those clinical angles rotate about when the pose is resolved.

    The turn adds to the angles the pose authors on leftEye and rightEye; an eye the pose does not author joins it only when its turn is nonzero. The channels move from the expression to the bones: a gaze preset becomes "neutral" and the eye channels leave the blendshape list, so morphs and expression sinks no longer receive them.

    Returns sample itself when lookAt is absent or "expression", or when the expression carries no gaze channel; otherwise a new sample that shares the untouched joints and root with sample.

    Type Declaration