-
sourceRectAtTime doesn’t properly update !?
So this is weird. I’m using CC2015 and sourceRectAtTime doesn’t update properly for me.
Basically I want to fake a typing situation with the blinking cursor behind the appearing text. So I created a text layer with appearing text and wanted to stick the blinking cursor layer to the end of the text and have it move along with the appearing text.
My text is set up so that it appears over time via an animated slider:
n=thisComp.layer("jo******@**.com").effect("Tipp Counter")("Slider");
showtext=text.sourceText.substr(0,n);
Now I tried to attach the blinking cursor to the end of the appearing text.
L = thisComp.layer("jo******@**.com");
r = L.sourceRectAtTime(time,false);
fromComp(L.toComp([r.left+r.width,r.top+r.height]))
The value is not being updated over time and the cursor doesn’t move at all.
I also checked what happens with the width of sourceRectAtTime and it doesn’t update either when used solo.Any insight as to what I’m doing wrong? Or is there a bug I’m missing.
Thanks!