Forum Discussion
Storyline360, Animation and GSAP ( Greensock )
2 Phil Mayors here? Which one is the real one ;-) Or is one Phil Minor ;-)
Basically its all in the code as is.
Here i set a variable.player.SetVar("debugStr",someNewStr);
So if you add an inline variable anywhere in your project...it will show the text.
But if you want a single value from a given element in your project...
Use this...
var player = GetPlayer();
// collection will be a collection of ALL elements with text
const collection = document.getElementsByClassName("vector-text-item");
/*
Depending of the amount of your texts you need a specific one.
Storyline will count up from 0 till the top layer on top.
So depending on your Storyline this number will differ.
0 is the lowest layer.
collection[0] or collection[7] or whatever layer you need.*/
var someStr = gsap.getProperty(collection[0], "textContent");
player.SetVar("debugStr",someStr);
console.log("someText: "+ someStr);
Thanks Math there are two of me, the other one is the real one this is my other account for a specific company.
I was definitely missing something.
I need lots of these slides that are copies of one another with different text in, do the layers stay the same in each slide or do I need to find the correct layer on a slide by slide basis?
Sent from Outlook for iOS
This is a confidential email. Tesco may monitor and record all emails. The views expressed in this email are those of the sender and not Tesco. Tesco Stores Limited Company Number: 519500 Registered in England Registered Office: Tesco House, Shire Park, Kestrel Way, Welwyn Garden City, AL7 1GA VAT Registration Number: GB 220 4302 31