Disable keyboard during animation

Q&A about the latest versions
Post Reply
APolyakov
Posts: 9
Joined: Thu Jan 25, 2024 2:50 pm

I created an animation from many panoramas with complex scripts, audio, video and so on. For control, I configured on-screen navigation buttons. But here’s the problem - I just can’t find how to disable interaction with the keyboard so as not to accidentally disrupt the flow of the script during animation?
User avatar
Hopki
Gnome
Posts: 13017
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Use a Go To URL action with:

Code: Select all

javascript:
pano.setLockedKeyboard('true');
This will prevent any keyboard interaction.

Then use another Go To URL Action with:

Code: Select all

javascript:
pano.setLockedKeyboard('false');
To activate it again.
So you can set up a variable track with a variable changed source to activate the above.
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/
APolyakov
Posts: 9
Joined: Thu Jan 25, 2024 2:50 pm

Works great! A few more questions, and I will be able to publish a unique guide to rare functions for panorama animation))))
Thanks a lot!
Post Reply