Button link to pano Custom Node ID

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

Button link to pano Custom Node ID

Post by xhalemedia » Thu Sep 05, 2019 9:55 am

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: 9446
Joined: Thu Jan 10, 2008 3:16 pm
Location: Layer de la Haye, Essex UK
Contact:

Re: Button link to pano Custom Node ID

Post by Hopki » Thu Sep 05, 2019 2:58 pm

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 110 times

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

2.png
2.png (54.23 KiB) Viewed 110 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 16 times

xhalemedia
Posts: 34
Joined: Tue May 19, 2009 6:05 pm
Location: Switzerland
Contact:

Re: Button link to pano Custom Node ID

Post by xhalemedia » Thu Sep 05, 2019 4:49 pm

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

Who is online

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