vMix Forums
»
General
»
3rd Party Software and Development
»
simple scripting - countdown colour change clock for events
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,220 Location: Belgium Thanks: 291 times Was thanked: 953 time(s) in 788 post(s)
|
Originally Posted by: DoyleTX Hi, this is great and thanks everyone for sharing. I was just curious to know if there was an easy string that could replace the flashing ending time and actually cause the timer to start counting up (reverse) after it reaches 0:00 in red color. This would indicate how long the speaker has gone over their time and would be super useful. Usually, I send a single counter input (with this script) to the monitor, so creating a second timer with a trigger on another input isn't possible for my use case. trigger on countdowncompleted to call a script that does the reverse ? or when reached end do reverse within same script ? or ...
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 8/11/2022(UTC) Posts: 1 Location: Accra Thanks: 1 times
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 2/8/2023(UTC) Posts: 1
|
Hi all! Can anyone post the finished file? I really don’t understand anything in scripting and where to change what, but I really need a timer that will change color over time. Or instructions?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,220 Location: Belgium Thanks: 291 times Was thanked: 953 time(s) in 788 post(s)
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/24/2021(UTC) Posts: 473 Location: athens Thanks: 118 times Was thanked: 67 time(s) in 63 post(s)
|
|
|
|
|
Rank: Newbie
Groups: Registered
Joined: 3/3/2018(UTC) Posts: 8
Thanks: 1 times
|
Regards, In this post, I'm sharing a piece of code that allows you to track the file being played and how much time is left. This information can be added to a title and displayed on a set for the presenter or other viewers. I believe that this code will be very useful for anyone working with audiovisual projects, especially those involving live broadcasts or presentations. I encourage you to give it a try and see how it works for your specific needs. And of course, a big thank you to everyone who has contributed to the development of this code - your efforts are truly appreciated and make a difference in the audiovisual community. Link to Script
|
|
|
|
Rank: Member
Groups: Registered
Joined: 2/8/2023(UTC) Posts: 16 Thanks: 3 times Was thanked: 1 time(s) in 1 post(s)
|
I slightly shortened the script that changes the color of the timer ;) Quote:
DIM input_name, input_field as string DIM remainingtime as TimeSpan
input_name = "countdownclock.gtzip" input_field = "CountDown.Text"
Do Try remainingtime = Convert.ToDateTime(Input.Find(input_name).Text(input_field).Substring(3,8)).Subtract(DateTime.Now) Catch ex As System.Exception End Try
Select Case remainingtime.TotalSeconds Case >31 API.Function("SetTextColour",Input:=input_name,SelectedName:=input_field, Value:="GREEN")
Case 16 To 30 API.Function("SetTextColour",Input:=input_name,SelectedName:=input_field, Value:="Yellow")
Case 1 To 15 API.Function("SetTextColour",Input:=input_name,SelectedName:=input_field, Value:="RED") End Select Sleep (300) Loop
|
|
|
|
Rank: Member
Groups: Registered
Joined: 8/17/2023(UTC) Posts: 12 Location: Rio de Janeiro
|
Originally Posted by: taurojo I encourage you to give it a try and see how it works for your specific needs. And of course, a big thank you to everyone who has contributed to the development of this code - your efforts are truly appreciated and make a difference in the audiovisual community. I have tried your link and used your TCPLAY.gtzip but the title is not updating. The numbers are all 00:00:00 / 00:00:00 / 00:00:00 I have changed "http://10.207.10.235:8088/api" to "http://localhost:8088/API" but still not working. What else can I do?
|
|
|
|
vMix Forums
»
General
»
3rd Party Software and Development
»
simple scripting - countdown colour change clock for events
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The vMix Forums uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close