パラメータ設定にトライしよう その4
- snackvirtual

- 2022年7月18日
- 読了時間: 1分
更新日:2022年7月19日
デバッグの王道である、Writeができているかどうか、Readしようを実践
var ida = this._model.getParameterValueById(live2dcubismframework_1.CubismFramework.getIdManager().getId("ParamMouthForm"));
console.log(ida);
var idb = this._model.getParameterValueById(live2dcubismframework_1.CubismFramework.getIdManager().getId("ParamMouthOpenY"));
console.log(idb);
this._model.setParameterValueById(live2dcubismframework_1.CubismFramework.getIdManager().getId("ParamMouthForm"), kuchipaku_fig, 1.0);
this._model.setParameterValueById(live2dcubismframework_1.CubismFramework.getIdManager().getId("ParamMouthOpenY"), kuchipaku_size, 1.0);
var idc = this._model.getParameterValueById(live2dcubismframework_1.CubismFramework.getIdManager().getId("ParamMouthForm"));
console.log(idc);
var idd = this._model.getParameterValueById(live2dcubismframework_1.CubismFramework.getIdManager().getId("ParamMouthOpenY"));
console.log(idd);こんな感じで、Read/Write/Readとすると、
[APP]tap point: {x: -0.66 y: 0.46}
1
0
-1
1
[APP]tap point: {x: -0.66 y: 0.46}
1
0
-1
1
[APP]tap point: {x: -0.66 y: 0.46}
1
0
-1
1Read/Writeできている
設定もできている
でも設定値が元に戻ってしまう
なので口パクは動かないのだろう


コメント