Page 1 of 1

Next and Previous buttons that can use Tags Pano2VR pro

Posted: Mon Jan 18, 2021 10:35 pm
by Hopki
Download and double click to add to Pano2VR pro.

silhouette_next_previous_tag.ggskc
(24.21 KiB) Downloaded 405 times
simplex_next_previous_tag.ggskc
(38.22 KiB) Downloaded 395 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 9021 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 9021 times

Using the above example when the Next and Previous buttons are used only nodes with the tag "ground" will be opened.

Re: Next and Previous buttons that can use Tags Pano2VR pro

Posted: Fri Apr 09, 2021 5:12 am
by 360° Immersion
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.

Re: Next and Previous buttons that can use Tags Pano2VR pro

Posted: Fri Apr 09, 2021 11:36 am
by Hopki
Hi,
Probably not part of the default components but they are here.
Regards,

Re: Next and Previous buttons that can use Tags Pano2VR pro

Posted: Thu May 27, 2021 8:45 pm
by snowlexx
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] + '}');
}

Re: Next and Previous buttons that can use Tags Pano2VR pro

Posted: Fri Feb 25, 2022 1:40 am
by Taka
Thank you Hopki and everyone.

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

Is there any good way?

Re: Next and Previous buttons that can use Tags Pano2VR pro

Posted: Mon Feb 28, 2022 9:44 am
by Hopki
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,

Re: Next and Previous buttons that can use Tags Pano2VR pro

Posted: Tue Mar 01, 2022 2:25 am
by Taka
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.

Re: Next and Previous buttons that can use Tags Pano2VR pro

Posted: Thu Apr 21, 2022 12:40 am
by Caz1982
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?