Graphics

 View Only
Expand all | Collapse all

scoreboard update animation

Malcolm Thorpe

Malcolm Thorpe05-28-2015 19:33

David Quinn

David Quinn07-04-2018 14:30

  • 1.  scoreboard update animation

    Posted 10-16-2014 14:12
    We have a lower third scorebar on our jumbotron generated by Xpression which is tied to our OES scorers table. With the changing scores in the basketball game, I would like to add an animation as the score changes. Right now it simply cuts to the new score. Before I do my usual over thinking of the idea I wanted to post here first for a simple solution. Thanks in advance.


  • 2.  RE: scoreboard update animation

    Posted 10-22-2014 17:01
    I've seen people do it like this.

    3 Text Objects:

    Text DATA

    Text A

    Text B

    The Text DATA object is not visible and is datalinq'd to the scoreboard. When Datalinq updates the Text DATA object it copies it's content to Text A and animates in. When the Text DATA object updates again it copies its content to Text B and Text B animates in and Text A animates out.

    Basically you animate Text A and B in and out as the DATA text object updates their content.

    #XPression


  • 3.  RE: scoreboard update animation

    Posted 10-22-2014 19:26
    Thanks Garner,

    I'll start tinkering. I am wondering how I can get Text DATA to keep from updating both Text A and Text B. It gives me something to work on. Thanks again.

    #XPression


  • 4.  RE: scoreboard update animation

    Posted 10-23-2014 18:53
    You really only need two text objects for this.. Here is an "ugly" sample.. It simply slides and dissolves the new text in as the old text slides/dissolves out. Play this back from the sequencer and use the widget to change the value.

    http://ross.brickftp.com/f/5c3f85865

    #XPression


  • 5.  RE: scoreboard update animation

    Posted 10-30-2014 04:44
    Brian,

    I need to thank you for this one. I tinkered around a bit and modified the animation and it's rock solid on our score bar. We used it tonight on the season opener. Thank you again for all the help you have given me.

    #XPression


  • 6.  RE: scoreboard update animation

    Posted 04-02-2015 23:15
    Now a footnote to the above post. Is there a way through scripting that I can trigger a given animation based on the home score increasing by 3 points (i.e. a "Three-Pointer") Thanks all

    #XPression


  • 7.  RE: scoreboard update animation

    Posted 05-05-2015 17:17
    Using visual logic, I have set it up so that ScoreAMT is subtracted from NewScoreAMT. If the difference is 3, then I trigger an animation to display a "3 POINTER". Now, how can I then replace the value of ScoreAMT with NewScoreAMT? I have to wait for the first argument to be resolved and then update the score.

    #XPression


  • 8.  RE: scoreboard update animation

    Posted 05-05-2015 17:21
    Malcom,

    Being old-school, I would probably just do this all inside the OnSetText script for the score. I would compare the new score with the old score and play a scene director if the difference is 3.. If you can send a link to your scene/project I could probably add the script for you.

    Brian

    #XPression


  • 9.  RE: scoreboard update animation

    Posted 05-05-2015 17:25
    Thanks Brian,

    I will give it a shot stumbling through on my own first. I'm trying to wrap my head around this. Then will you throw me a rope?

    Malcolm

    #XPression


  • 10.  RE: scoreboard update animation

    Posted 05-05-2015 17:27
    Depending on exactly what you are doing, it would be something like this (off the top of my head with zero testing):

    OnSetText:

    `dim sd as xpSceneDirector

    if CInt(Text) - CInt(Self.Text) = 3 then

    self.GetSceneDirectorByName("3 pt home", sd)

    sd.PlayRange(0, sd.Duration)

    end if`

    #XPression


  • 11.  RE: scoreboard update animation

    Posted 05-05-2015 17:31
    actually it might be slightly different because I remember now you had a score change animation where it would update a hidden text object then play an animation to reveal that new score value.. I'd only really be able to help once I could see the scene itself; but maybe my script snippet above will be enough to get you going..

    #XPression


  • 12.  RE: scoreboard update animation

    Posted 05-05-2015 18:19
    I am producing a baseball game tonight. I will set up a link to the scene tomorrow. Thanks Brian.

    #XPression


  • 13.  RE: scoreboard update animation

    Posted 05-11-2015 16:50
    Brian,

    I did a simple display using your script with a single text field tied to a counter widget and a quad that would spin if the argument was true. When I put the scene on line, and click "up" on the widget I get the following exception "Exception class: EIntfCastError Interface not supported" The widget continues to update the text but never triggers the anim. Thanks as always

    #XPression


  • 14.  RE: scoreboard update animation

    Posted 05-27-2015 13:37
    I understand I am late to this but I have a similar question. I have our scorebug linked up with a AllSportCG and I was wondering what I would need to do to add a simple animation to the updating text.

    Thanks

    #XPression


  • 15.  RE: scoreboard update animation

    Posted 05-27-2015 14:21
    Here is a link to the sample I posted earlier in this thread: https://ross.brickftp.com/f/445e8ffed

    It simply slides and dissolves the new text in as the old text slides/dissolves out. Play this back from the sequencer and use the widget to change the value.

    #XPression


  • 16.  RE: scoreboard update animation

    Posted 05-27-2015 14:22
    Malcolm, sorry I didn't see your message from 2 weeks ago.. The EIntfCastErr is almost always caused by a script trying to do a GetObjectByName and expecting the object is a text object or something; but you probably have multiple objects in the scene with the same name (e.g. a group object called "HomeScore" and a text object called "HomeScore") so the script ends up getting the wrong object..

    #XPression


  • 17.  RE: scoreboard update animation

    Posted 05-28-2015 16:32
    Brian,

    Thanks. I will look into it. But when I ran the simple test scene it had 2 text objects in it and that was it.

    Caleb, the score update scene Brian linked to works like magic. It's very easy to customize and never causes a problem.

    #XPression


  • 18.  RE: scoreboard update animation

    Posted 05-28-2015 17:09
    Hi Malcolm,

    If you still have the scene or can reproduce the issue, just drop me a note and I can look into it.. I'm sure it's something quite easy to resolve.

    #XPression


  • 19.  RE: scoreboard update animation

    Posted 05-28-2015 17:53
    Brian, I have exported the scene. what is the best way to get it to you.

    Malcolm

    #XPression


  • 20.  RE: scoreboard update animation

    Posted 05-28-2015 18:11
    You can also upload to the Ross Customer site here:

    app.brickftp.com

    User: Xpression

    Password: rossvideo

    Users on this site can only upload and cannot read the files on the site. Only Ross support employees have access to the files on this FTP.

    #XPression


  • 21.  RE: scoreboard update animation

    Posted 05-28-2015 19:33
    UT JAZZ/AUTO 3

    Thanks Brian

    #XPression


  • 22.  RE: scoreboard update animation

    Posted 05-28-2015 20:45
    Malcolm,

    The problem in your script was this:

    `self.GetSceneDirectorByName("THREE", sd)` should be `scene.GetSceneDirectorByName("THREE", sd)`

    (In OnSetText, self refers to the text object, and only the scene object has a GetSceneDirectorByName function)

    However, this approach won't work with widgets, but I did test it with datalinq so it should work from your OES or Daktronics scoreboard, but you'll want to run some tests to make sure..

    #XPression


  • 23.  RE: scoreboard update animation

    Posted 09-25-2015 21:48
    I'm going to revive this topic a bit and add a challenge to people smarter than me...the examples in this thread can animate from one number to the next. How about animating numbers like an odometer - or like the numbers shown here: CFB Score Animation (the numbers don't necessarily need to separate the ones and tens).

    I experimented with scene directors and scripting but haven't gotten it to work simply. I have a low tech method for doing this, but was hoping for something more concise. (ie: scripting and/or visual logic)

    Thanks!

    Brian

    #XPression


  • 24.  RE: scoreboard update animation

    Posted 09-29-2015 16:58
    Hey Brian,

    I had a similar situation at one point last season where I had to create an actual 'odometer' for a promo. To do this, I created a 'track' of numbers in Photoshop -- a tall image with the numbers 0 - 9 evenly spaced from top to bottom. To make things easier, each number and the space around it was exactly 100 pixels tall. In XPression I set the texture mode to wrap so that it would seamlessly cycle the numbers when it went over nine, and had a script running on the OnSetText event for the data to split up the digits and dynamically create keyframes to animate the numbers.

    In my case I had several digits that animated down from a large number very quickly, so I didn't have to deal with the problem you'd likely face in your animation where the tens digit needs to animate only as the singles digit goes from 9 to 0. If I did, I would try putting a script in the OnRender event for the scene that checked to see if the image for the single digits was moving above 9, and then animate the tens digit up one.

    #XPression


  • 25.  RE: scoreboard update animation

    Posted 10-22-2015 17:27
    Brian,

    Im probably too late for this but what if you made a cylinder and mapped a number wheel to the outside of the tube. You could then tie the rotation to a number entered via a text field or from a data field. A little math and it would automatically rotate.

    #XPression


  • 26.  RE: scoreboard update animation

    Posted 03-02-2016 04:17
    Brian,

    What are the chances we can revive this post with visual logic. We're trying to make our basketball scorebug trigger a scene director once the score changes by 3. Our bug is linked via datalinq so I'm not sure on how to proceed with this.

    #XPression


  • 27.  RE: scoreboard update animation

    Posted 03-02-2016 05:48

    The easiest would be to use an OnSetText script on the score that just checks the old value and new value to see if they are 3 apart. (This is assuming the scoreboard changes it by +3 and doesn't do a +1 +1 +1 to go up by 3).. The OnSetText script would be something like:

    Code:
    dim sd as xpSceneDirector
    scene.GetSceneDirectorByName("ThreePoint", sd)
    if CInt(text) - CInt(self.text) = 3 then
      sd.PlayRange(0, sd.duration)
    end if

    #XPression


  • 28.  RE: scoreboard update animation

    Posted 03-02-2016 08:14
    Would you be able to repost the project file from earlier in this thread?
    #XPression


  • 29.  RE: scoreboard update animation

    Posted 03-02-2016 15:08
    Yes I will look for it today, or create a new sample..
    #XPression


  • 30.  RE: scoreboard update animation

    Posted 03-02-2016 15:12
    Here is a link to the earlier sample; this just demonstrated how to have a score change be animated rather than cut to the new value. It uses two text objects and an OnSetText script to trigger the animation. Play the scene from the sequencer then open up the widgets and use the widget to change the score.

    http://transfer.rossvideo.com/f/df6645dcd

    This does not do what you were asking for which was to play a special animation when the score changes by 3 points.. I probably won't have time to build a sample like that today but I will try to in the next few days.
    #XPression


  • 31.  RE: scoreboard update animation

    Posted 01-23-2017 18:51
    I tried to find the file on the link but all I saw was blank folders. I'm trying to recreate this scoreboard (4 min mark). I've never done scripting before but I guess this is a good time to learn. Any help would me awesome!

    Thanks,
    Nick
    #XPression


  • 32.  RE: scoreboard update animation

    Posted 01-24-2017 02:42
    Here is the sample from earlier in this thread. It shows how to have a score change trigger an animation to change the number.
    Put the scene online from the sequencer and use the Widget controls to modify the score.

    https://transfer.rossvideo.com/f/33a40f23e

    This was not intended to be "graphically" nice; it's simply a ugly scene to demonstrate the mechanics..
    #XPression


  • 33.  RE: scoreboard update animation

    Posted 01-24-2017 13:46
    Awesome thanks! Doesn't need to be graphically nice, just need to have a visual starting point, much appreciated.
    #XPression


  • 34.  RE: scoreboard update animation

    Posted 07-02-2018 14:59
    Hello people from the past! Any chance the example project that was uploaded by @bford could be re-uploaded? The link no longer works. We are also looking at a good way of animating datalinq changes while on air and would be curious to see how it has been done in this example.

    Thanks!
    #XPression


  • 35.  RE: scoreboard update animation

    Posted 07-03-2018 16:38
    @daveq we are in middle of NBA Summer league but I can upload or send direct my take on his project. It uses the same scripting.
    #XPression


  • 36.  RE: scoreboard update animation

    Posted 07-04-2018 14:16
    Here is the previous sample I had made: https://transfer.rossvideo.com/f/fac6b81571548c41

    #XPression


  • 37.  RE: scoreboard update animation

    Posted 07-04-2018 14:30
    Thank you!
    #XPression


  • 38.  RE: scoreboard update animation

    Posted 01-16-2019 12:33
    I think you've heard this one before @bford ... any chance we could get yet another upload of that example you've given out earlier?
    #XPression


  • 39.  RE: scoreboard update animation

    Posted 01-16-2019 14:18


  • 40.  RE: scoreboard update animation

    Posted 01-17-2019 14:57

    Hey cfurrow, you can either put a script to play scene director on text update or if you don't like to script I do have a solution using Visual Logic.

    Only the text box called next value is published. Score is hidden and copied to using this method. When the strings don't match it plays the animation, when the animation plays it triggers the input selector so they match again so it only play once then it's reset and ready to go again.

    You'll also need a reset point on your animation and a "null" scene director.



    Here is he scene to have a look at;
    https://www.dropbox.com/s/5tw9rs2w0wu3a62/scoreupdateVL.xpp?dl=0


    #XPression


  • 41.  RE: scoreboard update animation

    Posted 01-17-2019 14:59

    Hey Cfurrow,

    Here's a project that uses visual logic to solve this issue in case you don't want to script.

    Link to scene
    https://www.dropbox.com/s/5tw9rs2w0wu3a62/scoreupdateVL.xpp?dl=0



    see some of the attached images for more hints.


    #XPression


  • 42.  RE: scoreboard update animation

    Posted 08-09-2019 12:06

    Hi there again @bford. So yeah... I've changd computers since I asked for the download last time. And it seems this little demo vanished along with it. Any change I/we could get a new download for the example provided earlier?


    #XPression


  • 43.  RE: scoreboard update animation

    Posted 08-09-2019 15:12

    I don't have the scene to upload but here is the script that you use. Change VisScoreB to the name of your text object and change VisScoreChange to the name of your animation controller

     

    dim VisScoreB as xpTextObject
    dim ac as xpAnimController

    scene.GetObjectByName("VisScoreB", VisScoreB)
    VisScoreB.text = self.text

    scene.GetAnimControllerByName("VisScoreChange", ac)
    ac.PlayRange(0, 16)


    #XPression


  • 44.  RE: scoreboard update animation



  • 45.  RE: scoreboard update animation

    Posted 05-05-2022 07:18
    i am not able to download that file please can you re post that link for download?
    http://ross.brickftp.com/f/5c3f85865

    ------------------------------
    NewBin
    Designer
    ------------------------------



  • 46.  RE: scoreboard update animation

    Posted 05-05-2022 11:04
    I've tried the solution Red offered and it's pretty slick. My script works well too if you want to dive into scripting. Let me know if you want more info. I got the original script from Brian Ford who (I think) moved on. His project would probably include the script I posted.

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



  • 47.  RE: scoreboard update animation

    Posted 05-06-2022 07:43
    Thankyou for your replying... :)
     now its solve thankyou :)

    ------------------------------
    NewBin
    Designer
    ------------------------------



  • 48.  RE: scoreboard update animation

    Posted 04-02-2023 23:28

    UPDATE - I figured this out, kind of.  I have the UpdateScore scene director trigger a 2nd scene director that has the display full, and that 2nd scene director stops the UpdateScore scene director at the end.  I also had to add a trigger in the UpdateScene scene director to stop the 2nd one that I added.  That allows the scene to play correctly in the sequencer.  Right now, it does 0%-100% opacity as soon as the score updates.  I can't figure out how to build a delay in visual logic so that when the score changes, it will play the scene director and wait X frames before updating the display text to the new score.

    ---------------------------------------------------------------

    Reviving this thread, as I'm having trouble getting this to work and I'm hoping someone can help me out.  I've got a scene that has 2 text objects: Score-data is pulling a score from a widget (will be Datalinq eventually, testing with a widget though), and is hidden.  Score-display is what shows.  I have a scene director titled UpdateScore that I want to run, and it simply does opacity 100% to 0% over 7 frames, then 0% to 100% over 7 frames.  I want the old score to update at the mid point (7 frames) when the text is hidden.  I'm trying to use the Visual Logic example above, but I cannot get this to work, and I can't figure out why.  I've changed the scene director to only do the 0% to 100% opacity, and I've seen it work once, but then it doesn't work further.  I tried adjusting the Scene Director position to 0, to no avail. 

    It will work in layout all day long, but when I put the scene in a sequence and bring it online, it only plays the scene director once when the scene comes on, and any updates just cut.



    ------------------------------
    Aaron Rice
    ------------------------------



  • 49.  RE: scoreboard update animation

    Posted 04-03-2023 05:14

    When using visual logic you need a way to rewind the scene director. It's not easy because you get into conflicts. 

    I have managed it with a clock widget before but script is much easier.

    Place this onSetText on your text object. 

    dim sd as xpscenedirector

    scene.getscenedirectorbyname("your director", sd)

    sd.playrange(0, sd.duration) 
    sd.autostop = true 





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