V6 New placeholders
Posted: Sat Mar 17, 2018 9:34 pm
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
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