Hi @shot,
A ready
event will fire when the given node is loaded. Most nodes can be dragged directly into a script to create a ready event. You can also right-click on the root node to create a root ready event handler, which will run once the experience is launched.
You will get an event handler like this -
parent.on("ready", () => {
// Runs when ready occurs on the parent node
//Activate prompt to user here.
});
Much like ready events, target images also fire seen
and not seen
events respectively. Right-clicking or dragging the target image into a script will allow for seen
and not seen
event handlers to be created.
symbol.nodes.Target_Image.on("seen", () => {
// Runs when seen occurs on the Target Image.jpg.zpt node
//Activate tracked content
});
symbol.nodes.Target_Image.on("notseen", () => {
// Runs when notseen occurs on the Target Image node
//Activate user prompt
});
Here’s an example project that might help - Seen and not seen example.zpp (300.3 KB)
You can find lots more information about this here, as well how the above can be set up using Actions.
Hope this helps.
George