Graphics

 View Only
  • 1.  Run SceneDirector onSetText Datalinq update

    Posted 08-13-2022 23:17

    Hi All,
      I am somewhat new to xpression, I have used Chyron quite extensively but moving to xpression now, and have built many scenes now that I can effect on and effect out exactly how I want using the SceneDirectors. 

    What I would like to be able to do is run an Update Out to Update In SceneDirector when the data changes. I think my best plan of attack for this is scripting for it to happen on the OnSetText scripting option of a specific text field. Would anyone be able to point me in the right direction on what I should be attempting? I have basic knowledge in scripting with xpression but am very willing to learn whatever is required on this.

    Thank you for your help.

    ------------------------------
    Curtis MacDonald
    ------------------------------


  • 2.  RE: Run SceneDirector onSetText Datalinq update

    MalThePal
    Posted 08-14-2022 00:52
    Look into transition logic too. It won't trigger automatically, but it might be a way to get where you want. There are tutorials for transition logic.

    ------------------------------
    Malcolm Thorpe
    Free Lance Xpression Designer/Carbonite TD
    ------------------------------



  • 3.  RE: Run SceneDirector onSetText Datalinq update

    Posted 08-15-2022 10:07
    Hello Curtis!
    You're right. Use OnSetText with this script (in text Object).

    Dim dir As xpSceneDirector
    scene.GetSceneDirectorByName("name_of_your_SceneDirector", dir)
    dir.PlayRange(0, 125)

    ------------------------------
    ROMAN YAROSHENKO
    ------------------------------



  • 4.  RE: Run SceneDirector onSetText Datalinq update

    Ross Staff
    Posted 08-15-2022 10:13
    That will only play animations between 0 and 125. 

    You can just use dir.Play rather than playrange to play the entire scene director.
    Playrange can be used to play certain sections such as 60 to 120.
    You can also use things like dir.PlayRange(0, dir.duration) which will start at a fixed frame and end at the end of your scene director.

    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------



  • 5.  RE: Run SceneDirector onSetText Datalinq update

    Posted 08-15-2022 10:42
    Hi Red.
    You are absolutely right. I write 0.125 for example. "die.duration" works better than explicit frame numbers.

    ------------------------------
    ROMAN YAROSHENKO
    ------------------------------



  • 6.  RE: Run SceneDirector onSetText Datalinq update

    Ross Staff
    Posted 08-15-2022 10:48
    All good, I just wanted to explain as people who haven't scripting before might be caught out that was all :)

    ------------------------------
    Simon Redmile
    Senior Graphic Programmer & Designer
    Ross Video
    Bristol United Kingdom
    ------------------------------