Make a dot follow a centered text with expressions
Hello!
Right now I have 2 expressions, which make a dot follow my text. It works when the text is left-justified and right-justified. But I can't figure out how to make it work, when the text is centered.
This is the expressions I use:
LEFT-JUSTIFY:
x=thisComp.layer("SText").sourceRectAtTime(time,true).width + thisComp.layer("SText").transform.position[0] + effect("x Offset")("Slider");
RIGHT-JUSTIFY:

thisComp.layer("SText").transform.position[0] - thisComp.layer("SText").sourceRectAtTime(time,true).width - effect("x Offset")("Slider");
What do I need to change to make it follow the text, when centered?
Just like in the picture here:

Thank you and have a great day.