// How to load in modules
const Scene = require(‘Scene’);
const FaceTracking = require(‘FaceTracking’);
Promise.all([
Scene.root.findFrist(‘object00’),
]).then(function(results){
const plane = results[0]
})
// locate the object in the Scene
const wheat = Scene.root.find(‘object00’);
// Store a refece to detected face
const face = FaceTracking.face(0);
const whatTransform = wheat.transform;
const upperLipCenter = face.mouth.upperLipCenter;
wheatTransform.x = upperLipCenter.x;
wheatTransform.y = upperLipCenter.y;
wheatTransform.z = upperLipCenter.z;
wheatTransform.rotationX = upperLipCenter.x;
wheatTransform.rotationY = upperLipCenter.y;
wheatTransform.rotationZ = upperLipCenter.z;