Hi, I’m using Image Tracking, and the required flow is as such:
Scan Zapcode -> Scan Tracking Image -> Pop up bottle -> Double Tap on Bottle -> Bottle Invisible and disabled, pop out buttons and images -> navigate
The issue that I’m facing is: If I have disabled the bottle from view, once the camera caught the tracking image, it will reenable the bottle into view.
I have tried coding as per below originally as Mix_Recipes.enabled(false) and then changing to !Mix_Recipes.enabled and also !Mix_Recipes.enabled(). All to no luck…
Summary
symbol.nodes.Tracking_Image_pngzpt.on(“seen”, () => {
// Runs when seen occurs on the Tracking Image.png.zpt node
if(!Mix_Recipes.enabled()||!Simple_Swizzles.enabled||XTonicPage.enabled(false)||XTonicPreparation.enabled(false)||XTonicMethod1.enabled(false)||XTonicMethod3.enabled(false)||XTonicDone.enabled(false))
{
symbol.controllers.Visibility.elements.Show.activate();
} else{
symbol.controllers.Visibility.elements.Hide.activate();
}
});
Can anyone suggest where I have gone wrong, or whether it is possible to block image from being tracked under certain conditions?