Graphics

 View Only
  • 1.  Alternate to Transition Logic?

    Posted 08-09-2023 10:01

    Aside from transition logic, is there a way to compare incoming and outgoing data from scenes with VB?

    Can a scene doing a transition out get takeItem data from an incoming scene?

    Can a scene doing a transition in get takeItem data from an outgoing scene?

    I would like to trigger scene directors based on this via VB instead of having a dozen plus transition rules.



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------


  • 2.  RE: Alternate to Transition Logic?

    Posted 08-09-2023 10:20

    Probably what you'd want to do on the incoming scene onBeforeOnline is collect the data from the currently online scene you intend to playout. 

    Then onOnline set that scene offline. 



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 3.  RE: Alternate to Transition Logic?

    Posted 08-09-2023 10:40

    Unfortunately the SDK documentation isn't always very helpful. How do I know if the takeItem data I am comparing is the current scene or the previous or the next scene?

    Better yet, how do you access the previous or next scene?



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------



  • 4.  RE: Alternate to Transition Logic?

    Posted 08-09-2023 10:46

    you wouldn't really be able to use that unless you're using transition logic, as far as I am aware, thisScene and otherScene are only mean something when scripting in transition logic. 

    Instead you'd need to use something like getSceneOnLayer and pull the info that way. You'd probably also need to do some trickery with layers. 

    For example if the active layer was "1" you would pull data from the scene currently on "1" but your oncoming scene would be on "0". Once the other scene is offline and your new scene is full on you can move it from layer "0" to layer "1" ready for the next item. 

    They're may be other ways to achieve what you want but this is what came into my head, this is all theoretical at this point. 



    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 5.  RE: Alternate to Transition Logic?

    Posted 08-09-2023 10:49

    Thank you for the info and ideas.



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------



  • 6.  RE: Alternate to Transition Logic?

    Posted 08-14-2023 17:46
      |   view attached

    Here's a very very old project showing how we did transition logic using OnBeforeOnline and OnBeforeOffline and comparing the text values of the scenes. 

    Not sure if this will help you or not, but this is the only example of the old way of transition logic I have. 


    Attachment(s)

    xpf
    OnBeforeOnline1.xpf   28 KB 1 version


  • 7.  RE: Alternate to Transition Logic?

    Posted 08-15-2023 10:00

    Very cool.

    This is the set of code I was looking for (from OnBeforeOnline):


    engine.GetOutputFrameBuffer(FramebufferIndex, output)

    ' Get the online scene and see if it is the same as this scene
    if output.GetSceneOnLayer(Layer, onlinescene) then
      if onlinescene.name = self.name then

    I can query the values of the scene already online compared to the incoming scene which is doing the querying.

    The example provided doesn't do this, but the incoming scene could use the variable "onlinescene" to trigger transitions off while "self" triggers transitions on, right?



    ------------------------------
    Azathoth
    Son of Cthulhu
    ------------------------------