Trouble with visibility and logic blocks. 5.2.4 pro and v6 pro

Special forum to share and discuss skins for Pano2VR and Object2VR
Post Reply
russphotography
Posts: 115
Joined: Wed Jul 17, 2013 2:03 pm
Location: Petawawa Ontario Canada
Contact:

I am using a Macbook Pro (retina, Mid 2012) with Catalina v10.15.7

I am trying to use the logic block to hide and show text when the mouse enters and leaves. The text was not showing when my mouse was over the textbox. I am getting the same result with 5.2.4 pro and v6 pro. I could not identify the issue with my skin so I created a new skin containing a single rectangle. This is very simple but still does not work so here are my steps and results.

open blank skin
create a text box
set textbox visibility to 0 (textbox disappears in Live View)
Actions … Mouse Enter/Show Element/$self
In Live View the textbox does not appear when the mouse enters. ???

Turn on Visibility … (Live View textbox reappears)
Actions … Mouse Enter/Hide Element/$self
In Live View the textbox disappear when the mouse enters. Works

Add second action.

Actions … Mouse Enter/Hide Element/$self
Actions … Mouse Leave/Show Element/$self
Live View … text box flickers as the mouse is moved over the textbox. When the mouse stops inside the text box it randomly settles visible or not visible. It feels like a toggle is happening when the mouse is moving.

Using a logic block for visibility or alpha is giving similar strange results.

Considering this is happening with both 5.2.4 pro and v6 pro (trial) I would not be surprised to hear that I am doing something dumb but I am tired of doing dumb over and over again. Your feedback would be appreciated.

Regards Russ
User avatar
SMerriss
Posts: 60
Joined: Mon Sep 28, 2020 2:12 pm
Location: Columbus Ohio
Contact:

Hey Russ,

A few things are going on here.

First, The text box does not appear when it is rolled over because of the visibility being set to 0.

Instead, turn on its visibility, and set its alpha to .005

It will appear invisible, but it will still be visible if that makes sense. It will be a ghost that is there that the mouse can see but we cannot.

Also make sure you are using 'Mouse Enter' and 'Mouse Leave' rather than 'Mouse Over'. This is because with 'Mouse Over', it is constantly urning off and on, while with 'Mouse Enter' it is a single switch that knows that it has entered. If you want it to disappear when the mouse leaves, use 'Mouse Leave' . Also if still given problems, play with making your boxes 'Permeable' or 'Impermeable' found under the "Advanced" section.

This has also given me problems in the past before and just takes a little bit of messing around with the parameters to get it to work as you intend.

I would also suggest using a variable to tell a box when to open and close rather than having it point to itself as it will give you more control over what scenarios the variable will turn off and on.

If this helps or if you need anymore information please let me know, I'm happy to help.

-Spencer
Spencer Merriss
Multimedia Specialist

Website: https://www.spencermerriss360.com/
Email: merriss.spencer@gmail.com

Feel free to reach out! 🌟
User avatar
SMerriss
Posts: 60
Joined: Mon Sep 28, 2020 2:12 pm
Location: Columbus Ohio
Contact:

Here is a very simple example of what I have mentioned above with setting the alpha to .005 and using 'mouse enter' and 'mouse leave' to change its alpha.

Let me know if it works.

-Spencer
Attachments
Mouse Enter Show Vis.ggsk
(1.67 KiB) Downloaded 142 times
Spencer Merriss
Multimedia Specialist

Website: https://www.spencermerriss360.com/
Email: merriss.spencer@gmail.com

Feel free to reach out! 🌟
russphotography
Posts: 115
Joined: Wed Jul 17, 2013 2:03 pm
Location: Petawawa Ontario Canada
Contact:

Hi Spencer

Thanks for responding. I found it strange that an element with visibility turned off could not be turned on again with a command so I kept looking. I have not tried it yet but I think "Activate" or "Deactivate" is the instruction I should be using.

Regards
Russ
User avatar
Hopki
Gnome
Posts: 13005
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Russ,
To help understand the logic, if the text box has visible deselected it is not there, not an active element, so nothing to mouse over regardless of what actions the text box has.
So this is where the idea comes from to make it visible, but give the text box a low Alpha. So it is still not visible, but as it has an Alpha value it is an active element in the skin, so you now have something to mouse over.

In this case, I would use the alpha logic block.
Set the alpha to 0.001, then add the Alpha Logic block, Mouse Over = true, Alpha 1.000.
To fade it in and out set a transition time.

Please note an Alpha of 0 will then also make it an inactive element.
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/
russphotography
Posts: 115
Joined: Wed Jul 17, 2013 2:03 pm
Location: Petawawa Ontario Canada
Contact:

Cool ... Thanks very much Spencer and Hopki
Post Reply