arena-py API v1.0.1
arena .attributes .animation_mixer
AnimationMixer attribute class to manage its properties in the ARENA: A list of available animations can usually be found by inspecting the model file or its documentation. All animations will play by default. To play only a specific set of animations, use wildcards: animation-mixer='clip: run_*'. More properties at https://github.com/n5ro/aframe-extras/tree/master/src/loaders#animation A-Frame Extras Animation.
Usage: animation_mixer=AnimationMixer(...)
Parameters
- bool clampWhenFinished: If true, halts the animation at the last frame. Defaults to 'False' (optional)
- str clip: Name of the animation clip(s) to play. Accepts wildcards. Defaults to '*' (optional)
- float crossFadeDuration: Duration of cross-fades between clips, in seconds. Defaults to '0' (optional)
- float duration: Duration of the animation, in seconds (0 = auto). Defaults to '0' (optional)
- str loop: In repeat and pingpong modes, the clip plays once plus the specified number of repetitions. For pingpong, every second clip plays in reverse. Allows [once, repeat, pingpong] Defaults to 'repeat' (optional)
- str repetitions: Number of times to play the clip, in addition to the first play (empty string = Infinity). Repetitions are ignored for loop: once. Defaults to '' (optional)
- float startAt: Sets the start of an animation to a specific time (in milliseconds). This is useful when you need to jump to an exact time in an animation. The input parameter will be scaled by the mixer's timeScale. Defaults to '0' (optional)
- float timeScale: Scaling factor for playback speed. A value of 0 causes the animation to pause. Negative values cause the animation to play backwards. Defaults to '1' (optional)