Hide / Show hotspots - logic

Q&A about the latest versions
Post Reply
Marcus
Posts: 64
Joined: Mon Nov 08, 2021 12:17 pm

Hi there,

Could someone please suggest which logic is used to show / hide all the hotspots. I have the buttons, but cannot work out the logic block. Tried using "visibility" but must be doing something incorrect.

Much appreciated,
Marc
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Marc,
You can use a variable.
Then a button to toggle the variable.
Then each Hotspot Template has a visible logic block.
See attached project.
Regards,
Attachments
project.zip
(13.23 KiB) Downloaded 108 times
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/
Marcus
Posts: 64
Joined: Mon Nov 08, 2021 12:17 pm

Thanks Hopki,

That's the approach I eventually went for last night, as I could see no other alternative.

I was trying to keep the components (hotspots) separate from the button which turns visibility off / on, so they're more encapsulated. E.g. something like "Mouse Click->Visibility -> Toggle Element Visibility -> %hotspot", so the hotspot components are not linked to the visibility buttons and can be installed independently. However, I couldn't get the above (or various combinations) method to work.

I'll go with the global variable, as it works.

Many thanks,
Marc
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

hi Hopki,

I downloaded your script and test it.
As I've seen it was ok for my needs, I copy and paste the text field named "button" with "Toggle variable button" as a label into my project.
But when I run it, nothing happens.

Did I miss something?
Probably I guess :roll:

Regards.
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Make sure the variable is in the skin, "vis_hs", then set the visible logic block in the Hotspot Templates.
Select the Hotspot Template (1)
Select the Visible Logic Block (2)
Select the condition that when the variable vis_hs is false the visibility is also false.

Screenshot 2023-10-03 at 15.39.19.png
Screenshot 2023-10-03 at 15.39.19.png (199.56 KiB) Viewed 2570 times

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/
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Hi,

Thank you for the answer.
I'll try to do as you say.

Regards,
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Hi,

I think I've done all you said, step by step, but still, il doesn't work.
It drives me almost crasy :mrgreen:

Anyway, have a good day and thanks for your help.
Regards,
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi dePassage66,
Please send your support package to support@ggnome.com
This is found under the Help menu, Create support package.
Make sure you add a description of the issue or link to this forum post.
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/
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Hi Hopki,

I send it to the support like you said.

I hope they will find out what's going wrong with what I've done and that I will understand the logic of the process because the software is not easy for a non programmer like me...

Have a good day,
Cheers,
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
User avatar
Hopki
Gnome
Posts: 13029
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi dePassage66,
Thank you for sending your support package.
When we looked at your skin we saw you added the variable to the skin, vis_hs, so that is good.
Then we saw you added a text box to be used as a button, this has the correct action that toggles the variable value to true and false, also good.
Looking at the Hotspot Template ht_node, this also has the variable, vis_hs which has the correct visible logic block, this is good.
So using your skin with a test project, clicking the text box/button does hide and show the point hotspot hs_node, so it works as should.

Note, all the other Hotspot Templates have the Logic Block condition, vis_skin, so these will not hide and show.
What you need to do is add the variable to this condition.

Screenshot 2023-10-05 at 15.18.18.png
Screenshot 2023-10-05 at 15.18.18.png (44.67 KiB) Viewed 2534 times

So now if the vis_hs is toggled to false, this hotspot will hide.
So you had it, you just need to add the extra condition to the visible logic blocks of all the Hotspot Templates.
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/
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Hi Hopki,

Thanks a lot for the explainations !

I'll follow your teaching tomorrow and let you know if it's ok.

Regards,
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
User avatar
dePassage66
Posts: 86
Joined: Mon Mar 20, 2023 11:19 am

Hi Hopki,

I've got it !!!

After some tries, I understood the way it works (I mean "I think I understood" :wink: ) but I can expect some other surprises !

Thanks a lot for your help otherwise I would have pasted hours and hours without success.

I've watch lots of your webinar before to buy this software, but it's a long way beetwen watching a video and realizing what it shows... :wink:

Have a good day,
Regards,
Attachments
Capture d'écran 2023-10-06 093252.png
Capture d'écran 2023-10-06 093252.png (92.77 KiB) Viewed 2518 times
pour Visites Guidées Panoramiques https://www.visitespanoramiques.com/index.html
(sorry, no translation available yet!)
Post Reply