Participating Frequently
November 10, 2021
Answered
Error: Syntax Error: missing ) after argument list
- November 10, 2021
- 2 replies
- 5948 views
I have copied and pasted this code from someone who it was working for, but I'm getting this error:
Error: Syntax Error: missing ) after argument list
Can someone please point out the error? I'm new to expressions but can't find it. I've bolded where AE says the problem is.
rateOfSpeed=1;
clockStartTime = thisComp.layer("Timer Duration").effect("Slider Control")("Slider")*60;
clockTimeNumber = Math.floor(clockStartTime – rateOfSpeed*time);
function addZero(n) {
if (n<10) return “0” + n else return n;
}
minutes = Math.floor(clockTimeNumber/60);
seconds = clockTimeNumber%60;
if (clockStartTime > 0 && time < clockStartTime) {
addZero(minutes) + “:” + addZero(seconds);
} else {“00:00”}
