Graphics

 View Only
  • 1.  Visual Logic Bounding Box Not Affected by Group Position Adjustment?

    Posted 12-11-2023 23:40

    Hello,

    I am trying to get some visual logic working, but I am experiencing some odd behavior and I cannot seem to get around it. I have a scene which places 4 separate text objects in a row, each of which has a quad underneath that is set equal to its text objects' width. This part works well. They then need to move based on the length of the object in front. For example, if stat 1 gets more text, then stat 2 needs to shift to the right, and stat 3 and 4 should also shift equally. I have logic that successfully does this by locking the group position for the right text object to the right bounding box of the object to its left. However, when doing this, it only affects the item to the origin item's immediate right. For example, if item 1 gets longer, item 2 will move, but items 3 and 4 stay put. I am doing this by setting the Group X position equal to the BoundingBox.Right property. Would the BoundingBox.Right property not be affected by the changes to the entire group's position? I've attached screenshots. How can I get the items to the right to all move if one of the earlier items changes in length? Thank you!

    Edit: A secondary issue I am running into is that the length of the text in the box does not move objects proportionally. In the 4th image, you can see how the text gets scrunched up when longer strings are entered. Its like the bounding box property does not move linearly with the group position?



    ------------------------------
    Jack Reynolds
    ------------------------------



  • 2.  RE: Visual Logic Bounding Box Not Affected by Group Position Adjustment?

    Posted 12-12-2023 00:09

    Solved it. I was using the text object bounding box, I should have been using the group bounding box as the input.



    ------------------------------
    Jack Reynolds
    ------------------------------