Graphics

 View Only
  • 1.  Datalinq update in Scene director

    Posted 08-02-2022 21:53
    is there an easy way to update datalinq text during a scene director?

    sorry if this is somewhere eles

    ------------------------------
    Josh Udvig
    CTN STUDIOS - COON RAPIDS
    ------------------------------


  • 2.  RE: Datalinq update in Scene director

    Posted 08-03-2022 04:43
    When you say update, what do you want to change? 

    I'm going to guess you mean, have a value, play an animation and then a new value is there? 


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



  • 3.  RE: Datalinq update in Scene director

    Posted 08-03-2022 10:14
    I have text that is set to not live update and then a transition that goes over the top while the transition has covering the text I'd like to update the text.

    ------------------------------
    Josh Udvig
    CTN STUDIOS - COON RAPIDS
    ------------------------------



  • 4.  RE: Datalinq update in Scene director

    Posted 08-04-2022 04:57
    What you should do is have a hidden data field that is linked to data and set to live update. 

    Then on that item have an onset text script like this;

    dim sd as xpSceneDirector

    scene.GetSceneDirectorByName("Player Update", sd)

    sd.PlayRange(0, sd.Duration)
    sd.AutoStop = true

    On the scene director you'll want your animation keyframes plus a script something like this at the frame you want the data to update, i.e mid animation;

    Dim dataText, dispText as xpTextObject

    Scene.GetObjectByName("DATA_PlayerName", dataText)
    Scene.GetObjectByName("DISP_PlayerName", dispText)

    dispText.Text = dataText.Text





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



  • 5.  RE: Datalinq update in Scene director

    Posted 08-04-2022 11:38
    I have about 20 text objects that need to update.  Do I just copy the Scene.Get lines for all the text objects?

    ------------------------------
    Josh Udvig
    CTN STUDIOS - COON RAPIDS
    ------------------------------



  • 6.  RE: Datalinq update in Scene director

    Posted 08-04-2022 11:48
    That's one way to do it or you can write a loop. In this example the objects I am calling are called, DATA_PlayerName1, DATA_PlayerName2 and so on. 


    Dim dataText, dispText as xpTextObject
    Dim i as integer 

    for i = 1 to 20
    Scene.GetObjectByName("DATA_PlayerName" & i, dataText)
    Scene.GetObjectByName("DISP_PlayerName" & i, dispText)

    dispText.Text = dataText.Text
    next

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