Hi Sonja,
if I understand it right, you have got one scene online and you want to trigger another scene under the described conditions.
Add the following 2 Scripts to your MainScene:
Sub OnOnline(Engine as xpEngine, Self as XpScene)
Dim SceneToBeCalled as xpScene
'Get a handle to the scene to be called. If the scene does not exist EXIT
If Not Engine.GetSceneByName("Scene2", SceneToBeCalled, False) then Exit Sub
Dim probe as xpTextObject
' Check the conditions
If Self.GetObjectByName("LAST SHOT SPEED",probe) then
If val(probe.Text) < 100 then Exit Sub
End If
If Self.GetObjectByName("TRI",probe) then
If probe.Text <> "MTL" then Exit Sub
End If
' So we know know that all conditions are met
' Let´s call Scene2 into FrameBuffer 0 on Layer 1
SceneToBeCalled.SetOnline(0,1)
Sub OnOffline(Engine as xpEngine, Self as XpScene)
'Set the other scene offline, when this scene goes offline
Dim SceneToBeCalled as xpScene
If Engine.GetSceneByName("Scene2", SceneToBeCalled, False) then
SceneToBeCalled.SetOffline()
End If
________________________________________________________________________
The second script is to set scene2 offline if scene1 is going offline. Don´t know if you need this.
If you want to show the second scene while scene1 is already online and just the Text is changed you need a little more. Let me know.
![](https://higherlogicdownload.s3.amazonaws.com/ROSSVIDEO/MessageImages/72296032dbba4bedbedc4955efe80d68.png)
------------------------------
Tom Lehmann
CEO
IT Services
Frankfurt/Main Germany
------------------------------
Original Message:
Sent: 12-17-2024 12:00
From: Sonja Broomfield
Subject: How to take online and playout a scene automatically when data conditions are met
(1) last shot is by home team, and
(2) shot speed is higher than 100km/hr).
I can use Visual Logic to set up conditions, but I don't know to script an automatic playout based on my criteria. Can someone help me with this? Thanks in advance!
------------------------------
Sonja Broomfield
On-Air graphics (Duet & Xpression)
Freelance
Canada
------------------------------