Graphics

 View Only
  • 1.  Triggering a Scene Director in the parent scene (in a scene group) from a child scene.

    Posted 11-02-2019 03:00

    Hello,

    I'm making a scrolling ticker with a scene group(in the Scene Manager) using the Roll/Crawl effect. The parent scene has the background and the child scene has the text that scrolls across.

    At the end of the scrolling text, I thought I'd put an Event Object to trigger a Scene Director from the master scene that will have an out animation and take the scene offline.

    The Event Object script is working in the child scene because I can get it to change text, but I'm not seeing any results when trying to run the Scene Director from the master scene.

    Here's the script I have:

    dim masterScene as xpScene
    Engine.GetSceneByName("Snipe", masterScene)

    dim allOut as xpSceneDirector
    masterScene.GetSceneDirectorByName("ALL_OUT", allOut)
    allOut.PlayRange(0, allOut.Length)

    Anyone have any solutions or workarounds? Thanks!



  • 2.  RE: Triggering a Scene Director in the parent scene (in a scene group) from a child scene.

    Posted 11-04-2019 03:29

    Instead of using GetSceneByName (which is returning a copy of the scene you are requesting, and not the one actually controlling the scroll), try using Scene.GetParent to retrieve the parent scene.

    Or, you can just use a scene directior trigger event to start the other scene's director, and not use a script at all.


    #XPression


  • 3.  RE: Triggering a Scene Director in the parent scene (in a scene group) from a child scene.

    Posted 11-04-2019 22:54

    Brian, thank you so much. GetParent works like a charm.


    #XPression