Graphics

 View Only
  • 1.  Start random Scene Director when online

    Posted 10-09-2022 16:06

    Hi folks!

    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.



    ------------------------------
    Aleksander Stalsberg
    Inland Norway University of Applied Sciences/Lillehammer Icehockey Club
    Norway
    ------------------------------


  • 2.  RE: Start random Scene Director when online

    Posted 10-16-2022 16:38

    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
    ------------------------------