Understanding Text box math
Hello. I am trying to make a caption title template for FCP that has black text, and a grey filled box with adjustable roundness. I have it all figured out, mostly.
I have three layers, Text, "Background" (which is the bounding box for the text), and "Alignment module" which allows me to align the centers of the text layer and bounding box so that it looks nice and keeps letters like y, j, g centered in the background box when typing, instead of having it weighted towards the top.
The "Background" box Shape > Geometry > Size height and width is linked to the appropriate Text parameters (using the Link parameter) which works well. I can adjust the opacity and roundness of the box. I have the Text and Background shape layers setup to "Align To" a hidden "Alignment module" shape layer, so that it all stays pretty much centered in the background box.
Now comes the question. I have the Text > Layout set to "Paragraph" so that I can set margins. These are open captions, so we keep them relatively short to follow the speaker along quickly, and not have large lines of text on screen. The margins will also help me when we reformat for social purposes between 16x9, 9x16, and 1x1 (or whatever social flavor of the day). What I can't work out is the math of the paragraph box position, anchor point, and margins.
The paragraph box seems to count from 0 > whatever pixel from the left of the box to the right of the box. The position and anchor point properties work off of a 0,0 middle point from the center of the screen. So if I select the text tool, and drag a box to set the margins, all of the numbers between the size of the text box in pixels, and the relative position in the frame all weird to try and calculate. 3000 wide in the paragraph box is -1500 - > 1500 in the canvas.
It seems to be all working, but is there an easier way to have adjustable margins where the numbers of the position parameters are close to the numbers of the margins instead of trying to offset the difference between the 0,0 coordinate measurement, and the "count up from 0" margins?
Hopefully this is making sense.