How to calculate the distance between anchor point and rect right edge of a text layer?
I want to calculate the distance between the anchor point and animated Text layer's right side edge.
I 'm fully aware of this can be done with sourceRectAtTime() expression and I know this expression have only 4 parameters which are Top, Left, Width & Hight.
If the text is not animating and it's anchor Point isn't moved (it's [0,0]) I can simply calculate the distance between anchor point to the text's right side edge by (soruceRectAtTime().width/2) it's too easy because the anchor point is in the middle of the text layer. But If the text layer animating. the anchor point will move depends on the current size of the text layer that's being revealed. So I can't use the previous method to calculate the distance between anchor point to the right edge of layer.
Can I get help on this???
Note : I used expression in SourceText property to animate text layer with substr method. Because I want to have resizing rectangle size and cursor at the edge of text.