Page 1 of 1

V6 New placeholders

Posted: Sat Mar 17, 2018 9:34 pm
by Hopki
Hi,
No one has said anything as yet but anyone notice that V6 has new place holders?
Example, in V5 $hu for a hotspot URL.
In V6 its $(hu).

This lets you do some cool things, example use a variable to change a URL in a goto URL action.
The attached project does just this.

You can find the complete list of placeholders on our website:
V6 Doc, Reference => List of Placeholders.

The attached project has two buttons that open web pages, one in a new window and the other in the player.
There are three websites to choose from in the project.

The text boxes when clicked change the variable so the same button can open the different website.
The Variable looks like this:
Name: url
Type: text
Init Value: http://hopkimedia.co.uk

The text box actions to change the URL looks like this:
Source: Mouse Click
Action: Set Variable Value
Variable Name: url
Operation: Set(=)
Value: https://en.wikipedia.org/wiki/Panorama

The open website button has the action:
Source: Mouse Click
Action: Go To URL
URL: $(*url)
Target: $(ht)

You can also use the url variable in other logic blocks, example for a change colour:
Trigger: *url
Comparison: =
Value: https://en.wikipedia.org/wiki/Panorama
Text Color (colour)

The attached project uses all of the above so have a good look and have fun.
Regards,
Hopki

Re: V6 New placeholders

Posted: Wed Mar 28, 2018 7:17 pm
by VBad
Can I insert (i-frame) into the player an object "Object2VR" ?
Regards...

Re: V6 New placeholders

Posted: Wed Mar 28, 2018 11:19 pm
by Hopki
Hi,
Yes just add the below iframe in to a text box.
You can have a button that has the action to show the text box and set the text, which will be the iframe.

<iframe src=“http://www.website.com” width=“100%" height=“100%" allowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" frameborder= "0" ></iframe>

When you hide the text box you also have to unload the iframe by setting having a set text action which with setting nothing, so blanking out the text.
Regards,
Hopki

Re: V6 New placeholders

Posted: Wed Jun 05, 2019 5:51 am
by Isaac Brown
Thanks Hopki, I was looking for the new placeholder list!

I am learning that using variables and placeholders is an immensely powerful coupling.

I look forward to digging a bit deeper here.

Re: V6 New placeholders

Posted: Wed Jun 05, 2019 11:27 am
by Hopki
Hi,
Website => Doumentsation => Refrence => List of Placeholders = https://ggnome.com/doc/pano2vr/beta/placeholders-list/
Regards,
Hopki