It moves to the right instead of left because the value is getting bigger, just multiply it by negative 1 and the number will get smaller accordingly and move in the other direction.

------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
------------------------------
Original Message:
Sent: 05-12-2020 15:26
From: Nicole Hambrick
Subject: VL Offset Function Working Backward, Right Justified Text
Hey everyone!
I'm trying to build out the whole text-background-expands-as-text-box-grows-or-shrinks thing. I've done it before with text that is left-justified using a mask Position X box that moves based on the Bounding Box Width of the text box, with an offset.
However, I'm now trying to do it with a text box that is right-justified and move the mask on the left side of the text box. It's working in reverse of what I want. As the text box gets bigger, the mask moves to the right instead of the left...which makes sense, I just can't figure out how to make it work in reverse.
Any tips would be appreciated!