alteredq/three.js — comment on commit 91376253d3a5d93034a35aa4dd69da351337611a
File:  line 0
By oosmoxiecode:

Cool! :)

One idea/thought that came to mind when messing with morphtargets was that it would be nice to have some way to define my own "labels" as opposed to rely on whatever is outputted in the json-file.
Something like:

var myMorphMesh = new THREE.MorphAnimMesh( geometry, material );
myMorphMesh.setAnimationLabel("runloop", 0, 9); // creates a label called "runloop" from frame 0 to 9
myMorphMesh.setAnimationLabel("jump", 10, 15); // creates a label called "jump" from frame 10 to 15

And then I could just myMorphMesh.playAnimation("jump", 10) to play the "jump".

Another thing that would be nice regarding playAnimation, would be to be able to define a number of "blendframes" when switching animation. Like say I have the runloop going, but then I want to play the jump. But instead of it switching in like 1 frame, it could "blend" in maybe 5 frames. So in the first frame it got 80% runloop and 20% jump, next frame 60% runloop, 40% jump, and so on... Not sure if that´s possible though. ;) Just some "this would be nice"-thoughts.