Graphics

 View Only
Expand all | Collapse all

Clock - change of colour

  • 1.  Clock - change of colour

    Posted 03-01-2023 07:52

    Is there a way I can create a clock where the last 5secs change to a different colour?

    For example: 20sec clock in white text, then 5 to zero in red?

    Cheers

    #XPression



    ------------------------------
    Phil Hewson
    Xpression Freelancer
    ------------------------------


  • 2.  RE: Clock - change of colour

    Ross Staff
    Posted 03-01-2023 14:46

    Text Color changes with text




  • 3.  RE: Clock - change of colour

    Posted 03-02-2023 05:24

    Thanks Garner, it works really well.

    Much appreciated.



    ------------------------------
    Phil Hewson
    Xpression Freelancer
    ------------------------------



  • 4.  RE: Clock - change of colour

    Posted 03-02-2023 05:58
      |   view attached

    Just noticed, when it gets to 5 seconds, the number 5 goes white before turning red - is that solvable?

    Example video attached.



    ------------------------------
    Phil Hewson
    Xpression Freelancer
    ------------------------------



  • 5.  RE: Clock - change of colour

    Ross Staff
    Posted 03-02-2023 09:40

    Probably your logic is slightly wrong, share a picture of it. 



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



  • 6.  RE: Clock - change of colour

    Posted 03-02-2023 09:50
      |   view attached

    Thanks Red, attached.



    ------------------------------
    Phil Hewson
    Xpression Freelancer
    ------------------------------



  • 7.  RE: Clock - change of colour

    Ross Staff
    Posted 03-02-2023 09:54

    Try changing your Smaller Than block to "Smaller Than or Equal To" instead. 



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



  • 8.  RE: Clock - change of colour

    Posted 03-02-2023 10:26
      |   view attached

    Tried both Smaller Than or Equal To & Equal To but its the same.

    Packaged the job to see if I am doing correctly

    Cheers



    ------------------------------
    Phil Hewson
    Xpression Freelancer
    ------------------------------

    Attachment(s)

    xpp
    COUNTDOWN.xpp   80 KB 1 version


  • 9.  RE: Clock - change of colour

    Posted 03-06-2023 04:03

    Hi Red - do you think this is solvable? I tried your suggestions but I'm still getting a frame or two of white before the number on the clock changes to red.

    Cheers



    ------------------------------
    Phil Hewson
    Xpression Freelancer
    ------------------------------



  • 10.  RE: Clock - change of colour

    Ross Staff
    Posted 03-06-2023 05:02

    I did this and it seems to work for me. 



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



  • 11.  RE: Clock - change of colour

    Posted 03-06-2023 05:36

    Thanks Red....adding Trunc to the script, now works perfectly.

    Thanks



    ------------------------------
    Phil Hewson
    Xpression Freelancer
    ------------------------------



  • 12.  RE: Clock - change of colour

    Ross Staff
    Posted 03-06-2023 05:40

    So the reason for that is that from when it changes from 6 to 5 it was actually 5.xxx so the logic see's that as more than 5. Putting the trunc there removes all the numbers after the decimal. 



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