Graphics

 View Only
  • 1.  Getting the outgoing scene via Scripting

    Posted 10-28-2020 12:02

    Is there a way to get the outgoing scene on a given layer via scripting?

    I.E. I set a scene online on layer X.

    I set another scene online on layer X and the transition logic runs to move between the two.

    If you use getSceneOnLayer during the transition you get the incoming scene (despite the outgoing scene being marked online in the sequencer and the incoming scene being marked as transition)

    Assuming that I don't know what the take item ID is then how would I go about getting the outgoing scene?

    In an ideal world there would be a way to get both the incoming and outgoing scenes in a transition situation.

    I tried using OnSceneOffline in a scene that's on another layer but it doesn't fire until the outgoing transition finishes so that's no help sadly.



  • 2.  RE: Getting the outgoing scene via Scripting

    Posted 03-19-2021 14:35

    What do you actually want to achieve?

    I assume it's some sort of action while that scene is deactivating?

    Why not put the scripting in the out animation and put a condition on it so it only does whatever it is you require when you require it?


    #XPression


  • 3.  RE: Getting the outgoing scene via Scripting

    Posted 03-19-2021 14:42

    I can't actually remember what this was for anymore. Whatever it was I'm guessing I worked around it?

    I have a vague feeling it was to do with determining if a scene on another layer needed to change based on the scenes that were transitioning but I've honestly no idea!


    #XPression


  • 4.  RE: Getting the outgoing scene via Scripting

    Posted 03-19-2021 16:58

    If you remember and it comes back let me know! :)


    #XPression