Graphics

 View Only
  • 1.  Help With VL - X position following the image's width

    Posted 01-18-2019 18:33

    I need help with some visual logic on how to get a group's (Handle Background Group) x position to follow an image's width.

    So, keep in mind that the image's width will vary between horizontal and vertical images (we are pulling images from facebook, instagram, and twitter).

    At first I did the standard: Image's width -> offset (x) -> Group's x position.
    It worked fine with horizontal images but when the image switched to more of a vertical image, the group'x position becomes wrong.

    I've attached a screenshots of what I'm trying to do.

    If anyone has any suggestions or need more information, please let me know. It is much appreciated!



  • 2.  RE: Help With VL - X position following the image's width

    Posted 01-18-2019 19:00
    Actually I figured it out!
    #XPression


  • 3.  RE: Help With VL - X position following the image's width

    Posted 01-24-2019 16:48
    Oh, do post your solution, to help those who search for this issue in the future! :)
    #XPression


  • 4.  RE: Help With VL - X position following the image's width

    Posted 01-25-2019 16:26

    You right! Sooooo here is what I did to resolve this. Hope this helps!

    I've attached a couple of screenshots to help my point or logic. The quad called "White Frame" will scale it's width with an anchor point at it's center point. Knowing that, we can figure out where the quad's x position is at all times, which is 565. So when the quad's width changes based on whatever image is put into it, we want to know half of it's width. Then we will combine or add both the quad's x position and half of its width to affect the "Handle Background Group's" x position. I'm sure there are probably other ways to go about this, but this seems to work for my situation. Let me know if you need anymore help.


    #XPression