logo

Live Production Software Forums


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

Notification

Icon
Error

Options
Go to last post Go to first unread
dror  
#1 Posted : Saturday, October 17, 2020 7:42:51 AM(UTC)
dror

Rank: Member

Groups: Registered
Joined: 10/17/2020(UTC)
Posts: 21
Israel

Hi All Can some on help me with the Web api command to set the Start Time Of the countdown?
i can set the Duration With This Command
Function=SetCountdown&SelectedIndex=2&Value=00:59:00&Input=1
But I couldent Find the Start Time command

best regards
doggy  
#2 Posted : Saturday, October 17, 2020 5:41:12 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
These are your options

countdown.JPG (37kb) downloaded 0 time(s).
dror  
#3 Posted : Saturday, October 17, 2020 6:17:50 PM(UTC)
dror

Rank: Member

Groups: Registered
Joined: 10/17/2020(UTC)
Posts: 21
Israel

Thank you For The replay
I have tested all the option and didn't managed to make it work...
only to set the duration
doggy  
#4 Posted : Saturday, October 17, 2020 6:37:10 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Maybe explain better what you like to achieve as there is NO StartTime in a countdown

countdown2.JPG (44kb) downloaded 1 time(s).
dror  
#5 Posted : Saturday, October 17, 2020 6:54:36 PM(UTC)
dror

Rank: Member

Groups: Registered
Joined: 10/17/2020(UTC)
Posts: 21
Israel

clock.png (22kb) downloaded 0 time(s).
I have this title with the Countdown

I would like to control the star time
and set it to 00:00:00
clock.png (8kb) downloaded 1 time(s).
doggy  
#6 Posted : Saturday, October 17, 2020 7:19:49 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
I see, my mistake

Guess not then (by shortcut or web api)
dror  
#7 Posted : Saturday, October 17, 2020 7:31:16 PM(UTC)
dror

Rank: Member

Groups: Registered
Joined: 10/17/2020(UTC)
Posts: 21
Israel

thank you very much for the help
BSSTL  
#8 Posted : Saturday, December 19, 2020 6:28:42 PM(UTC)
BSSTL

Rank: Newbie

Groups: Registered
Joined: 12/19/2020(UTC)
Posts: 4
United States

I am having trouble getting my clock to set duration.

Function=SetCountdown&Value=00:00:10&Input=CLOCK
doggy  
#9 Posted : Saturday, December 19, 2020 6:59:13 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: BSSTL Go to Quoted Post
I am having trouble getting my clock to set duration.

Function=SetCountdown&Value=00:00:10&Input=CLOCK


More details needed.

Where/how are you using the function, is the input just named clock, is there a clock already specified in the title, what textblock is it supposed to be in ? ..............
BSSTL  
#10 Posted : Saturday, December 19, 2020 7:03:15 PM(UTC)
BSSTL

Rank: Newbie

Groups: Registered
Joined: 12/19/2020(UTC)
Posts: 4
United States

Originally Posted by: doggy Go to Quoted Post
Originally Posted by: BSSTL Go to Quoted Post
I am having trouble getting my clock to set duration.

Function=SetCountdown&Value=00:00:10&Input=CLOCK


More details needed.

Where/how are you using the function, is the input just named clock, is ther a clock already specified in the title ? ..............



Input 12 is named CLOCK. I am trying to make a script for several different durations. 3:00, 2:30, :20,

I can get the clock to start by using function=StartCountdown&Input=CLOCK

But cant get a script to work for changing duration
doggy  
#11 Posted : Saturday, December 19, 2020 7:08:45 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: BSSTL Go to Quoted Post

Input 12 is named CLOCK. I am trying to make a script for several different durations. 3:00, 2:30, :20,

I can get the clock to start by using function=StartCountdown&Input=CLOCK

But cant get a script to work for changing duration


you need to make sure the input (textblock) is specified (when creating a shortcut , check what all is needed for comparison)
you mention script for different durations , just wondering how you are making a decision in the script

BSSTL  
#12 Posted : Saturday, December 19, 2020 7:15:06 PM(UTC)
BSSTL

Rank: Newbie

Groups: Registered
Joined: 12/19/2020(UTC)
Posts: 4
United States

Originally Posted by: doggy Go to Quoted Post
Originally Posted by: BSSTL Go to Quoted Post

Input 12 is named CLOCK. I am trying to make a script for several different durations. 3:00, 2:30, :20,

I can get the clock to start by using function=StartCountdown&Input=CLOCK

But cant get a script to work for changing duration


you need to make sure the input (textblock) is specified (when creating a shortcut , check what all is needed for comparison)
you mention script for different durations , just wondering how you are making a decision in the script



I am not understanding.


My goal is to have have 3 shortcut buttons on my stream deck that do the same function. The only difference will be be the duration of the clock. Basically the 3 buttons will put another input online, and play either a 3:00, 2:30, or :20 clock depending on which shortcut button i push on my stream deck.

I am very new to scripting and coding. Can you assist me with the clock duration line of command?

I need it to set the duration of the countdown clock (input 12) to 3:00.
doggy  
#13 Posted : Saturday, December 19, 2020 7:47:17 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: BSSTL Go to Quoted Post

I am not understanding.


My goal is to have have 3 shortcut buttons on my stream deck that do the same function. The only difference will be be the duration of the clock. Basically the 3 buttons will put another input online, and play either a 3:00, 2:30, or :20 clock depending on which shortcut button i push on my stream deck.

I am very new to scripting and coding. Can you assist me with the clock duration line of command?

I need it to set the duration of the countdown clock (input 12) to 3:00.


Makes 2 of us

Shortcuts and vMix scripting are 2 different things !
Shotcuts can contain multiple functions at the same time (as can scripts)

so for example: one shortcut can set the clock dor 3:00, activate the input wanted and oncountdowncompleted deactivate that input or whatever needs to be done after time is completed

Regarding the setting of the countdown clock i mentioned before to check the items that are needed when you create a shortcut , more specifically your function does NOT contain the specific title line (Textblock) where your countdown is defined . if you want the function to be used in a script the same items and data are needed

countdown.JPG (44kb) downloaded 0 time(s).




doggy  
#14 Posted : Saturday, December 19, 2020 7:58:55 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Function=SetCountdown&Input=CLOCK&Title=Headline.Text&Value=00:03:00
BSSTL  
#15 Posted : Saturday, December 19, 2020 8:01:13 PM(UTC)
BSSTL

Rank: Newbie

Groups: Registered
Joined: 12/19/2020(UTC)
Posts: 4
United States

Originally Posted by: doggy Go to Quoted Post
Function=SetCountdown&Input=CLOCK&Title=Headline.Text&Value=00:03:00


what worked for me:

FUnction=SetCountdown&Input=CLOCK&Value=00:00:10&SelectedName=Timer.Text
doggy  
#16 Posted : Saturday, December 19, 2020 8:16:55 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: BSSTL Go to Quoted Post
Originally Posted by: doggy Go to Quoted Post
Function=SetCountdown&Input=CLOCK&Title=Headline.Text&Value=00:03:00


what worked for me:

FUnction=SetCountdown&Input=CLOCK&Value=00:00:10&SelectedName=Timer.Text


SelectedName or selectedIndex is def needed when using the API.function format as there "Title" doesn't work ;-)


API.Function("SetCountdown",Input:="CLOCK",SelectedName:="Headline.Text",Value:="00:03:00")


Users browsing this topic
Guest
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.