I'm using a script in Spark AR Studio to try to show and hide a lightbulb on top of a person's head. The bulb hides with bulb.hidden
I have tried bulb.visible
unsuccessfully. Any Ideas? Code below:
(async function () {
Scene.root.findFirst('Sphere').then(bulb => {
// bulb.hidden = FaceTracking.face(0).mouth.openness
bulb.hidden = true
bulb.visible = FaceTracking.face(0).mouth.openness.gt(0.3);
})