Forum Discussion
MathNotermans-9
4 years agoCommunity Member
Get info from active element in Storyline
As another user asked a question in the forum about how to get info of the current selected object, i jumped onto that to figure it out. Actually getting the actual focused element was easy enou...
MathNotermans-9
3 years agoCommunity Member
Just did some tests and looks like with a default checkbox in Storyline the text of the checkbox is actually exact the same as its 'accessibility name'. So Basically this code will retrieve a checkboxes text.
var allTimelineElements = document.getElementsByClassName('slide-object slide-object-vectorshape shown');
var accNameElement2Change = gsap.getProperty(allTimelineElements[6],"data-acc-text");
console.log("allTimelineElements: "+allTimelineElements.length+" | "+accNameElement2Change);
Where the number is your current layer...count from below.