Graphics

 View Only
  • 1.  Script For Take ID That Can Be Placed And Activated By Its Position In A Scene Director

    Posted 08-30-2017 13:51
    I'm looking for a script that will activate a take id in the sequence side from its location within a scene director. Has anyone come across anything like this yet?


  • 2.  RE: Script For Take ID That Can Be Placed And Activated By Its Position In A Scene Director



  • 3.  RE: Script For Take ID That Can Be Placed And Activated By Its Position In A Scene Director

    Posted 09-01-2017 17:34

    Or place this in a script on the default director where MY_SCENE equals the scene you are working with, and MY_DIRECTOR is the scene director you want to trigger. You would then adjust PlayRange to the length of your scene length. This script makes it so Xpression doesn't care what layer you have your scene on up to 10.




    dim scene as xpScene
    dim fb as xpOutputFramebuffer
    dim scenedir as xpSceneDirector
    dim layer as integer

    engine.GetOutputFramebuffer(0, fb)
    for layer = 0 to 10
    if fb.GetSceneOnLayer(layer, scene) then
    if Scene.Name = "MY_SCENE" then
    if scene.GetSceneDirectorByName("MY_DIRECTOR", scenedir) then
    if scenedir.position >= 150 then
    scenedir.PlayRange(150, 0)
    else
    scenedir.PlayRange(0, 150)
    end if
    end if
    end if
    end if
    next

    #XPression