AutoMovie API
    Preparing search index...

    Variable resolveMorphTargetWeightsConst

    resolveMorphTargetWeights: (
        targets: readonly Pick<IAutoMovieMeshMorphTarget, "name" | "driver">[],
        pose: IAutoMoviePose,
    ) => Map<string, number> = ...

    Resolve the weights of a mesh's pose-driven morph targets for one pose.

    Each driven target reads its driver bone's angle on its driver axis from pose.joints in degrees, zero when the bone is unlisted or the axis is null, and the last entry when a bone is listed twice, as resolvePose reads joints. The weight is evaluateDrivenCurve of that angle: piecewise linear between points, holding the end outputs beyond them, unclamped. Targets without a driver are left out, so their weights stay with expressions.

    Type Declaration

      • (
            targets: readonly Pick<IAutoMovieMeshMorphTarget, "name" | "driver">[],
            pose: IAutoMoviePose,
        ): Map<string, number>
      • Parameters

        Returns Map<string, number>

        Weight by target name, for driven targets only.