Is it possible to insert a pause (delay) within a sequence of actions so that the processing of the actions stops for a defined time? For example, between action 4 and 6, having action 5 as "30 seconds waiting time" before continuing with action 6?
Thank you in advance, Kai
delay betwen single actions
- Hopki
- Gnome
- Posts: 13269
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
You would use a timer set to manual.
The timer would have:
Activate, trigger actions 1 to 5
Deactivate, trigger action 6
A button would then have a Set Value action setting 30 seconds to the timer.
On click the timer turns active.
This triggers action 1 to 5.
After 30 seconds it deactivates so triggers action 6.
Regards,
The timer would have:
Activate, trigger actions 1 to 5
Deactivate, trigger action 6
A button would then have a Set Value action setting 30 seconds to the timer.
On click the timer turns active.
This triggers action 1 to 5.
After 30 seconds it deactivates so triggers action 6.
Regards,
Garden Gnome Support
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
If you send an e-mail to support please send a link to the forum post for reference.
support@ggnome.com
https://ggnome.com/wiki/documentation/
Take a look at this webinar we recently did on timers: https://ggnome.com/gg_webinars/using-the-timer-element/
Thank you, k.ary.n, thank you Hopki,
Unfortunately, I can't get it to work this way. Firstly, the hotspot click is triggered at the beginning to initiate all actions, and after the pause, it should continue with further actions.
1. Video_A starts playing in a loop when the panorama is called.
2. Click hotspot
3. The currently playing Video_A fades out
4. The hotspot fades out
5. The new Video_B fades in
6. The new Video_B starts to play til finished
(* up to this point, it works well *)
Parallel:
7. With starting of Video_B (=click) there should be a 67-second pause (delay) waiting for the Video_B to finish, where nothing else happens
Then, after the 67 seconds (duration of Video_B):
8. Fade out Video_B
9. Fade in Video_A
10. Start Video_A again in an endless loop
11. fade-in the hotspot
This would return us to the starting situation.
I think action 7 somehow needs to be implemented with a timer, perhaps by using a variable? Variable visibility or a counter?
A counter may be started with the above click, counting up to 67. Reaching 67 (equal secs of delay), it could be used to start actions 8, 9, 10, 11, resetting itself, stop counting and waiting for a new click.
The solution introduced by your video, the counter starts with the panorama and not with an event like a click.
Do you have any idea?
PS: Video_A and Video_B are embedded videos.
Unfortunately, I can't get it to work this way. Firstly, the hotspot click is triggered at the beginning to initiate all actions, and after the pause, it should continue with further actions.
1. Video_A starts playing in a loop when the panorama is called.
2. Click hotspot
3. The currently playing Video_A fades out
4. The hotspot fades out
5. The new Video_B fades in
6. The new Video_B starts to play til finished
(* up to this point, it works well *)
Parallel:
7. With starting of Video_B (=click) there should be a 67-second pause (delay) waiting for the Video_B to finish, where nothing else happens
Then, after the 67 seconds (duration of Video_B):
8. Fade out Video_B
9. Fade in Video_A
10. Start Video_A again in an endless loop
11. fade-in the hotspot
This would return us to the starting situation.
I think action 7 somehow needs to be implemented with a timer, perhaps by using a variable? Variable visibility or a counter?
A counter may be started with the above click, counting up to 67. Reaching 67 (equal secs of delay), it could be used to start actions 8, 9, 10, 11, resetting itself, stop counting and waiting for a new click.
The solution introduced by your video, the counter starts with the panorama and not with an event like a click.
Do you have any idea?
PS: Video_A and Video_B are embedded videos.
Finally, I was able to solve it. The trick is a counter with an initial value set to -1, which represents the 'sleeping mode'.
When the hotspot is clicked, the counter is set to 0 and begins to increment. The value of the counter controls the actions (which only run when the counter is within a certain range >=0 to <=77 or reaches a specific value >=78).
At the same time, actions also influence the counter (e.g., at the end, once all actions have run and the counter exceeds a certain value, it resets all videos, hotspots, and sets itself to -1). The loop is ready.
When the hotspot is clicked, the counter is set to 0 and begins to increment. The value of the counter controls the actions (which only run when the counter is within a certain range >=0 to <=77 or reaches a specific value >=78).
At the same time, actions also influence the counter (e.g., at the end, once all actions have run and the counter exceeds a certain value, it resets all videos, hotspots, and sets itself to -1). The loop is ready.