Forum Discussion
Object states on a masterslide are not retained on other slides...
Hi,
On a SL360 module's masterslide, I have objects (triangles) that must change color according to a button clicked on particular slides. I've placed them on the masterslide because they need to retain their new color throughout the module. The object shows its new color when the current slide is displayed, but when the other slides are displayed, it reverts to its “normal” state. However, when I redisplay the slide on which the trigger button is located, the new color reappears.
It should be super simple, but I don't understand why it doesn't work. Do you have a suggestion? I'd love to!
I've attached a little sample file. :-)
Thanks in advance,
Alain
Hello Alain.
There's something illogical in the way it doesn't work, or rather in the way you find the red or green color of the triangle when you return to the slide, when your trigger is waiting for an action from you (clicking on the button).
On the other hand, it's perfectly normal for triangles not to retain their color from one slide to the next: with each new slide, the timeline of the master slide (re)begins, and at the start, the triangle's color is blue.
So, to achieve this, the master slide must know EVERY TIME whether it is coloring the triangle red or green AT THE BEGINNING of its timeline, using a true/false variable that is modified when you click on the “Change color” button. This is the theory. Take a look at the .story file I'm sending you. It works exactly as you'd expect, if I've understood correctly. Please note that I'm displaying the values of the variables on the screen (which is handy for checking how things work in real time): so you can see that the variables keep their values from slide to slide, and so do the triangles, since their colorations depend on them. It's clearer when you look at the file. I hope I've helped.
2 Replies
- AlainDumaisCommunity Member
Oh wow, thank you!
Indeed, I lack logic with triggers. I rarely use them on masters. I'm going to use your template and comments to redo it on my end, and learn from you.
Thanks again, it's really appreciated.
Alain D.
- ThierryEMMANUELCommunity Member
Hello Alain.
There's something illogical in the way it doesn't work, or rather in the way you find the red or green color of the triangle when you return to the slide, when your trigger is waiting for an action from you (clicking on the button).
On the other hand, it's perfectly normal for triangles not to retain their color from one slide to the next: with each new slide, the timeline of the master slide (re)begins, and at the start, the triangle's color is blue.
So, to achieve this, the master slide must know EVERY TIME whether it is coloring the triangle red or green AT THE BEGINNING of its timeline, using a true/false variable that is modified when you click on the “Change color” button. This is the theory. Take a look at the .story file I'm sending you. It works exactly as you'd expect, if I've understood correctly. Please note that I'm displaying the values of the variables on the screen (which is handy for checking how things work in real time): so you can see that the variables keep their values from slide to slide, and so do the triangles, since their colorations depend on them. It's clearer when you look at the file. I hope I've helped.