Graphics

 View Only
  • 1.  Centering groups

    Posted 08-20-2020 15:46

    I have a graphic that needs to have a "legend" at the top. There could be anywhere from 1 to 5 items in the legend. Each one is a group containing a quad with a solid color and a text object that will vary.

    I would like for the legend to automatically center along the top line like this:

     

     

    Here is how I grouped my objects:

     

     

    And here is the Visual Logic I used to get each group to center:

     

     

    Now I can't figure out how to get the individual legend "groups" to center. Like I said, these may vary depending on what the user enters.

    Hopefully this makes sense.



  • 2.  RE: Centering groups

    Posted 08-22-2020 20:38

    If you're willing to do a little bit of scripting I think I can help you with a solution. Let me play around with a few ideas then I will shoot you a solution (if I get it).

     

    Malcolm


    #XPression


  • 3.  RE: Centering groups

    Posted 08-24-2020 16:35

    Hey Kenny,

     

    I'm thinking this should work for you:

    I've published the Visibility of each group for an operator to manually toggle what's shown (in case there's a stray space, but you can easily hook them up to the IsEmpty block like you already have)

     

    Here's the visual logic:

     


    #XPression