guansss / pixi-live2d-display

A PixiJS plugin to display Live2D models of any kind.
https://guansss.github.io/pixi-live2d-display/
MIT License
808 stars 123 forks source link

why model.internalModel.coreModel could find method 'setParameterValueById'? #144

Open moushicheng opened 2 months ago

moushicheng commented 2 months ago

repo site : https://github.com/moushicheng/live-waifu/tree/main/packages/live2d-electron

i print model.internalModel.coreModel

  const model = await Live2DModel.from(model_path, {
    // autoInteract: false, // focus on pointer & response to tapping
  });

  console.log(model.internalModel.coreModel);
image

At Beginning, i just use 'setParameterValueById' to make model mouth "move",But my model seems to behave differently with #4

Env

os : mac m2

dev:

   <script
      defer
      src="https://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js"
    ></script>
    <script
      defer
      src="https://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.js"
    ></script>
 "pixi-live2d-display": "^0.4.0",
 "pixi.js": "^6.5.2"