Run SceneDirector onSetText Datalinq update

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.

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.

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)

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.

Hi Red.
You are absolutely right. I write 0.125 for example. “die.duration” works better than explicit frame numbers.

All good, I just wanted to explain as people who haven’t scripting before might be caught out that was all :slight_smile: