Variables

From DISE KnowledgeBase

Jump to: navigation, search

Contents

Overview

Variables are attributes that can be set and unset either from within Dise or by a Remote Control command, coming from outside. They can be investigated by Dise, allowing you to trigger content based on context and/or events. For instance, a certain content will play only if a variable called "MaleAged50" is set. Contrary to network messages, variables are persistent and will remain even after a computer restart.

Setting variables

Permanent variables

In the Variables tab in the Dise Replay Preferences, you may set an unlimited number of permanent variables.

File:Dise2010ReplaySettingsVariables.png

Variables tab

When Replay starts it will reset the variables, even if they are previously removed. This allows you to specify, for example, that this player is a conference room by defining a "ConferenceRoom" variable.

Dynamic variables

In a Dise Movie

You can have a scene set variables when it is visible by selecting Movie > Edit scene preferences... from the system menu or by right-clicking the scene and select Edit scene preferences..., then go to the Advanced tab.

File:Dise2010ScenePreferences3.png

Scene preferences advanced tab

Objects may also set variables when visible, by selecting Edit > Experimental > Object playback commands....

File:Dise2010ObjectPlaybackCommands.png

Object playback commands

Add these variables when the scene/object is visible

Setup a number of dynamic variables. As soon as the scene ends or object disappears from the timeline, these variables are removed.

Remote control

It is possible to set variables by sending a Remote control message to the player, for instance using Dise Parser.

Command Parameter(s) Description Full command example
AddVariable Variable name Set a variable by the specified name (temporary). 20120315150333|Parser|AddVariable|MaleAged50
RemoveVariable Variable name Unset the variable by the specified name (will only remove dynamic variables). 20120315150335|Parser|RemoveVariable|MaleAged50

HTTP API

You can set variables by accessing the player by using its HTTP API.

Using variables

Variables are scheduled on from the Misc tab in the Edit schedule dialog. Check Variables and add new condition by clicking on the plus button.

File:Dise2010SchedulingMisc.png

Misc. tab

Any object, scene, Dise Movie or channel can be scheduled on variables.
You can combine several variables by adding them to the list. For example, a certain "ConferenceLunch" channel might only be triggered on players with the two variables "ConferenceRoom" and "WithRestaurant" set.




All items on this website are copyright Klocktornet AB 2012, all rights reserved.
All trademarks are property of their respective owners.