Offset Effect Animation in After Effects
Wed Nov 01 2023 23:11:10 GMT+0000 (Coordinated Universal Time)
Saved by
@vjg
#javascript
size_x = transform.position[0]*2;
size_y = transform.position[1];
x_offset = effect("Offset")("Shift Center To")[0]+(time*(size_x/thisComp.duration));
if(time < (thisComp.duration/2)){
y_offset = ease(time, 0, thisComp.duration/2, size_y, size_y*2);
} else {
y_offset = ease(time, thisComp.duration/2, thisComp.duration, size_y*2, size_y);
}
[x_offset, y_offset];
content_copyCOPY
Comments