Threepp.AnimationAction¶
A single playing animation (returned by ModelAnimator.clipAction/play)
Owned internally by the mixer; valid while the ModelAnimator is alive. Chainable methods are exposed as returning nothing (void).
Members¶
Methods¶
- play
- stop
- reset
- isRunning
- setLoop
- setEffectiveWeight
- setEffectiveTimeScale
- fadeIn
- fadeOut
- crossFadeTo
- setDuration
play¶
Method
Description
Starts playback
stop¶
Method
Description
Stops playback
reset¶
Method
Description
Rewinds to the beginning
isRunning¶
Method
Description
-> bool
setLoop¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
mode |
|
|
reps |
|
Description
mode: a Loop_* constant, reps: number of repetitions (-1 for infinite)
setEffectiveWeight¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
w |
|
Description
Blend weight (0..1), used when blending multiple animations
setEffectiveTimeScale¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
t |
|
Description
Playback speed of this action
fadeIn¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
sec |
|
Description
Fades in over sec seconds
fadeOut¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
sec |
|
Description
Fades out over sec seconds
crossFadeTo¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
other |
|
|
dur |
|
|
warp |
|
Description
Cross-fades to another AnimationAction over dur seconds
setDuration¶
Method
Arguments
| Arguments | Default | Description |
|---|---|---|
sec |
|
Description
Overrides the effective duration of the clip