Next and Previous buttons that can use Tags Pano2VR pro

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

Download and double click to add to Pano2VR pro.

silhouette_next_previous_tag.ggskc
(24.21 KiB) Downloaded 388 times
simplex_next_previous_tag.ggskc
(38.22 KiB) Downloaded 384 times

This component is the same as the Next and Previous buttons but this can use Tags.
If no tag is set, then the buttons will open each node in the order of the tour browser as normal.

If a number of nodes have a tag set and the same tag is entered using the Skin Configuration button, then the tagged nodes will be opened in the order of the tour browser but skipping nodes that do not have the tag.
In this example, only nodes that contain the tag "first" will be opened.

2.png
2.png (20.54 KiB) Viewed 8264 times

The buttons are looking for the tag in a text variable called, var_tag.
This means the variable can be changed during the tour with a Set Variable Value action.
Example action:

1.png
1.png (34.15 KiB) Viewed 8264 times

Using the above example when the Next and Previous buttons are used only nodes with the tag "ground" will be opened.
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/
360° Immersion
Posts: 10
Joined: Fri Apr 06, 2018 1:15 pm

Wow, thank you Hopki! I was just trying to figure out how to do this. I already had an action set up to do this for a cloner so this was basically plug-and-play.

Will this component be included by default in future versions? It's super useful for larger tours.
User avatar
Hopki
Gnome
Posts: 12999
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi,
Probably not part of the default components but they are here.
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/
snowlexx
Posts: 46
Joined: Fri Dec 27, 2019 5:21 pm
Location: Россия

Hopki wrote: Fri Apr 09, 2021 11:36 am Hi,
Probably not part of the default components but they are here.
Regards,
Hi, Hopki, tell me please, is it possible to save the current view when switching between nodes?

And more. In case someone needs it. I needed to switch panoramas not to the next one, but after one or two. This can be done if you change the number in the code:
javascript:
var currentNodeId = player.getCurrentNode();
var allNodesWithTag;
if (player.getVariableValue('var_tag') == '') {
allNodesWithTag = player.getNodeIds();
} else {
allNodesWithTag = player.getNodesWithTag(player.getVariableValue('var_tag'));
}
if (allNodesWithTag.length > 0) {
var currIndex = allNodesWithTag.indexOf(currentNodeId);
var nextIndex = 0;
if (currIndex != -1 && currIndex != allNodesWithTag.length - 1) {
nextIndex = currIndex + 1;
}
player.openNext('{' + allNodesWithTag[nextIndex] + '}');
}
User avatar
Taka
Posts: 51
Joined: Fri May 28, 2021 3:15 pm
Location: Tokyo

Thank you Hopki and everyone.

As snowlexx asked, I want to save the current view.

Is there any good way?
User avatar
Hopki
Gnome
Posts: 12999
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Hi Taka,
Please find attached a skin that has next and previous buttons using the tag and uses the current view.
Use the Skin Configuration button to select Tag and if you want to use Default or Current View.
Regards,
Attachments
skin.ggsk
(4.35 KiB) Downloaded 189 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/
User avatar
Taka
Posts: 51
Joined: Fri May 28, 2021 3:15 pm
Location: Tokyo

Hopki wrote: Mon Feb 28, 2022 9:44 am Hi Taka,
Please find attached a skin that has next and previous buttons using the tag and uses the current view.
Use the Skin Configuration button to select Tag and if you want to use Default or Current View.
Regards,
Hopki.

Great!!
Thank you very much.
I really appreciate your constant help.
Caz1982
Posts: 14
Joined: Tue Aug 11, 2020 9:55 am

Hopki wrote: Mon Feb 28, 2022 9:44 am Hi Taka,
Please find attached a skin that has next and previous buttons using the tag and uses the current view.
Use the Skin Configuration button to select Tag and if you want to use Default or Current View.
Regards,
Hello , I have 7 panoramas that I do not want to link by hotspots , but by the forward and back arrows , I want the back button to turn off in the first panorama and the forward button in the last one .
I also want to add a tooltip to these buttons. Any ideas?
Post Reply