generateMorphTrack method

dynamic generateMorphTrack(
  1. dynamic rawTracks
)

Implementation

generateMorphTrack( rawTracks ) {

	var curves = rawTracks.DeformPercent.curves.morph;
	var values = curves.values.map( ( val ) {

		return val / 100;

	} ).toList();

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

	return new NumberKeyframeTrack( '${rawTracks.modelName}.morphTargetInfluences[${morphNum}]', curves.times, values );

}