Hey Stephen!
If you make the background a child of the text (I'm assuming the top line), you can have it match the width length of text using the auto scale feature. I have a similar setup for some of my graphics and have attached a picture below.
Take note of object manager structure and auto scaling in the bottom right corner.
If you don't have that option due to being on an older version of Xpression (or any other reason), you can adjust it in Visual Logic like our friend, Azathoth Son of Cthulhu, suggested. I have also included a picture of what that might look like.
Take the bounding box width of the text, add the difference in pixels you want, and set it to the width of the background.
Let us know if this helped!
------------------------------
John Spitznagel
Video Production Engineer
Elon University
------------------------------
Original Message:
Sent: 07-24-2024 11:54
From: Stephen Jimenez
Subject: Xpression - Scalable Shapes to Text
Hi!
I am working on creating some lower third name cards for our Online Worship Experience via Xpression. I have attached a mockup of the concept.
We utilized a slab to make the shape, and are trying to have the background scale in width based on the Datalinq text being pulled in. The issue we are running into is that the slab will stretch out, messing up the corners scaling. The goal is to go wider, but not affect any other part of the shape.
Any suggestions?
------------------------------
Stephen Jimenez
Online Producer
Community Bible Church
------------------------------