Graphics

 View Only
  • 1.  Stopping Animation when cueing scene

    Posted 03-13-2017 22:41
    So awhile ago someone provided me a script for animation for updating a score. I have now altered it do what I want. When I activate the scene to bring it to air, it rolls. I want it to roll when I update the score but not when I activate the scene. Any ideas?

    Thanks,

    Nick


  • 2.  RE: Stopping Animation when cueing scene

    Posted 03-15-2017 02:41
    We can't answer this without being able to see the scene and how it is built.
    #XPression


  • 3.  RE: Stopping Animation when cueing scene

    Posted 03-16-2017 14:44
    If you are using an OnSetText script to play an animation, and the text object is a published text object, then that object gets set when the scene is prepared to go online. This will trigger the animation to play when going online.

    You could add a check to your script that checks if the scene is already online or not to decide if it should play the animation.

    Like this:


    dim sd as xpSceneDirector
    if Scene.IsOnline then
    scene.GetSceneDirectorByName("SceneDirector2", sd)
    sd.PlayRange(0,150)
    end if


    This is all purely guessing though, since you haven't showed us what you are doing or the modifications you've made..
    #XPression


  • 4.  RE: Stopping Animation when cueing scene

    Posted 03-27-2017 17:33
    Hey, sorry I haven't got back to you, I was in the middle of production and was curious for a quick fix. I will take a look at the code and get back to you hopefully in the next few days.

    I believe the code was the same as your demo. I just changed the animation.
    #XPression