Graphics

 View Only
  • 1.  Event Markers won't work when played from sequence

    Posted 05-31-2024 00:04

    I have built a scene using event markers to trigger stagger animations on separate scene directors.

    I have ten quads and ten sets of text objects (one black, one white)

    The quads and the black text are DataLinq'd to several RSS feeds from our website.

    I grouped the quads/text outside of frame and slide them up in front of a perspective camera and take that product and use it as a render view material on a rounded slab.

    I want the white text to reveal as each associated quad comes into view on the slab.

    The text bounding box varies appreciable depending upon the length of the headline from the website---meaning I couldn't just time the stagger animations on the main scene director.

    I put a simple script from the community ( @Simon Redmile ) to trigger my utility scene directors.

    dim sd as xpSceneDirector
    Engine.GetSceneByName("NewsAppPush", Scene, false)
    Scene.GetSceneDirectorByName("Story01", sd)
    sd.play()

    If I drag my scene to an output in Layout Mode and play the main scene director, everything works beautifully, but if I put it in my sequence to play it, my scene director trigger scripts don't work.

    I'm working in the office on Xpression Designer v10.5 build 5543 (64bit)

    Any ideas what could be up?

    I haven't packaged the scene up and taken it to the control room and run it off the Xpression Studio, but I guess I might try that as I've seen things that Designer didn't like that the Studio played with just fine.

    Thanks,

    James.

    #XPression



    ------------------------------
    James Hessler
    WAAY TV (ALLEN MEDIA BROADCASTING)
    ------------------------------


  • 2.  RE: Event Markers won't work when played from sequence

    Posted 05-31-2024 13:45

    If the scene that is calling this is in the same project as the scene you are trying to find, I'd recommend using

    Scene.Project.GetSceneByName("NewsAppPush", Scene, false)

    or

    Self.Project.GetSceneByName("NewsAppPush", Scene, false)

    depending where this script is being called from. 

    Using xpProject instead of xpEngine can solve a lot of problems, especially with xpMaterials.

    Can't guarantee this is the fix. I just know xpEngine always seems to be a crap shoot.



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



  • 3.  RE: Event Markers won't work when played from sequence

    Posted 05-31-2024 23:07

    Hey Azathoth,

    Scene.Project.GetScene worked the same as Engine.GetScene---only when put my scene online in layout mode and played the main scene director.

    Self.Project.GetScene would not compile.

    I looking at the SDK Help, I cannot tell that any of this should work at all---I find no mention of GetSceneByName or GetSceneDirectorByName.

    Could it be that this isn't possible till I upgrade to a version later than v10.5 build 5543?

    Am I doing something else wrong with event markers?

    More than they're designed to do?

    Thanks,

    James.

    #XPression



    ------------------------------
    James Hessler
    WAAY TV (ALLEN MEDIA BROADCASTING)
    ------------------------------



  • 4.  RE: Event Markers won't work when played from sequence

    Posted 06-01-2024 16:11

    I'll admit, I'm not sure where the Event Markers are coming into play, like what you're using them for, however when we want to trigger a scene that we're playing from a sequencer, keep in mind that that take item represents a copy of the scene.

    Getting a Scene from the project or from the Engine, will only get the base template scene, not the copy that's currently on air. For that, we'll either need to ask an OutputFrameBuffer (Engine.GetOutputFramebuffer, then ofb.GetSceneOnLayer)



    ------------------------------
    Zachary Fradette
    United States
    ------------------------------



  • 5.  RE: Event Markers won't work when played from sequence

    Posted 06-05-2024 15:25

    Hey Zachary!

    That fixed my problem, thank you.

    I used this script in OnShow of my Event Markers.

    dim sd as xpSceneDirector
    dim fb as xpOutputFrameBuffer
    Engine.GetOutputFrameBuffer(0, fb)
    fb.GetSceneOnLayer(0, scene)
    Scene.GetSceneDirectorByName("Story01", sd)
    sd.play()

    Since my text bounding boxes varied depending upon the length of headlines, I needed to trigger stagger animations in child scene directors to reveal my text when the event markers appeared in frame.

    All of this is to give my producers a motion graphic to push viewers to our website and news app with current visuals/stories DataLinq'd from the website.

    Thanks,

    James.



    ------------------------------
    James Hessler
    WAAY TV (ALLEN MEDIA BROADCASTING)
    ------------------------------