-
Trying to make one shape rotate with a 5 seconds delay behind another shape
Hey all, I am new to ae expressions and by no mean a math genius. I thought this expression will drive the lower layer to rotate 5 seconds behind the top layer but they are rotating in sync. the expression seems valid with no error. What did I miss here?
Top layer (index 2):
var initialRotation = 0;
var rotationIncrement = 10;
var currentRotation = initialRotation + rotationIncrement + Math.floor(time);
[currentRotation]
Bottom layer (index 3) :
var R = thisComp.layer(index-1).transform.rotation;
var P = R.valueAtTime(time-5);
[P]
Some contents or functionalities here are not available due to your cookie preferences!This happens because the functionality/content marked as “Google Youtube” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.