Hello everybody
I’m try to give some life to an FBX character. I wil to connect the Blendshapes and the bones with the DatGui. Now I’m not sure which parameters have to be used. In the latest FBX loader, I see that are supported morphTargetInfluences
. In my case that should actually work, but it does not. Is any one know what else is missing?
var params = {
influence1: 0,
influence2: 0,
bone1: 0,
bone1: 0
};
var gui = new dat.GUI({ });
var folder = gui.addFolder( 'Morph Targets' );
folder.add( params, 'influence1', 0, 1 ).step( 0.01 ).name('Mouph_open').listen().onChange( function( value ) { object.morphTargetInfluences[ 81432448 ] = value});
folder.add( params, 'influence2', 0, 1 ).step( 0.01 ).name('Eye_Close_R').listen().onChange( function( value ) { mesh.morphTargetInfluences[ 81773264 ] = value});
folder.open();
var folder = gui.addFolder( 'Bones' );
folder.add( params, 'bone1', -1, 1 ).step( 0.01 ).name('Neck').listen().onChange( function( value ) { mesh.skeleton.bones[ 78891648 ].rotation.x = value;});
folder.open();