Graphics

 View Only
  • 1.  Text input to auto-fill another text element.

    Posted 02-06-2019 16:00
    Good morning, everyone!

    Got a quick question.

    I have a scoreboard scene. I'm trying to get my "mascot" segment to auto-fill when the coordinating "school" has been selected from a drop down list.

    Example, "Bosse" as a school, would automatically fill in "Bulldogs" in the mascot text layer.

    I've been fiddling with some logic to get this to work, but I can't seem to get it just right.

    Any help would be greatly appreciated.

    Thanks!


  • 2.  RE: Text input to auto-fill another text element.

    Posted 02-06-2019 19:38

    if you put this on your text field it will change text. I hope this helps

    Text = text.replace("old text", "newtext")

    if text = "Bosse" then

    text = "Bulldogs"




    elseif text = "Highland" then

    text = "Rams"




    elseif text = "East" then

    text = "Leopards"




    elseif text = "West" then

    text = "Panthers"




    elseif text = "South" then

    text = "Cubs"




    elseif text = "Skyline" then

    text = "Eagles"




    end if

    #XPression


  • 3.  RE: Text input to auto-fill another text element.

    Posted 02-06-2019 20:27
    I will try and get a script to you if I can figure out why you can't see anything I type.
    #XPression


  • 4.  RE: Text input to auto-fill another text element.

    Posted 02-06-2019 20:30

    Put this script on the text object you want to change. for more teams just add more "else if" entries. Text must be exactly like it is in this script.

    Text = text.replace("old text"', "newtext")




    if text = "Bosse" then

    text = "Bulldogs"




    elseif text = "Highland" then

    text = "Rams"




    end if

    #XPression


  • 5.  RE: Text input to auto-fill another text element.

    Posted 02-06-2019 20:31
    Sometimes posts need to be approved before they can be viewed. I've approved the post that you couldn't get to work, Malthepal.
    #XPression


  • 6.  RE: Text input to auto-fill another text element.

    Posted 02-06-2019 20:40
    This can be done much easier, faster and without scripting by using the assigned columns feature of User Input Controls. You can link the column of a user input control to a text object. So if you assign a columnn to one text object it will automatically assign a different column to another text object. Here's a quick picture of what you would need todo - I can go into more detail if that isnt clear:

    https://i.imgur.com/lY23p6m.png

    #XPression


  • 7.  RE: Text input to auto-fill another text element.

    Posted 02-06-2019 20:42
    And here's what it would look like in the Take Inspector in the Sequencer: https://i.imgur.com/FCc8gGG.png
    #XPression


  • 8.  RE: Text input to auto-fill another text element.

    Posted 02-06-2019 20:50
    thats an even better choice. I use that method for logo selections.
    #XPression


  • 9.  RE: Text input to auto-fill another text element.

    Posted 02-06-2019 20:54
    Yeah, Garner. Would you please go into further detail? I'd appreciate it! Also, thank you Mal for your help!
    #XPression


  • 10.  RE: Text input to auto-fill another text element.

    Posted 02-06-2019 21:07
    Boom. Nailed it. Thanks, Garner. That solved my problem. I'll follow back up if I have any more issues.

    Thank you both for your help!!
    #XPression