-
sourceRectAtTime() not updating when I move the layer on the timeline
HI everyone. I stumbled on something that I think it’s a bug and I really need for it to work.
The situation is this.
I draw a rectangle. And then add this expression to the anchorpoint.
var myWidth = sourceRectAtTime(time,false).width;
var left = sourceRectAtTime(time,false).left;
var myHeight = sourceRectAtTime(time,false).height;
var top = sourceRectAtTime(time,false).top;
[left+myWidth,myHeight/2+top]This takes my anchorpoint to the right part of the rectangle. If I change the size of the rectangle(not the scale), the anchorpoint follows as it should.
But if now I move my shape layer 2 seconds before, the anchorpoint expression does not work as it should. It has a delay of 2 seconds, like I never moved the layer. Even if I add some keyframes to the size again, the anchorpoint is 2 seconds later for those 2 keyframes too.
I tried removing the expression and then pasting it again. Purging the cache. Enable/disable expression. Adding/removing keyframes.
If anyone had the same issue and found a solution please tell.
Thanks.