Forum Discussion
MathNotermans-9
5 years agoCommunity Member
Storyline360, Animation and GSAP ( Greensock )
Hi,
Trying to figure something out in SL360 i stumbled upon the ds-bootstrap.min.js file thats added to the lib/scripts folder when publishing a Storyline360 file. In that file are GSAP(Greensock...
PhilMayor-b4ca0
2 years agoCommunity Member
Hey Math
Got lost on this
var player = GetPlayer();
const collection = document.getElementsByClassName("vector-text-item");
const textsArray = [];
let baseStr;
for(var i = 0; i < collection.length;i++){
var sStr = player.GetVar("debugStr");
var someStr = gsap.getProperty(collection[i], "textContent");
var someNewStr = sStr+"<BR>"+"i "+i+": "+someStr;
player.SetVar("debugStr",someNewStr);
textsArray.push(gsap.getProperty(collection[i], "textContent"));
}
console.log("someText: "+ someNewStr);
That gives me all of the text in the course in the console, how do I get the text in just one shape?
I am missing something big I am sure.