I have a scripting question regarding text. I currently have a lower third scene with what we call "Franchise Tabs." These are essentially a 3rd line of text over a background that aren't always visible. For example, if we have Breaking News we use the Breaking News Franchise tab, which puts Breaking News above the lower third.
Anyway, my scene currently has a text layer for each franchise tab available, and when the producer puts a character or characters into a field it shows the corresponding text layer. So, for Breaking News, the producer puts "br" in a published text field.
My goal is to eliminate all the text layers in the scene, and streamline the script so the graphic might run more smoothly.
So, I want to write a script that essentially makes a non-published text field a certain string of text if the producer puts a certain "shortcut" into the published text field.
This is what I have so far, but it isn't working:
===============================================
dim franchisetext as xpTextObject
dim franchise as xpTextObject
dim br as xpTextObject
self.GetObjectByName("Franchise Tab", franchisetext)
self.GetObjectByName("Franchise Text", franchise)
if franchisetext.text="br" then franchise.text="Breaking News"
================================================
Essentially, the Franchise Tab object is where the producer puts the shortcut. The Franchise Text object is where I want to return the longer version.
Any help is greatly appreciated.