Graphics

 View Only
Expand all | Collapse all

Transitions for change of data from Dashboard

  • 1.  Transitions for change of data from Dashboard

    Posted 11-22-2022 13:48
    Howdy y'all, 

    Apologies if this is a question that's been answered before but my google-fu has failed me.

    I'm building a simple football scorebug and I'm looking to add transitions to the various text fields as they change. For example a dissolve and push to the score text field when the text changes, or simple a dissolve between entries when the downs change. Would this be a script or used under transition logic? 

    Any help would be appreciated.

    ------------------------------
    Patrick Allen
    Operations Manager
    L2
    ------------------------------


  • 2.  RE: Transitions for change of data from Dashboard

    Posted 11-22-2022 14:15
    This will set you right.
    https://livinglive.community/discussion/run-scenedirector-onsettext

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



  • 3.  RE: Transitions for change of data from Dashboard

    Posted 11-22-2022 17:36
    Thank you so much! I still don't understand how to create it from scratch (brand new to scripting) but I did get it to work.

    ------------------------------
    Patrick Allen
    Operations Manager
    L2
    ------------------------------



  • 4.  RE: Transitions for change of data from Dashboard

    Posted 11-23-2022 07:14
    Got to start somewhere, I started by learning from this forum as well :)

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



  • 5.  RE: Transitions for change of data from Dashboard

    Posted 11-23-2022 13:03
    Could you point me in the right direction for a script to run a scene director whenever a quad is changed from invisible to visible? In visual logic I have a network logo set to turn visible whenever there's no text in the down and distance text. I'd like it to animate on rather than just cut on.

    ------------------------------
    Patrick Allen
    Operations Manager
    L2
    ------------------------------



  • 6.  RE: Transitions for change of data from Dashboard

    Posted 11-23-2022 15:32
    I would think about this in a different way. 

    Make an animation that brings the quad visible or invisible and then use onset text the way you did before except you'll want an if statement. 

    'this checks if its an empty string or not
    If text = ""
    Dim dir As xpSceneDirector
    scene.GetSceneDirectorByName("name_of_your_Qaud_SceneDirector_IN", dir)
    dir.Play() 
    else
    Dim dir As xpSceneDirector
    scene.GetSceneDirectorByName("name_of_your_Qaud_SceneDirector_OUT", dir)
    dir.Play() 
    end if

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



  • 7.  RE: Transitions for change of data from Dashboard

    Posted 11-29-2022 20:34

    OK so can I string together multiple IF statements?

    I essentially want it to animate NETWORK IN when the DOWN text is empty and when the DOWN changes I want it to animate DOWNS IN so that it'll also run the animation when the text changes between, say "1st Down" and "2nd Down" and so forth. But, without the NETWORK quad in it. 

    If I have the NETWORK quad animate out on DOWNS IN then it will keep animating every time I change the downs. So how do I write this out where

    IF txt="" then NETWORK IN
    If txt="[n]" then DOWNS IN, and make NETWORK is invisible? Or can I have it where If txt="[n]" runs NETWORK OUT, but when it changes between from one string to another it runs DOWNS IN?

    Hopefully I'm making sense.



    ------------------------------
    Patrick Allen
    Operations Manager
    L2
    ------------------------------



  • 8.  RE: Transitions for change of data from Dashboard

    Posted 11-29-2022 23:29
    You start with an if statement, then all the rest are else if statements. and end with an end if.

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



  • 9.  RE: Transitions for change of data from Dashboard

    Posted 11-30-2022 04:46
    As Mal said you just write a bunch of if statements. 

    Dim dir As xpSceneDirector

    If text = "BLUE"
    scene.GetSceneDirectorByName("BLUEDIRECTOR", dir)
    dir.Play() 
    end if

    If text = "YELLOW"
    scene.GetSceneDirectorByName("YELLOWDIRECTOR", dir)
    dir.Play() 
    end if



    and so on, there are more efficient ways to do this if you have a lot but this is the most simple and I think it will do what you need for now.

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



  • 10.  RE: Transitions for change of data from Dashboard

    Posted 12-07-2022 23:47
    OK so I'm struggling here, right now I have this, and when it turns to 0 it animates out, but it won't animate in. If its on 1 before the bug is live then it'll be in however. 

    If it matters, the scene directors themselves simply change alpha from 0 to 100 for the In, and 100 to 0 for the out. 

    Dim dir As xpSceneDirector
    If text = "0"
    scene.GetSceneDirectorByName("AWAY POSSESSION OUT", dir)
    dir.Play(0,15)
    end if

    If text = "1"
    scene.GetSceneDirectorByName("AWAY POSSESSION IN", dir)
    dir.Play(0,15)
    end if

    I've also tried

    Dim dir As xpSceneDirector
    If text = "0"
    scene.GetSceneDirectorByName("AWAY POSSESSION OUT", dir)
    dir.Play(0,15)
    else text = "1"
    scene.GetSceneDirectorByName("AWAY POSSESSION IN", dir)
    dir.Play(0,15)
    end if

    ------------------------------
    Patrick Allen
    Operations Manager
    L2
    ------------------------------



  • 11.  RE: Transitions for change of data from Dashboard

    Posted 12-08-2022 07:15
    Off the top of my head a couple things I would try.
    First I would use .playrange rather than just play as you have.
    Secondly directly after play or playrange I would use auto stop.
    Dir.autostop = true
    This is because you have 2 scene directors controlling the same objects. If xpression still thinks out or in are playing they will directly counter what the other is trying to do.
    Using autostop will ensure the conflicting directors are stopped when not in use.


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