Graphics

 View Only
  • 1.  Triggering Different Scene Directors

    Posted 01-11-2018 20:00
    I'm somewhat new to Xpression, and there is something I haven't been able to figure out. In Chyron, I've been able to to set up multiple animations and tie them to keys that let you play the animations out on command, in any order, using those keys. I haven't found a way to do the same in Xpression. I have managed to create multiple Scene Directors, but I can't figure out how to trigger them. This may be a simple problem, but I'm hoping somebody can point out what I'm missing.


  • 2.  RE: Triggering Different Scene Directors

    Posted 01-11-2018 20:03
    Keys = keyboard shortcuts - right?
    Some people call their graphics "keys" so want to make sure we tell you the right thing :)
    #XPression


  • 3.  RE: Triggering Different Scene Directors

    Posted 01-11-2018 20:10
    Yes, I'm referring to keyboard shortcuts.
    #XPression


  • 4.  RE: Triggering Different Scene Directors

    Posted 01-11-2018 20:25
    You'll need to do some scripting for this.

    http://i.imgur.com/kqtLBcS.png

    If you haven't already you'll want to make a new keyboard map (don't use the default). It's the button right beside the keyboard map dropdown.

    And you can assign any keyboard shortcut to these actions.

    And then use a script like this:

    dim output as xpoutputFramebuffer
    dim scene as xpScene
    dim dir as xpSceneDirector

    engine.Getoutputframebuffer(0, output)
    output.GetSceneonlayer(0, scene)
    scene.GetSceneDirectorByName("Refresh", dir)
    dir.playrange(0, 200)

    That'll trigger a scenedirector by name on a certain output and layer.

    If you want to trigger just an animation controller you would use the 'GetAnimControllerByName' instead.

    You can find the different methods (play, stop, pause, etc) you can apply to the SceneDirectors and AnimationControllers in the XPression SDK file under the xpSceneDirector Object Members and xpAnimationController Object Members.

    Windows > Start > All Programs > XPression Studio > Help > XPression SDK Help

    #XPression