Trigger visibility of polygonal Hs through point HS

Q&A about the latest versions
Post Reply
JSchrader
Posts: 112
Joined: Sat Nov 28, 2015 2:26 pm

Trigger visibility of polygonal Hs through point HS

Post by JSchrader » Sat May 14, 2016 5:42 pm

So far I only found smaples to trigger something through a polygon hotspot using proxy IDs.
But how can I toggle the visibility of a polygon hotspot through a mouseover or click on a point hotspot?

Preferably using placeholder or variables as I'm using hotspot templates in the skin editor to show $hs and $hd textfields.
But for my project - if possible - it also should show $whatever polygon_ID.

TIA

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

Re: Trigger visibility of polygonal Hs through point HS

Post by Hopki » Sun May 15, 2016 5:59 pm

Hi,
Just following up on this post.
I have spoke to JSchrader through e-mail.

There is a feature request for using point hotspots to show individual polygons as well as being able to use different colours.
For now you can have a point hotspot that can be used to show and hide all polygons in a pano, not individuals and with only one colour.
Regards,
Hopki

mbb
Posts: 174
Joined: Mon Oct 19, 2009 11:42 pm

Re: Trigger visibility of polygonal Hs through point HS

Post by mbb » Sat Jul 14, 2018 11:59 am

What is the status on this?

I would very much also like to use point hotspots to trigger an accompanying polyspot on and off. EG: Hovering over an "Info" icon hotspot on a building toggles an outline of that building, to better identify to the user just what is being addressed via the spot.

I initially thought that toggling the Poly state via action (to and from show current) would work since if the mouse was over the regular hotspot that it would also be over the assigned poly spot, but no joy...

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

Re: Trigger visibility of polygonal Hs through point HS

Post by Hopki » Sat Jul 14, 2018 11:43 pm

Hi,
Since V5 and now V6 there are now skin actions to show/hide poly hotspots as well as change colours.
So it is possible to use a point hotspot to show and hide them.
Please see this page: https://ggnome.com/doc/pano2vr/5/skin-actions/
Then Player Settings => Change Poly Mode.
Cheers,
Hopki

mbb
Posts: 174
Joined: Mon Oct 19, 2009 11:42 pm

Re: Trigger visibility of polygonal Hs through point HS

Post by mbb » Sun Jul 15, 2018 4:58 am

As I mentioned previously, I had tried using actions to "show current" but that does not work when there are multiple polyspots.

Example of what I am trying to do- say there are 10 buildings in the panorama. I wish to have a point hotspot with a little info icon on each building. When one mouses over the info icon, a poly hotspot outline around that "current" building appears. I wish to to this programmatically- without having to have separate instances for each point hotspot/poly hotspot pair in the skin.

EDIT:

Okay, I have it working in a certain way. Please let me know if this is the most efficient?

1. I've set defaults for the PolySpot to be "disabled" w/no hand cursor
2. I've set Point Hotspot "Target" to the value of the matching Poly Spot (ie: "Poly01" or "Poly02" etc)
3. Added two actions in skin point hotspot template icon to-

Mouse Enter->Change Polygon Mode="Toggle One", Target = "$(ht)"
Mouse Leave->Change Polygon Mode="Toggle One", Target = "$(ht)"

This appears to provide the required effect.

here's a video showing my result, in case my description wasn't clear-
https://www.bohonus.com/temp/polyexample.mp4

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

Re: Trigger visibility of polygonal Hs through point HS

Post by Hopki » Sun Jul 15, 2018 9:31 pm

Hi,
Yeah I was going to say use "toggle one" but glad to see you got it.
How your doing it is how I would so your storing the Poly ID in the hotspot, if not being used I would use Hotspot Description, $hd or $(hd) in V6, But if it works then it works.
Regards,
Hopki

mbb
Posts: 174
Joined: Mon Oct 19, 2009 11:42 pm

Re: Trigger visibility of polygonal Hs through point HS

Post by mbb » Mon Jul 16, 2018 5:12 am

Good to know, thanks :)

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 23 guests