Hi again
Figured I'd share how I ended up doing this.
'Get random number as Variable
Dim MyValue As Integer
MyValue = Int((2 * Rnd) + 1)
'Define objects to be used
Dim Quad As xpQuadObject
Dim Mat1, Mat2 As xpMaterial
Self.GetObjectByName("VidQuad",Quad)
Engine.GetMaterialByName("Kiosk1",Mat1)
Engine.GetMaterialByName("Kiosk2",Mat2)
'Check Rand Int and run Corresponding SceneDir
If MyValue = "1" Then
Quad.SetMaterial(0,Mat1)
End If
If MyValue = "2" Then
Quad.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.
------------------------------
Aleksander Stalsberg
Inland Norway University of Applied Sciences/Lillehammer Icehockey Club
Norway
------------------------------