I am trying to automate drawing some shape layers with trim path - the time it takes for the line to be drawn should depend on the length of the line which I got with sourceRectAtTime()
But I think my problem is that when trim path is at 0% sourceRectAtTime will give me a value of 0 and draw the line in no time
Is there any way of getting the size of the layer before trim paths?
h = layerS.height;
w = layerS.width;
len = length([0, 0], [w, h]);
trans = linear(len, 200, 800, minTim, mxTim);
a = linear(time, startTime, startTime + trans, 0, 100);