Graphics

 View Only
  • 1.  Visual Logic - If true, set position

    Posted 04-24-2018 21:37
    Hi there!

    I've got a question about visual logic and some IF/ELSE logic.
    Now if I could do this with scripting, like in DashBoard, this would be no problem what so ever... However, visual logic seems to confuse me.

    I have a text element, that when there is text, turns the visibility for a group object containing the text and a quad.
    Likewise, it hides the group with both elements if the text field is empty.
    (The text field gets it's value through DataLinq, and the visual logic checks "ifEmpty" block from the text object)

    Now... There is another text object in the scene, and I would very much like to be able to set that objects X position and width based on wether or not the group mentioned above is visible or not.
    But I cant get a way to set the X value if above check is true. Seeing as it's a boolean value, not an int value (well, it's a 0 or 1 but yeah)...


  • 2.  RE: Visual Logic - If true, set position

    Posted 04-25-2018 13:45
    Feed the boolean into the "Input Selector" block. Then feed the output to the X Position of the object. Feed the X value that you want when the boolean is false into the "0" input of the input selector, and the true value into the "1" input of the input selector.

    #XPression


  • 3.  RE: Visual Logic - If true, set position

    Posted 04-25-2018 18:29
    Feed the boolean into the "Input Selector" block. Then feed the output to the X Position of the object. Feed the X value that you want when the boolean is false into the "0" input of the input selector, and the true value into the "1" input of the input selector.


    Aha! Input selector block it is then! Cool! Thanks!
    I love XPression for it's visual-logic and the ability to make dynamically graphics relatively easy! And now I got even more option!
    #XPression