setAnimationPlayhead
Sets the playhead of an animation to a specific percentage of completion, 0 -> 100.
setAnimationPlayhead(
animationName: string,
percentage: number,
): Promise<void>Parameters
Description
Type
animationName
Name of the animation we want to change its playhead’s position.
string
percentage
Must be from 0 to 100. Where 0 is at the beginning of the animation and 100 at the end.
number
Usage:
await modelApi.setAnimationPlayhead('goUp', 50);Last updated