logo

Live Production Software Forums


Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

2 Pages<12
Options
Go to last post Go to first unread
doggy  
#21 Posted : Thursday, May 26, 2022 4:20:40 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,217
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: DoyleTX Go to Quoted Post
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 ...
KobbyStreamIT  
#22 Posted : Thursday, August 11, 2022 2:28:49 AM(UTC)
KobbyStreamIT

Rank: Newbie

Groups: Registered
Joined: 8/11/2022(UTC)
Posts: 1
Man
Ghana
Location: Accra

Thanks: 1 times
this is great
gromozeka737ot  
#23 Posted : Wednesday, February 8, 2023 5:43:46 AM(UTC)
gromozeka737ot

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?
doggy  
#24 Posted : Wednesday, February 8, 2023 5:59:01 AM(UTC)
doggy

Rank: Advanced Member

Groups: Registered
Joined: 12/27/2012(UTC)
Posts: 5,217
Belgium
Location: Belgium

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: gromozeka737ot Go to Quoted Post
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?


https://forums.vmix.com/posts/t20986-Scripting-for-Dummies
nikosman88  
#25 Posted : Wednesday, February 8, 2023 10:31:30 PM(UTC)
nikosman88

Rank: Advanced Member

Groups: Registered
Joined: 12/24/2021(UTC)
Posts: 508
Greece
Location: athens

Thanks: 123 times
Was thanked: 71 time(s) in 67 post(s)
taurojo  
#26 Posted : Sunday, March 12, 2023 6:14:03 AM(UTC)
taurojo

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
kuuminsh  
#27 Posted : Thursday, July 27, 2023 9:23:11 PM(UTC)
kuuminsh

Rank: Member

Groups: Registered
Joined: 2/8/2023(UTC)
Posts: 17
Latvia

Thanks: 4 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
fva  
#28 Posted : Thursday, August 17, 2023 1:14:00 PM(UTC)
fva

Rank: Member

Groups: Registered
Joined: 8/17/2023(UTC)
Posts: 12
Brazil
Location: Rio de Janeiro

Originally Posted by: taurojo Go to Quoted Post
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?
Users browsing this topic
Guest
2 Pages<12
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.