Graphics

 View Only
  • 1.  Trigger Audio Clip on Datalinq Text Update

    Posted 07-03-2023 18:54

    Happy 4th any and all.

    I fear this is something so simple, I am overlooking the obvious.

    I am creating a gameshow-themed scoreboard.  I have a "ding" audio clip that I would like triggered every time a text object updates it's value from datalinq. Is this even possible?  



    ------------------------------
    Adam
    Off the Post Productions
    ------------------------------


  • 2.  RE: Trigger Audio Clip on Datalinq Text Update

    Posted 07-04-2023 07:58

    Hey Adam.
    It's so simple.
    Create a scene director and name it as 'ding'. Put into the scene director your audio clip.
    Then set in the text object the script below

    Dim director As xpSceneDirector
    scene.GetSceneDirectorByName("ding", director)
    director.PlayRange(0, 200) 'second number is endpoint of your audio clip on the scene director



    ------------------------------
    Roman Yaroshenko
    chief specialist
    RBC-TV
    Moscow Russian Federation
    ------------------------------



  • 3.  RE: Trigger Audio Clip on Datalinq Text Update

    Posted 07-04-2023 08:14

    Thank you for this.  Not sure what I am doing wrong.

    When you say "assign the script to a text object" are you meaning this event handler in scripting?  When the score changes...not getting the audio trigger.



    ------------------------------
    Adam
    Off the Post Productions
    ------------------------------



  • 4.  RE: Trigger Audio Clip on Datalinq Text Update

    Posted 07-04-2023 08:17

    You knw what, Roman...I may have to wait until I get into my studio later today.  Since I tried this on my laptop using Xpression Designer, I am not hearing any audio output from the virtual output.  I only can hear audio when I scrub the scene director.  I am hoping that is my issue. Thx



    ------------------------------
    Adam
    Off the Post Productions
    ------------------------------



  • 5.  RE: Trigger Audio Clip on Datalinq Text Update

    Posted 07-04-2023 08:31

    Adam,  disable the text from template links tad. Set the scene in the sequence and run it



    ------------------------------
    Roman Yaroshenko
    chief specialist
    RBC-TV
    Moscow Russian Federation
    ------------------------------



  • 6.  RE: Trigger Audio Clip on Datalinq Text Update

    Posted 07-05-2023 11:40

    You need to assign your audio device to the virtual output: 

    If you are hearing audio only when you scrub a scene director it is because you only have your audio device assigned as an audio monitor:




  • 7.  RE: Trigger Audio Clip on Datalinq Text Update

    Posted 07-05-2023 11:47

    Thank you!   Always the simplest things I seem to forget to have done. Thought I did have the selected...alas, I didn't.  Thx.



    ------------------------------
    Adam
    Off the Post Productions
    ------------------------------



  • 8.  RE: Trigger Audio Clip on Datalinq Text Update

    Posted 08-21-2023 22:04

    Hi Garner, 

    im doing something similar, but with undesired effects.

    i have an update animation of a score that comes thru datalinq. it works in onsetText, but the first time the takeitem is put online, it also runs the "update" animcontroller... is there any way to only run the OnSetText once the takeitem is online? this only happens when the source is datalinq. if instead it comes from a Counter widget, it works fine.

    any suggestion?

    thanks

    Diego



    ------------------------------
    Diego Garcia
    SOCIEDAD TELEVISORA LARRANAGA S.A.
    Montevideo Uruguay
    ------------------------------



  • 9.  RE: Trigger Audio Clip on Datalinq Text Update

    Posted 08-22-2023 04:38

    Hey Diego there's a number of ways. 

    My preferred method is to check if the In (if using Trans Logic) or Default if not has played or not. 

    The easiest way to do this is to check if it's at the end of its duration or at least over part of its duration if its particularly long. 

    This example would stop it running until IN has passed 30 frames. 

    dim online as xpSceneDirector
    scene.GetSceneDirectorByName("IN", online)

    if online.Position < 30

    else

    'the script you want to happen

    endif 



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