Graphics

 View Only
  • 1.  Visual Logic to Move Text Field on the X axix

    Posted 09-12-2017 22:06
    Hi, I'm trying to use visual logic to set up "TEXT1 IS EMPTY" move "TEXT 2" on the X axis further to the left. Any Ideas? Thanks!


  • 2.  RE: Visual Logic to Move Text Field on the X axix

    Posted 09-12-2017 22:33
    You should be able to tie the Text 1 Is Empty node to an Offset Node with the value of the new position you want to the X Position Node for TEXT 2.
    #XPression


  • 3.  RE: Visual Logic to Move Text Field on the X axix

    Posted 09-13-2017 19:29
    Thanks, I tried that but it doesn't move back to the original X axis when the Text 2 field is filled in
    #XPression


  • 4.  RE: Visual Logic to Move Text Field on the X axix

    Posted 09-13-2017 21:06

    Well, you could try to use 'Bonding Box Width Scaled' instead of 'On Empty', but this will of course move the second text dynamically with the width of the first text.

    Something else you can do which I have done before, is make a 3rd text object, positioned where you would want the second one to be when the first is empty, use VL to tie together the Text values of Text 2 and 3 so you only have to enter the text in one place, and use visibility parameters in VL to make Text 3 not visible unless Text 1 is Empty, and do the inverse to Text 2, so that it is only visible when Text 1 has text in it. The setup for that would look like this:


    #XPression


  • 5.  RE: Visual Logic to Move Text Field on the X axix

    Posted 09-13-2017 21:12

    You could also use an Input Selector, with the value of where you want the text2 to be when text 1 has text entered into it attached to 0, and the value of where you want text2 to be when Text1 is empty attached to 1.

    That would look like this:


    #XPression


  • 6.  RE: Visual Logic to Move Text Field on the X axix

    Posted 09-13-2017 21:54
    Thanks! I actually created 2 mirrored text fields in the 2 X Axis positions I needed and then just turned the visibility on and off depending on whether my Text 2 field was populated with info.
    I'll look at your suggestions too. Thanks!
    #XPression