Graphics

 View Only
  • 1.  Text BoundingBox.'Left' function in Visual Logic

    Posted 09-22-2015 21:15
    Hi!

    So I have a problem where I'd like to move some objects as the bounding box of text is expanding. I noticed that this could easily be achieved with linking BoundingBox.Right value with Position.X of object in Visual Logic if I need to move objects to the right as the box is expanding to the right. But I have the opposite case, so the box is expanding to the left and I'd like to move objects in that direction however I can't find the BoundingBox.Left value in Visual Logic or is there some other way I could achieve the same logic but in opposite direction?


  • 2.  RE: Text BoundingBox.'Left' function in Visual Logic

    Posted 09-23-2015 00:03
    If the Text Box has a Tab Stop set to "Right" (so it grows to the left), just take the X Position of the text box and subtract it's Bounding Box Width..

    In this example I wanted a quad to be placed before the text object, so I did the above, and also subtracted Half the Bounding Box Width of the Quad (since the X position of the quad is in its center), and also subtracted a bit of extra space:



    #XPression


  • 3.  RE: Text BoundingBox.'Left' function in Visual Logic

    Posted 09-23-2015 00:06
    Actually I only needed one subtract block.. This is simpler:



    #XPression


  • 4.  RE: Text BoundingBox.'Left' function in Visual Logic

    Posted 09-24-2015 12:00
    I actually came up with the same basic idea while waiting for the reply, so yours just confirmed what I was thinking all along. I finally had the chance to test it today and it's working like intended. Thanks!

    #XPression