Coverting timecode to t value
Posted: April 13th, 2010, 2:01 pm
I have the follwing code for a solid layer
dist = 300;
startPos = [301,240];
linear(time,1.2,1.5,startPos,startPos+[dist,0])
Instead of using the 1.2 and 1.5 parameters in the linear method I would like to use a variable that holds a timecode format and convert the format into t so I can use it in the linear method. See below
dist = 300;
tmin = 0;00;1;03
tmax = 0;00;1;18
tmin_convert = ?
tmax_convert = ?
startPos = [301,240];
linear(time,tmin_convert,tmax_convert,startPos,startPos+[dist,0])
How to I convert tmin and tmax to t values so I can use them in the linear method.?
dist = 300;
startPos = [301,240];
linear(time,1.2,1.5,startPos,startPos+[dist,0])
Instead of using the 1.2 and 1.5 parameters in the linear method I would like to use a variable that holds a timecode format and convert the format into t so I can use it in the linear method. See below
dist = 300;
tmin = 0;00;1;03
tmax = 0;00;1;18
tmin_convert = ?
tmax_convert = ?
startPos = [301,240];
linear(time,tmin_convert,tmax_convert,startPos,startPos+[dist,0])
How to I convert tmin and tmax to t values so I can use them in the linear method.?