Graphics

 View Only
  • 1.  Xpression - Scalable Shapes to Text

    Posted 07-24-2024 11:55
      |   view attached

    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
    ------------------------------


  • 2.  RE: Xpression - Scalable Shapes to Text

    Posted 07-24-2024 14:05

    In VLogic adjust the width, don't scale.

    or

    I've done similar stuff and used an .obj model.

    Make a rounded endcap as an .obj. It can be rotated 180 deg on the z axis to make both sides.

    In the center add a quad and scale while adjusting the endcap position. Easy if you choose your origins/pivots correctly.



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------



  • 3.  RE: Xpression - Scalable Shapes to Text

    Posted 07-25-2024 11:42

    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
    ------------------------------



  • 4.  RE: Xpression - Scalable Shapes to Text

    Posted 07-26-2024 13:01

    You are going to want to use a visual logic block as well to compare the 2 lines.  Get the bounding box width of top line and bottom line, and compare them.  That would then go to the example below, where you take the bounding box width and add a value to it. - You do the compare, that way if it ever a short name, like John Doe, then the subline will be considered as well when setting the width of the background.

    You can also do a pivot visual logic block in order to help keep the left pixel where it is at.

    There are plenty of other forum post that take you through this.  Just search around.



    ------------------------------
    Garrett Hall
    Overtime Elite
    Atlanta United States
    ------------------------------



  • 5.  RE: Xpression - Scalable Shapes to Text

    Posted 07-26-2024 13:12

    Hope this will help you,