Is it possible to display a layer on the slide master from a slide object, possibly with JavaScript?
Aug 11, 2023
I'm looking for the ability to create layers on the master and display them from objects on my slides with this trigger on my slides:
'Show Layer (master layer)
When the user clicks (object/icon)'
The short version: I can display Master Layers from objects that I create on the Master slide, but not from objects I create on the 'working' slides. Is there possibly a way to specifically reference a Master Layer using JavaScript?
The long version: I have a complex simulation (that will inevitably need to change) that needs to be available on all slides. So I put it on a new layer in the Slide Master, along with an icon on the base Slide Master layer that calls/shows that complex layer. This works fine on my slides. Cool!
However, I have some slides with full screen images that cover the calling icon on the Master base layer, so I copied the icon from the Master base layer to display on top of those images on certain slides. But when I try to access/display the Master simulation layer from that slide icon, it does not appear in the list of available layers. Is there possibly a way to specifically reference a master layer using JavaScript? I think that would do it but not familiar with Storyline JavaScript references.
Searched here but nothing specifically related that I can find.
Thanks!
5 Replies
There is, you can do it with a variable.
Create a number variable. On the slide master create a trigger to show layer when that variable changes.
On any slide you want to show the layer add 1 to the variable
That, sir, is a perfect solution! Working like a dream! I didn't think about variables reaching across the master/working slide divide. That could be useful in other situations as well.
Thank you so much. Have a great day. Mine is going better now. lol.
Glad it worked for you, that is one of my favourite tricks for slide masters and feedback master
Thanks again! I'm sure it will come in handy in the future as well.
Alan, I'm glad Phil was able to help.
Phil, that's a genius solution! Thanks for sharing!