Graphics

 View Only
  • 1.  Selecting Multiple Scenes with Scene Director Triggers

    Posted 05-26-2020 16:13

    Hi, I'm creating a scene that uses scene director triggers to take another graphic offline at the same time. But I have multiple versions of the graphic that need to be taken offline. Is there a way to select multiple Scenes within one scene director trigger, or would I need to just make multiple different scene director triggers. Every one the scenes I want to take offline have the same scene director to be triggered, just would be easier to apply this if I could select all the scenes with just one Trigger.



  • 2.  RE: Selecting Multiple Scenes with Scene Director Triggers

    Posted 05-26-2020 18:47

    Well using 10 different Scene Director Triggers would be the fastest option.

    But in one Scene Director Trigger, you can only assign one scene at a time.

    Another option could be to use a script on your Timeline that links to a specific layer on a specific framebuffer and triggers the Scene Director through there.

    And a final option could be to put all 10 of your different bugs in the same scene and use some Visual Logic to determine which Scene Director to trigger and to hide all of the other bugs.


    #XPression


  • 3.  RE: Selecting Multiple Scenes with Scene Director Triggers

    Posted 05-26-2020 20:12

    Thanks for the help!

    I thought using 10 different triggers might be the fastest option to do so, just didn't know if there was a way to select multiple scenes within one trigger. Would be a cool option to have in the next version of xpression. 

    If I had it my way, I'd have all the bugs in one scene and use logic like you suggested, but my news department isn't a fan of having too many options within a scene. It makes it kinda hard to do my job sometimes. 

    If I were to use some kind of script, any idea what something like that would look like?

     


    #XPression


  • 4.  RE: Selecting Multiple Scenes with Scene Director Triggers

    Posted 05-26-2020 21:07

    A script would look something like this:

    dim fb as xpOutputFrameBuffer
    dim scnSelected as xpScene
    dim sd as xpSceneDirector


    Engine.GetOutputFrameBuffer(x, fb)
    fb.GetSceneOnLayer(x, scnSelected)
    scnSelected.GetSceneDirectorByName("SD_YOURNAME", sd)
    sd.Play();

    Replace the X's with the id of the output frame buffer and the layer on which the bug is loaded. Remember that the output framebuffer starts with 0 and not with 1.

    And replace the SD_YOURNAME with the name of the SceneDirector which is the same in every scene.

     


    #XPression


  • 5.  RE: Selecting Multiple Scenes with Scene Director Triggers

    Posted 05-26-2020 21:25

    That worked perfectly. I have to add this to a few other graphics, so this should speed up the process significantly.

    Thanks for the help Kenneth!


    #XPression


  • 6.  RE: Selecting Multiple Scenes with Scene Director Triggers

    Posted 05-29-2020 12:50

    The scene name field can accept a wildcard * character; so with appropriate naming of the scene you could do something like "*Bug" for the scenename and it would apply to any scene that ends with the characters "Bug" in their name.


    #XPression


  • 7.  RE: Selecting Multiple Scenes with Scene Director Triggers

    Posted 05-29-2020 14:59

    Thanks Brian, I was curious about whether or not you could do something like that within the scene directors. I've already used scripting to solve my problem, but I will definitely keep that in mind for future projects!


    #XPression