This will take a particualr take item online.
''''''''''''''''''
dim takeitem as xpTakeItem
engine.sequencer.GetTakeitemByID(500, takeitem)
takeitem.Execute
''''''''''''''''''''
This will put the actual scene online rather than a copy from the sequencer.
'''''''''''''''''''''''''''''''''
Dim OtherScene as xpScene
if Engine.GetSceneByName("SceneB", OtherScene,False) then
OtherScene.SetOnline(1,0,0)
end if
'''''''''''''''''''''''''''''''''''
------------------------------
Simon Redmile
Senior Graphic Programmer & Designer
Ross Video
Bristol United Kingdom
------------------------------
Original Message:
Sent: 02-24-2022 17:37
From: RYAN GORDON
Subject: Xpression Script to Simply Set Scene Online
Hi all,
This seems like it should be extremely simple but I'm a bit stumped.
We basically want to link two scenes to each other: Essentially if SceneA is online then SceneB should come online as well... and the same when SceneA goes offline, SceneB should go offline.
What's the easiest way to achieve this? I was thinking about using a Script in SceneA's "onOnline" script section that would just fire SceneB. Or we could add a script to the Scene Director for SceneA's IN animation that will just fire SceneB.
Any suggestions would be greatly appreciated! The scripting is a little tougher than I thought.
Thanks
------------------------------
RYAN GORDON
CHEDDAR TV
------------------------------