ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Timecode Expression

COW Forums : Adobe After Effects Expressions

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Scott McGee
Re: Timecode Expression
on Feb 27, 2019 at 8:41:26 am

Cheers Alex,

I would never have thought of doing that.

I did get an error back because the timecode wasn't in "", but then it worked perfectly

t = "00:00:02:00";

var f = 0;
for(i=0; i<4; i++){
d = t.split(":")[i];
try{d = d.split(":")[0]}catch(e){};
f += parseInt(d);
if(i<2) f*=60;
if(i==2)f*=(1/thisComp.frameDuration);
}

if(time < framesToTime(f)){
100
}else{
0
};


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]