Hi there,
I’ve got a script named “coffee_script”. This is the script where I want most of my functions to be in.
A function in this script looks like this:
export function millisecondsToSeconds(milliseconds:number):number {
return (Math.round(milliseconds/1000));
}
From a different script (on the “seen”-script in this case, positioned above the “seen”-scope), I want to call this function. I’m doing this like this:
var video_delay = 2000;
var video_countdown = symbol.nodes.coffee_script.millisecondsToSeconds(video_delay);
This produces an error:
As far as I’m concerned this is the way to go, but I’m obviously doing something wrong here.