I'm after a way to start one of 5 Scene Directors on scene online.I've come so far as to figure out this would have to be a scripted event on onOnline part of the scene.The reason I want it to be random is because I want the content on the scene itself (it's a LED board controlled with Tessera) to play randomly.It will be just a small ad thingy for different snacks etc to buy at the game, but it's part of a larger playlist/group on those banners, meaning I have to have ONE scene, but that one scene should alternate (or possibly show the same thing) each time it comes "online".
I have little to no experience in Visual Basic, so I'm kinda stuck not really sure how to "attack" it.
Figured I'd share how I ended up doing this.
'Get random number as VariableDim MyValue As IntegerMyValue = Int((2 * Rnd) + 1)'Define objects to be usedDim Quad As xpQuadObjectDim Mat1, Mat2 As xpMaterialSelf.GetObjectByName("VidQuad",Quad)Engine.GetMaterialByName("Kiosk1",Mat1)Engine.GetMaterialByName("Kiosk2",Mat2)'Check Rand Int and run Corresponding SceneDirIf MyValue = "1" ThenQuad.SetMaterial(0,Mat1)End IfIf MyValue = "2" ThenQuad.SetMaterial(0,Mat2)End If
Ended up with a little different sollution than my original plan.I ended up creating 2 (or more) different video commercials to run on our LED boards instead, and gave them each their own material.
And everytime this scene is online, it will get a random number, and apply a different video material on it based on the result.This in turn will run, and then continue on to the next scene in the group in the sequencer when done.
62 Auriga DriveNepean, OntarioCanada, K2E 7W6
Phone+1 613 228-0688Emailcommunity@rossvideo.com