OK, I almost have it.
It all works, except the Scene Script shows up as the Bottom Candidate Perc (the visible, non published layer) when I put it into the sequencer.
So, when I'm looking at it in the Layout view, there is nothing in that layer. As soon as I move it over to the Sequence to test it, the entire Scene Script is visible. If I erase it all, and type a number in it, everything works just fine. It doesn't show up in the Top Candidate Perc, just the bottom.
Here are my scripts:
In a hidden layer called Top Candidate Percentage --
dim TopCand as xpTextObject
scene.GetObjectByName("Top Candidate Perc", TopCand)
TopCand.Text = text & "%"
In a hidden layer called Bottom Candidate Percentage --
dim BottomCand as xpTextObject
scene.GetObjectByName("Bottom Candidate Perc", BottomCand)
BottomCand.Text = text & "%"
Scene Script:
dim TopCand as xpTextObject
dim BottomCand as xpTextObject
dim winner1 as xpBaseObject
dim winner2 as xpBaseObject
dim candval1 as integer
dim candval2 as integer
Self.GetObjectByName("Top Candidate Percentage", TopCand)
Self.GetObjectByName("Bottom Candidate Percentage", BottomCand)
Self.GetObjectByName("Top Check", winner1)
Self.GetObjectByName("Bottom Check", winner2)
candval1 =cint(TopCand.text)
candval2 =cint(BottomCand.text)
if candval1 > candval2 then
winner1.visible = true
winner2.visible = false
end if
if candval2 > candval1 then
winner1.visible = false
winner2.visible = true
end if
There's a layer called Top Candidate Perc and another Bottom Candidate Perc -- Those are the visible layers.
I'm so confused as to why this should happen.
#XPression