Forum Discussion
BarbaraJacobs-1
8 months agoCommunity Member
Built-in scene title variable?
Where is the built-in scene title (text) variable?
BarbaraJacobs-1
8 months agoCommunity Member
Thank you, Nadim, but I need the scene title. We work with scenes in so many ways, particularly as they apply to accessibility. I need that variable.
Nedim
8 months agoCommunity Member
I understand, but this built-in variable doesn't exist ā and it never has. In my previous post, I included a link to the official list of built-in variables currently available in Storyline. If using JavaScript isn't an issue, Iād go with what Nathan suggested in his post. Here's another snippet you can use on your master slide ā it essentially does the same thing. Other than that, I don't see another solution but to create a custom text variable for the scene name.
const Sidebar = document.querySelector("#sidebar-panels .cs-selected");
const currentSceneName = Sidebar
?.parentNode?.parentNode?.parentNode
?.querySelector(".cs-listitem span:nth-of-type(2)")
?.innerText;
setVar("currentSceneName", currentSceneName);Related Content
- 12 months ago
- 12 months ago