Possible to use skin variables in other places like "Hotspot Properties" etc?

Q&A about the latest versions
Post Reply
mbb
Posts: 276
Joined: Mon Oct 19, 2009 11:42 pm

Is it possible to use skin variables (global ones) in other sections like the fields in the "Hotspot Properties" panel?

EG: A hotspot with the same Title will be appearing in many different panos of my tour. I would like to define that Title only once as a global var in the skin, so I can utilize it wherever it is needed, and only have to edit it in a single place.
User avatar
360Texas
Moderator
Posts: 3684
Joined: Sat Sep 09, 2006 6:06 pm
Location: Fort Worth, Texas USA
Contact:

Not sure which Pano2vr version you are using but here is list of version 5 placeholders:

https://ggnome.com/doc/pano2vr/5/placeholders-list/
Dave
Pano2VR Forum Global Moderator
Image
Visit 360texas.com
mbb
Posts: 276
Joined: Mon Oct 19, 2009 11:42 pm

oh sorry- my P2VR version is v.6b3

Not talking about placeholders, but skin variables- as can be custom defined in the root of the skin editor.

Being able to perhaps even utilize js variables in places like "Hotspot Properties" fields would also be good if possible(?)
User avatar
Tony
Posts: 1342
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

Not sure if this is what you are after, but...

Just create the variable eg Variable = MyHotspotName Type = Text Init Value = Tony

In your hotspot tt_ element Properties > Text > Text: put $(*MyHotspotName)

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
mbb
Posts: 276
Joined: Mon Oct 19, 2009 11:42 pm

hmm, well it's not for just a single value. I will have the same hotspot appearing in as many as 5-40 panos in the tour, then multiply that by another 30 or so. Hence why I am poking around to see if there is a more efficient way to handle them all. There will be the hotpot's proper title, an then also a URL value that I will be using.
User avatar
Hopki
Gnome
Posts: 13021
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Maybe the heat...
I cant say I understand the reason to do this.
If you have a hotspot as set in the hotspot viewer mode then the hotspot template and image will use the placeholders to pick up the title and URL.

Can you describe a use case.
Regards,
Hopki
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/
mbb
Posts: 276
Joined: Mon Oct 19, 2009 11:42 pm

I am making a pano tour of a small town. There are 60+ panoramas. Each building/business has a hotspot that shows a title and poly outline of the building when hovering over the hotspot icon. Clicking on that hotpot icon pops up an overlay (iframe) containing a photo and some text related to the building. All these are tied together on a per-hotspot basis. I am using a single hotspot template in the skinfor all this too btw.

A particular building will thus appear in more than one of the panoramas. Sometimes in 5 or 6 of them, sometimes in 30 of them (like a hotel on a hill that is visible from more locations throughout the town). They way it is working right now, if I need to make a correction to one of the titles, I have to go through each pano looking in the "element list" for that particular building, make the change, then click to the next etc etc. Could even be as many as 40 times.

So I am looking for a more efficient way to handle that. I thought if I could define a list of vars, one for each building, tied to hotspot and PolyIDs, then I could deal with that all in one place.

Hopefully this is a clearer description.
mbb
Posts: 276
Joined: Mon Oct 19, 2009 11:42 pm

oh! it appears that the p2vr project file is just plain XML, so I can just do bulk search & replace on all these spots when/if needed. A little bit of manual intervention but I think this would suffice.
User avatar
Hopki
Gnome
Posts: 13021
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

:D
Yes this would be the fastest way.
Regards,
Hopki
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/
Post Reply