Simple scenario – Create your scenario in VidiStudio (3)

04

IMPROVE YOUR SCENARIO

Improve your scenario: close the loop

Your scenario should be working fine. But once you go to a state other than the Initial state, you can’t leave, because there is no condition allowing to leave.
To make it simple, you can add a trigger that go from the Kid state to the Initial state, with the condition “After 7 seconds”. It means that everytime this state is shown on screen, it will stay for 7 seconds and then go back to the initial state. Do the same for the Men state and the Women state.

You can test your scenario again if you want, by clicking on the little play icon. 
Be careful! If you didn’t close the previous debug version, two things can be annoying:

  1.  When you edbug your scenario, you can follow in real time in VidiStudio which state is called on screen. 
    It is very nice for debugging, but when you are done debugging, you don’t want the scenario to move and highlight the states that are called on screen.
  2. You can only open so many interactive scenarios at a time. 2 or 3 scenarios opened in different tabs shouldn’t be a problem, but if you open too many, the newer ones won’t be able to listen to the information given by VidiReports, and you won’t see them in action.
So don’t forget to close the tabs after testing !

Make it a little more interactive

This scenario works well. It reacts to the audience when there is an audience, but the interaction stops there.

Let’s make this scenario a little bit more interactive: we want to display a promotion code when people are smiling.
For that, you need to have a content showing a promotion code, and you need to put it on a layer on top of the layer containing the image.
And that is not all! You also need to attach a condition to the promotion code: it should only be shown if someone is smiling.

In VidiStudio, here are the steps to do that:

  1. Click on the state in which you want to add that promo code
  2. Click on the + icon to add a layer.
    Everytime you add a layer, they have different dimensions (layers don’t have to take up the whole screen), but in this case, the layer should take 100% of the screen, so you can click on the pen icon on the layer, set the distance to each edge to 0%, and remove any notion of width or height (you ony need 4 data points to position the layer). Give a name to this layer, to make it easy to identify.
  3. Drag and drop the image containing the promotion code
  4. Click on the pen icon for that image: this opens a panel in which you can select the condition of your choice. Pick “Who are happy or very happy” (it means that they are smiling) and “are at least one”.
That’s it!

Check that it is working

Everytime you add a new condition, you can chek that it is working by quickly opening the debug mode, and doing in front of the camera the condition supposed to trigger a new content on screen. In that case, you need to check that the promotion code appears if someone is smiling, once in the man state. (So you need to have a man in front of the camera to go to the man state, and then have someone smile while on this state). 

Add the same layer to other states

Creating a layer, setting the correct dimensions, naming it, adding a content, putting a condition on that content… all of that took time, and it would be annoying to do the same thing all over again in the Women state. Luckily, you can add a layer that exists in another state. This is the notion of shared layer. If you edit a shared layer in one state, then the change will impact all the instances of that shared layer.

To add the Promotion layer in the Women state:

  1. Open the Women state
  2. Click for a long time on the + icon, and a menu will appear: it lets you choose from which state you want to take your layer. 
  3. Click on Men State > Promotion layer
  4. The Promotion layer will automatically be added under the last layer of your state.
  5. Since you want it to be on top of the image, drag and drop it so that it is on top of the layers list. 
That’s it!

Check that it is working

Check that it is working, once again.
It is important to check frequently so that you can know as soon as something goes wrong.
(You can see on this video that the promotion code only appears if the person is smiling).

If you are satisfied with your scenario, you can now publish it.
Go to the next chapter to see how to.