Forum Discussion
GSAP, x-y transformation in the Modern Player
I updated my storyline to the latest version and registered both plugins, but I am still getting the loading error in the console. Could it be a plug in is corrupt? or a variable wrong?
console log - MotionPathPlugin.min.js:10 Uncaught TypeError: Cannot read properties of undefined (reading '0')
- MathNotermans-92 years agoCommunity Member
Timing probably is the main issue. In my setup i count and check whether all scripts are loaded. When that is true i set a variable and when that changes...i know all needed scripts are loaded and i can register and do anything needed. I do think here the scripts never get fully loaded at the moment when registering the plugins. Trying to fix it in your setup now.
Im gonna change it to my approach on loading external scripts... yours should work...but doesnot... lets see if that helps.
There is something really fishy in your setup...as i publish it with your code and my loading setup...it fails too. If i however publish an older version using GSAP Plugins...they work as before. So i will investigate further. - MathNotermans-92 years agoCommunity Member
Figured it out. Lines in Storyline are not pure SVG. That was the issue. When using a proper SVG it works fine...as you can see in this sample.