Graphics

 View Only
  • 1.  Script to take out 1st word of sentence

    Posted 03-30-2018 15:24
    I'm pulling in data for the last 3 plays: "Denard Span flys out to left."

    Is there a script I can put in where it'll take out the first word of every sentence?

    Where it would just read: "Span flys out to left."

    Thanks,
    Bob


  • 2.  RE: Script to take out 1st word of sentence

    Posted 03-31-2018 11:53
    I just did a similar thing in one of my scenes. This should get you started. In the script for the text object try this.

    Dim index as integer
    index = Text.IndexOf(" ")
    Text = Text.Remove(0,index)

    This script counts up to the first space in the string them removes everything up to that. How it helps.
    Mike
    #XPression