Page 1 of 1

Detect Panorama Movement

Posted: Mon Nov 22, 2021 12:51 pm
by Hopki
This component detects when the panorama is moving.
This can be due to click and drag or when autorotate is being used.

movement2.gif
movement2.gif (1.36 MiB) Viewed 10565 times

How it works, the component adds a container to the skin with the ID: _code_detect_panorama_movement
This has the required code needed to make the component work.
It also adds a true/false variable with the name: panoramaMoving

The variable is false when the panorama is at rest.
As soon as the panorama is moved, either panned or tilted the variable turns to true.
The variable can be used with logic blocks, actions filters and also with a Variable Changed source action to trigger an action.
Regards,

Re: Detect Panorama Movement

Posted: Tue Nov 23, 2021 11:13 am
by paolodalprato
Smart solution, as expected of you.
When I had to solve the same problem I solved it by checking the values of $ (ap) $ (at) $ (af), I needed to check the zoom as well

Re: Detect Panorama Movement

Posted: Tue Nov 23, 2021 12:01 pm
by Hopki
I can not take all the credit for this, it was a customer question which we then had a think about :D

Re: Detect Panorama Movement

Posted: Tue Nov 23, 2021 1:00 pm
by paolodalprato

Re: Detect Panorama Movement

Posted: Tue Nov 23, 2021 1:12 pm
by Hopki
Hi paolodalprato,
No, what you want to do can be done with a timer, Player inactive setting.
Then in the timer set a deactivate, Open Next Panorama, going back to the start node.
Regards,