How to use the NumberKeyframeTrack function from three

Find comprehensive JavaScript three.NumberKeyframeTrack code examples handpicked from public code repositorys.

2578
2579
2580
2581
2582
2583
2584
2585
2586
2587

var TypedKeyframeTrack;

switch (PATH_PROPERTIES[target.path]) {
  case PATH_PROPERTIES.weights:
    TypedKeyframeTrack = THREE.NumberKeyframeTrack;
    break;

  case PATH_PROPERTIES.rotation:
    TypedKeyframeTrack = THREE.QuaternionKeyframeTrack;
fork icon3
star icon7
watch icon8

+ 14 other calls in file

2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
node.updateMatrix();
node.matrixAutoUpdate = true;
let TypedKeyframeTrack;
switch (PATH_PROPERTIES[target.path]) {
    case PATH_PROPERTIES.weights:
        TypedKeyframeTrack = three.NumberKeyframeTrack;
        break;
    case PATH_PROPERTIES.rotation:
        TypedKeyframeTrack = three.QuaternionKeyframeTrack;
        break;
fork icon2
star icon7
watch icon0

1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
        const values = [];
        for (let i = 0, il = array.length; i < il; i += 1) {
            times.push(array[i].frameNum / 30);
            values.push(array[i].weight);
        }
        tracks.push(new three_1.NumberKeyframeTrack('.morphTargetInfluences[' + morphTargetDictionary[key] + ']', times, values));
    }
    return new three_1.AnimationClip('', -1, tracks);
}
/**
fork icon1
star icon3
watch icon0

+ 4 other calls in file

2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
node.matrixAutoUpdate = true;
var TypedKeyframeTrack = void 0;

switch (PATH_PROPERTIES[target.path]) {
  case PATH_PROPERTIES.weights:
    TypedKeyframeTrack = _three.NumberKeyframeTrack;
    break;

  case PATH_PROPERTIES.rotation:
    TypedKeyframeTrack = _three.QuaternionKeyframeTrack;
fork icon0
star icon1
watch icon0

2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
});

var morphNum = sceneGraph.getObjectByName(rawTracks.modelName)
  .morphTargetDictionary[rawTracks.morphName];

return new THREE.NumberKeyframeTrack(
  rawTracks.modelName + '.morphTargetInfluences[' + morphNum + ']',
  curves.times,
  values,
);
fork icon0
star icon0
watch icon0

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)