setMorphTargetWeights method

  1. @JSExport()
JSPromise<JSAny?> setMorphTargetWeights(
  1. ThermionEntity entity,
  2. JSArray<JSNumber> weights
)

Implementation

@JSExport()
JSPromise setMorphTargetWeights(
    ThermionEntity entity, JSArray<JSNumber> weights) {
  var dartWeights = weights.toDart.map((w) => w.toDartDouble).toList();
  return viewer.setMorphTargetWeights(entity, dartWeights).toJS;
}