Hi,
I want to center screen (Basically reset) the group / content when the tracking image goes out of vision. I have done something like this, but its not working as expected…
var flyer_jpgzpt0 = parent;
var group0 = symbol.nodes.expandedModel;
parent.on(“notseen”, () => {
group0.position([0, 0, 0]);
group0.rotation([0, 0, 0]);
group0.scale([1, 1, 1]);
});
Actually what I want to do is when we move the camera the group also moves according to the tracking image and this way sometimes the group goes out of the screen completely. When this happens and user keep moving the camera then the tracking image unseen event is fired. I also wanted to animate the group and set it at the center of the screen with rotations and scales set to 0. I am not sure how to do a timeline where the target will be animated from its current position (This is variable as group keeps moving with the camera movement on tracking image) to a defined position (center screen).
Can someone help me please.
Regards
Rakesh