Graphics

 View Only
  • 1.  Max Height?

    Posted 06-01-2017 17:50
    So, we have max width to set x-dimensional constraints on single lines of text which is great. I need to do this, but in the Y dimension on a block of word-wrapped text, so the operator cannot exceed the bounds of the graphic. How would I accomplish this?

    Thanks
    - Willie


  • 2.  RE: Max Height?

    Posted 06-01-2017 22:34
    Maybe put the text box in a layer object and mask out where you don't want the text. That way the operator will hopefully see that the text they're typing isn't appearing and realised they've gone too far.
    #XPression


  • 3.  RE: Max Height?

    Posted 06-01-2017 23:28
    Right - I had considered that, but was looking for a more elegant solution, perhaps with VL. I have an idea of how to make that happen, but I am awaiting some feedback from the guy who's helping me suss it out.
    #XPression


  • 4.  RE: Max Height?

    Posted 06-02-2017 16:25
    I've been playing with this one most of the morning and I'm stuck. I have a similar thing but I grow the BG to hold the text. What about limiting the string length? Or building a custom "vertically challenged" font that kicks in if the string length get to a certain length? Brainstorm is fizzling out.
    #XPression


  • 5.  RE: Max Height?

    Posted 06-02-2017 17:14
    So, this is the idea that was given to me by Robert Mann, but I'm unclear exactly what nodes to use:
    [INDENT] [FONT=Calibri] Use a dummy text field that is not visible and feed it into another that is visible. Read the Y Bounding Box (BB) from the dummy text field and compare it to the maximum size that you want the text to be. If the dummy BB is greater then subtract (X) from the scale (Y) of the visible text.

    [/FONT]

    [/INDENT]
    #XPression


  • 6.  RE: Max Height?

    Posted 06-02-2017 18:19
    Robert trained us when we first got our Xpression. Willie do you mind if I give it a try?
    #XPression


  • 7.  RE: Max Height?

    Posted 06-02-2017 18:52

    I don't mind. Though I believe we have a working solution. Robert pinged me this morning with a setup different from what he originally proposed. This does achieve the y scaling as additional text is entered, though it doesn't really impose a limit - so the operator needs to be on their game. There is one part of the rig that seems off with the incremental values on the greater than node, but it works, and translating it to the particulars of my scene was successful.

    So, I share now here with you his example, for you and anyone else with a similar need to study and dissect as needed.

    Cheers,
    - Willie

    Text Y Squeeze.zip

    #XPression