Hello there
scripts are not working the way I assumed with text delivered to XPression from Rascular's Automation Gateway (RAG). I've tried several methods to make it work, but it seems to me that the text from RAG is passed on to XPression differently from how it's usually done within XPression.
What I'm trying to do:
Scene 2401 (layer 9 on framebuffer 1) has a textobject "Box0" which receives the text from RAG. It also has a script that triggers another scene in the Sequencer (scene 2404). Until here it is working fine.
Scene 2404 (layer 10 on framebuffer 1) has the following script on the Scene Layer:
dim box0 as xptextobject
dim wb as xpscene
dim text1 as xptextobject
engine.getscenebyname("2401",wb)
wb.getobjectbyname("Box0", box0)
self.getobjectbyname("TEXT",text1)
text1.text = box0.text
dim titel as xptextobject
dim utitel as xptextobject
dim UTbgd as xpbaseobject
dim stringsplitter as string
self.getobjectbyname("TITEL", titel)
self.getobjectbyname("UTITEL", utitel)
self.getobjectbyname("TXT-BGD2", UTbgd)
stringsplitter = "*"
If text1.text.Contains(stringsplitter) Then
titel.text = text1.text.Substring(0,text1.text.IndexOf(stringsplitter)).Trim()
utitel.text = Right(text1.text, text1.text.length-1-text1.text.IndexOf(stringsplitter))
utitel.visible = true
UTbgd.visible = true
else
titel.text = text1.text
utitel.visible = false
UTbgd.visible = false
End If
Engine.ClearFrameBufferLayer(0,9)
When triggering scene 2401 with the Box0 text published in the Sequencer, it passes on the text to 2404 the right way. But when done through RAG it's not working. Is there another solution to this problem?