Introduction to Using Variables
Variables are powerful tools that help simplify automation within a skin.
A variable is like a bucket that stores information that can be later referenced. The variable can be named anything you like but usually represents the information that it’s storing. Variables in Pano2VR can be a word/text, a number, or true/false. Once you name a variable and then give it a value, you can use actions and triggers to either change the value stored in the variable or to check the value.
Create and edit variables in the
Variables table of
the skin’s properties. To show a variable’s value in a text, use the placeholder
$(*name), for example $(*var1).
Skins with many variables get a searchable picker: wherever a menu would list
the variables (inserting a $(*variable) placeholder, choosing a variable in a
logic block or action, or adding an animation
track), a filter field appears once the skin has more than 30
variables. Start typing to narrow the list, use the arrow keys, and press Return
(macOS) or Enter (Windows) to pick. Your most recently picked variables are
listed on top. See
Variable Picker.
In the tutorials below, you’ll learn how to use each type of variable.
Create an Image Slideshow – Number Variable
Learn how to create a slideshow within a panorama using number variables.
Change the Language in Text Boxes – Text Variable
Learn how to change the language of text boxes using text variables. This tutorial was created with version 6. Since version 7, Pano2VR has translation support, so you don’t need this workflow for a translated tour. It can still be useful for small language changes.
Toggle between Hotspot and Thumbnail Navigation – True/False Variable
Learn how to use the true/false variables in the Skin Editor. You learn how to use them within a logic blocks added to buttons that toggle between hotspot and thumbnail navigation.