Graphics

 View Only
  • 1.  Bounding box width question

    Posted 04-06-2018 14:27
    I'm using XPression to create graphics for the media channels in our Carbonite switcher.

    I'm trying to create a scene that takes an author name, converts it to uppercase, and then displays the title 50 units to the right of that.

    I've set it up as follows:
    - Author is the parent of Title.
    - Author's Text is sent into Upper Case and back to Author.Text.
    - The BoundingBox.Width of Author, plus an offset of 50, is sent to the Position.X of Title.

    But the Title's position seems to be calculated based on the bounding box of the placeholder text in the scene rather than the actual text.

    Is there a way to access the bounding box width that based on the wider uppercase text?

    It looks fine in the Virtual Output frame buffer but not when sent to the Carbonite.


  • 2.  RE: Bounding box width question

    Posted 04-06-2018 19:21
    Instead of setting the uppercase back into Author.Text, use a second hidden text object. The way you are doing it now requires two frames to process which is why carbonite is not getting the right result; it only receives 1 single frame.

    Alternatively, you can set the smallcaps property of the textobject to 100% and then it automatically uppercases whatever you type in and you don't even need visual logic to do it.




    #XPression


  • 3.  RE: Bounding box width question

    Posted 04-06-2018 22:10
    Thanks - I wound up using the smallcaps approach. I couldn't make the hidden object work, but I might have been trying to do it the wrong way. I set the Y position to be a large negative number to move it off screen. Is there a better way?
    #XPression


  • 4.  RE: Bounding box width question

    Posted 04-07-2018 15:10
    You don't have to move the object offscreen to make it hidden : change it's visibility to "not visible" in "object manager" window.

    But it seems using a second text object requires two frames to process too.

    There is the same behavior that you have in Carbonite with Xpression's preview window
    To make it work try to put a script in Scene.OnPrepare() event to make your text upper
    It then works fine in Xpression's preview , maybe it will too for Carbonite.


    #XPression


  • 5.  RE: Bounding box width question

    Posted 04-07-2018 16:16
    Using two text objects should not require two frames. The way to do it is to make a hidden text object (turn off the visibility). The is the object you publish and what should be modified from the sequencer view. In visual logic, take the output of this hidden text object and pass it through a block to uppercase it, then feed it into the text property of the actual visible text object in the scene. Then you can use that visible objects bounding box to affect other objects.


    #XPression