Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
moushicheng opened this issue Apr 20, 2024 · 2 comments

Comments

@moushicheng
Copy link

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"
@enganese
Copy link

model.internalModel.coreModel.setParameterValueById("ParamMouthOpenY", value, 1);

@lqh1008
Copy link

lqh1008 commented Jul 25, 2024

your file type maybe .moc3. but moc file doesn't have setParameterValueById function。so what is the function in .moc file。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants