/// EDIT ///
A better solution can be found here for Pano2VR 7, it is also possible for the component to be adjusted for Pano2VR 6 pro.
Please see: viewtopic.php?p=73063#p73063
Hi,
Here's a project I have been wanting to show for a while.
This uses Direct Node Access to affect a variable, so you add a value to the end of a URL which can then be used to affect the output.
In this example, the first URL shows a simple panorama with a title.
https://support.ggno.me/forum_projects/ ... index.html
The next URL is the same project but now uses the direct access parameters with the value on the end.
https://support.ggno.me/forum_projects/ ... 70,4,robot
The value "robot" is used as a variable value in the skin.
This value adds an external image loader with a link URL to a wiki page, background rectangle, and change the page title.
This also moves the border to the right by 100px and then enters the title text.
The next URL: https://support.ggno.me/forum_projects/ ... 4,computer
This changes the variable value to "computer".
This changes the image, URL, and title.
The project requires Direct Node Access for it to work, so for a single node project you need to add the panorama twice so the project has two nodes, then you can remove the second one.
This fools the project file that it is a multi-node tour so enable Direct Node Access.
How to use:
You need to copy and add the ExtValue.ggt to your project file and select the template under the HTML tab of the HTML5 output or add it to Pano2VR's templates folder if you will use it often.
The variable needs the name: ExtValue, this has to be a text variable.
You can then use this variable in the skin like any other variable. You can even use this to change languages.
The URL needs to end with the node, pan, tilt, FoV, then the projection, and then the value.
So for example: #node1,0,0,70,4,robot
In order:
- #node1, this is the opening node, so could be #node3 for example if node three needs to be the opening node
- 0 is the pan value
- 0 is the tilt value
- 70 is the field of view value
- 4 is the projection, Rectilinear, 9 would be Stereographic
- robot is the variable value the project is using along with computer
Regards,
//Edited// Set Variable Value with Direct Node Access
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
- Attachments
-
- ExtValue.ggt
- (8.06 KiB) Downloaded 196 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/
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/
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi,
Please find attached a modified template, thanks to Christoph (Gnome).
Also changed the name to CustomValue.ggt
Looking at the last project the URL looked a bit ugly having to include the node, view, and projection.
This new template only needs the value, so as an example, index.html#robot
Also, this works with a single node project.
To recap you need to copy the CustomeValue.ggt to your project folder or add it to the Pano2VR templates directory, but in either case, make sure it's selected under the HTML5 outputs HTML tab. Using the Edit Template button make sure that in the templates setting Custome Value is selected.
In the skin, you need to add a TEXT Variable with the name ExtValue.
To test, add a text box to your skin and set it to display the text variable, $(*ExtValue).
This will now display any value you enter at the end of the URL.
As an example, if you added #blue after .html without any spaces, the text box will display "blue".
Regards,
Please find attached a modified template, thanks to Christoph (Gnome).
Also changed the name to CustomValue.ggt
Looking at the last project the URL looked a bit ugly having to include the node, view, and projection.
This new template only needs the value, so as an example, index.html#robot
Also, this works with a single node project.
To recap you need to copy the CustomeValue.ggt to your project folder or add it to the Pano2VR templates directory, but in either case, make sure it's selected under the HTML5 outputs HTML tab. Using the Edit Template button make sure that in the templates setting Custome Value is selected.
In the skin, you need to add a TEXT Variable with the name ExtValue.
To test, add a text box to your skin and set it to display the text variable, $(*ExtValue).
This will now display any value you enter at the end of the URL.
As an example, if you added #blue after .html without any spaces, the text box will display "blue".
Regards,
- Attachments
-
- CustomValue.ggt
- (6.5 KiB) Downloaded 379 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/
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/
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi david,
Sorry no, if you need the node then you will need to use the first template.
The idea of the second one is if people want to select the language, so a text variable, en or de, for example.
Regards,
Sorry no, if you need the node then you will need to use the first template.
The idea of the second one is if people want to select the language, so a text variable, en or de, for example.
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/
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/
Hi,
thanks for the quick reply,
I understand, that's a good thing. i've been wanting a way to hide my splash screen when coming from an external link (and keep direct node access), this should make it possible (with only drawback is i need to fill out the angle numbers too although they are not strictly needed for the purpose)
thanks,
David
thanks for the quick reply,
I understand, that's a good thing. i've been wanting a way to hide my splash screen when coming from an external link (and keep direct node access), this should make it possible (with only drawback is i need to fill out the angle numbers too although they are not strictly needed for the purpose)
thanks,
David
Hi Hopki, is there a way to use this to change the preview image shown when sharing direct nodes? So that When i share on social, the preview image for the start node is different from say Node02 and so on.
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi,
You can do this with a node image in a cloner to generate preview images in the images folder.
Then you can use a config loaded action to load and image, if you have many actions loading the preview image for all nodes, you can then use the variable to use in an action filter to select which node should be selected.
Regards,
You can do this with a node image in a cloner to generate preview images in the images folder.
Then you can use a config loaded action to load and image, if you have many actions loading the preview image for all nodes, you can then use the variable to use in an action filter to select which node should be selected.
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/
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/
Hi, is it possible to set Variable Value for a string? I mean something like www.site.com/index.html#"Max Mustermann"
Or i should make a logic for every value? My client want to make a "customozible" intro text for 100+ different names.
and a 2. is it possible to add a second ExtValue?
Thanks!
Or i should make a logic for every value? My client want to make a "customozible" intro text for 100+ different names.
and a 2. is it possible to add a second ExtValue?
Thanks!
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi NOVOSELOV,
The template allows one variable.
But it's a text variable so used with an Action Filter it can be used to trigger many things.
For example, used with a Variable Changed source action and an action filter, you can do many things.
Or in logic blocks change text depending on the variable value.
Regards,
The template allows one variable.
But it's a text variable so used with an Action Filter it can be used to trigger many things.
For example, used with a Variable Changed source action and an action filter, you can do many things.
Or in logic blocks change text depending on the variable value.
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/
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/
Hi,
I try to update this for V7, it seems some VR skin loading script lines are new, but i cant get it to load the project.. i see the skin but the panorama doesn't show. can this pass value be adapted?
Hints appreciated
best,
David
I try to update this for V7, it seems some VR skin loading script lines are new, but i cant get it to load the project.. i see the skin but the panorama doesn't show. can this pass value be adapted?
Hints appreciated
best,
David
- Hopki
- Gnome
- Posts: 13029
- Joined: Thu Jan 10, 2008 3:16 pm
- Location: Layer de la Haye, Essex UK
- Contact:
Hi David,
The ExtValue.ggt has been updated and now works with V7.
The CustomValue.ggt still worked ok with V7.
Regards,
The ExtValue.ggt has been updated and now works with V7.
The CustomValue.ggt still worked ok with V7.
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/
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/
-
- Posts: 11
- Joined: Tue Nov 17, 2020 11:20 am
- Location: Singapore
This is a great post, Hopki !
Thank You so much.
Thank You so much.
-
- Posts: 11
- Joined: Tue Nov 17, 2020 11:20 am
- Location: Singapore
Yes ! Great.Hopki wrote: ↑Thu Nov 04, 2021 2:07 pm Hi NOVOSELOV,
The template allows one variable.
But its a text variable so using with an Action Filter it can be used to trigger many things.
For example used with a Variable Changed source action and an action filter you can do many things.
Or in logic blocks change text depending on the variable value.
Regards,