Button link to pano Custom Node ID

Q&A about the latest versions
Post Reply
xhalemedia
Posts: 35
Joined: Tue May 19, 2009 6:05 pm
Location: Switzerland
Contact:

Hi There

I'm looking for a way to link a button to a pano with a "custom node id"

Ideal would be:
Button with action that opens panorama with "custom node id"
Text from button = text from comment with same "custom node id"

The reason to do this is to have prebuilt a template with a button that links to a specific pano, without editing again in the skin-editor

Is this possible?

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

Hi Alex,
A better way to approach this is to use a text variable.
Please find attached a project that has this.
The project has three nodes, pano_01, pano_02 and pano_03.
But I am using their node ids so node1, node2 and node3.

To see a node ID, first, make sure this is selected in the settings, under the advanced tab, then under the heading Tour Browser select Show internal node ID. Now when you mouseover any node in the tour browser you will see its node ID in the tooltip.

1.png
1.png (46.09 KiB) Viewed 2414 times

Use the skin configuration button and enter the node ID the button should open.

2.png
2.png (54.23 KiB) Viewed 2414 times

To open node two, enter, node2
On publishing the project will open in node one (node1), press the button and it will go to node two (node2).

How it works:
I added a text variable to the skin: node_open, type text, selected expose, and set the exposed text which is "Enter node ID".
The button which is a text box has the action:
Source: Mouse Click
Action: Open Next Panorama
URL: {$(*node_open)}
View: Default View

To understand the URL first you must know Pano2VR uses node IDs internally, so when you open a node its actually using {nodex}.
So open curly bracket {, node, so example node2, then close curly bracket, }.
{node2}

What I have done is replace the node ID with the text variable which is $(*node_open)
So ending up with {$(*node_open)}
As I entered node2 using the skin configuration button, the text variable placeholder, $(*node_open) will be replaced with the node.
The button will now call, mouse click, open next panorama, {node2}.
Regards,
Hopki
Attachments
alex.zip
(33.11 KiB) Downloaded 201 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/
xhalemedia
Posts: 35
Joined: Tue May 19, 2009 6:05 pm
Location: Switzerland
Contact:

Ahhhh Hopki!
you are a legend!
that seems to work a treat!
I have already adapted it and duplicated it so that I can have multiple buttons.
Now I can have a Multifloor map template with buttons to different levels without editing in the skin editor each time to change the text and linked node.

Thanks for your continued excellent support!

Cheers
Alex
Post Reply