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
MaxItalia  
#1 Posted : Wednesday, October 23, 2024 5:55:53 PM(UTC)
MaxItalia

Rank: Member

Groups: Registered
Joined: 7/4/2023(UTC)
Posts: 16
Italy

Thanks: 8 times
Hi, I need to create a counter with GT TITLE DESIGN
I don't understand how to reproduce a text sequence of numbers I would like to create a counter that can decide the quantity. 0-100 0-500 etc
doggy  
#2 Posted : Wednesday, October 23, 2024 7:11:45 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: MaxItalia Go to Quoted Post
Hi, I need to create a counter with GT TITLE DESIGN
I don't understand how to reproduce a text sequence of numbers I would like to create a counter that can decide the quantity. 0-100 0-500 etc


Guess you might want to have a look at scripting in vMix (post "scripting for dummies") where you create a counter increaing the number displayed in the title with a value += 1 tille desired end value is reached
MaxItalia  
#3 Posted : Wednesday, October 23, 2024 7:52:58 PM(UTC)
MaxItalia

Rank: Member

Groups: Registered
Joined: 7/4/2023(UTC)
Posts: 16
Italy

Thanks: 8 times
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: MaxItalia Go to Quoted Post
Hi, I need to create a counter with GT TITLE DESIGN
I don't understand how to reproduce a text sequence of numbers I would like to create a counter that can decide the quantity. 0-100 0-500 etc


Guess you might want to have a look at scripting in vMix (post "scripting for dummies") where you create a counter increaing the number displayed in the title with a value += 1 tille desired end value is reached


I don't understand how the script works that's why i want to create it with GT
MaxItalia  
#4 Posted : Thursday, October 24, 2024 1:21:18 AM(UTC)
MaxItalia

Rank: Member

Groups: Registered
Joined: 7/4/2023(UTC)
Posts: 16
Italy

Thanks: 8 times
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: MaxItalia Go to Quoted Post
Hi, I need to create a counter with GT TITLE DESIGN
I don't understand how to reproduce a text sequence of numbers I would like to create a counter that can decide the quantity. 0-100 0-500 etc


Guess you might want to have a look at scripting in vMix (post "scripting for dummies") where you create a counter increaing the number displayed in the title with a value += 1 tille desired end value is reached


I managed to get it to work. I ask is it possible to decide the speed and I need a start and pause

doggy  
#5 Posted : Thursday, October 24, 2024 1:33:41 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: MaxItalia Go to Quoted Post
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: MaxItalia Go to Quoted Post
Hi, I need to create a counter with GT TITLE DESIGN
I don't understand how to reproduce a text sequence of numbers I would like to create a counter that can decide the quantity. 0-100 0-500 etc


Guess you might want to have a look at scripting in vMix (post "scripting for dummies") where you create a counter increaing the number displayed in the title with a value += 1 tille desired end value is reached


I managed to get it to work. I ask is it possible to decide the speed and I need a start and pause



Hard to answer if we dont know how (which way) you did it
MaxItalia  
#6 Posted : Thursday, October 24, 2024 1:37:11 AM(UTC)
MaxItalia

Rank: Member

Groups: Registered
Joined: 7/4/2023(UTC)
Posts: 16
Italy

Thanks: 8 times
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: MaxItalia Go to Quoted Post
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: MaxItalia Go to Quoted Post
Hi, I need to create a counter with GT TITLE DESIGN
I don't understand how to reproduce a text sequence of numbers I would like to create a counter that can decide the quantity. 0-100 0-500 etc


Guess you might want to have a look at scripting in vMix (post "scripting for dummies") where you create a counter increaing the number displayed in the title with a value += 1 tille desired end value is reached


I managed to get it to work. I ask is it possible to decide the speed and I need a start and pause



Hard to answer if we dont know how (which way) you did it




Code:
'Total Seconds Countdown using Stopwatch as time reference

dim total as integer = 250  'Total # of seconds to count down
dim label as integer = 1
dim watch As Stopwatch = Stopwatch.StartNew()

do while label > 0  
     
     Dim elapsed As TimeSpan = watch.Elapsed
     label = total - Math.Floor(elapsed.TotalMilliseconds/1000)
     API.Function("SetText",Input:="9",SelectedName:="Description.Text",Value:=label) 'edit for own titlinput
     Sleep(250)
loop
doggy  
#7 Posted : Thursday, October 24, 2024 2:51:08 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: MaxItalia Go to Quoted Post
I ask is it possible to decide the speed and I need a start and pause




Your goal is unclear :

you first say "counter that can decide the quantity. 0-100 0-500 etc"which is basically a simple nummeric value that increases from 0 to a final number

In you script you are using a clock as counter reference which is limited to the fix timer speed


if its actually a simple counter just simple loop with value increase will be enough, for speed one would then adjust the sleep time

Code:
dim i as integer

for i = 0 to 250
    API.Function("SetText",Input:="9",SelectedName:="Description.Text",Value:=i)
    sleep(500)            'half second wait = half second counter interval
next



If one wants to pause/start we simply start/stop the script but read the current value to start/continue from that is within the title allready (make sure that when script is run fo rfirst time there is an actual value in the title field !)

Code:
dim i as integer
i = Convert.toInt32(Input.Find(9).Text("Description.Text"))

for i = i to 250
    API.Function("SetText",Input:="9",SelectedName:="Description.Text",Value:=i)
    sleep(500)  'half second wait = half second counter interval
next


Other variations/alternatives with the same result are possible
MaxItalia  
#8 Posted : Thursday, October 24, 2024 3:24:32 AM(UTC)
MaxItalia

Rank: Member

Groups: Registered
Joined: 7/4/2023(UTC)
Posts: 16
Italy

Thanks: 8 times
Code:
dim i as integer
i = Convert.toInt32(Input.Find(9).Text("Description.Text"))

for i = i to 250
    API.Function("SetText",Input:="9",SelectedName:="Description.Text",Value:=i)
    sleep(500)  'half second wait = half second counter interval
next


this is fine but it must act in reverse from 250 to 0
doggy  
#9 Posted : Thursday, October 24, 2024 4:05:27 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: MaxItalia Go to Quoted Post

this is fine but it must act in reverse from 250 to 0


Please next time you have question be specific and very clear so correct answers can be giving (meaning do not change or add criteria after each response, opposite of your first post )

Also its best to learn some basics which one can easily find using Google search for example

https://learn.microsoft....using-fornext-statements
thanks 1 user thanked doggy for this useful post.
MaxItalia on 10/24/2024(UTC)
Roy Sinclair  
#10 Posted : Thursday, October 24, 2024 6:40:10 AM(UTC)
Roy Sinclair

Rank: Advanced Member

Groups: Registered
Joined: 11/23/2020(UTC)
Posts: 170
United States
Location: Wichita

Thanks: 10 times
Was thanked: 24 time(s) in 20 post(s)
Originally Posted by: MaxItalia Go to Quoted Post
Code:
dim i as integer
i = Convert.toInt32(Input.Find(9).Text("Description.Text"))

for i = 250 to i step -1
    API.Function("SetText",Input:="9",SelectedName:="Description.Text",Value:=i)
    sleep(500)  'half second wait = half second counter interval
next


this is fine but it must act in reverse from 250 to 0


Not difficult at all. I changed just one line of the very nicely provided example.

thanks 1 user thanked Roy Sinclair for this useful post.
MaxItalia on 10/24/2024(UTC)
MaxItalia  
#11 Posted : Thursday, October 24, 2024 12:55:33 PM(UTC)
MaxItalia

Rank: Member

Groups: Registered
Joined: 7/4/2023(UTC)
Posts: 16
Italy

Thanks: 8 times
Originally Posted by: Roy Sinclair Go to Quoted Post
Originally Posted by: MaxItalia Go to Quoted Post
Code:
dim i as integer
i = Convert.toInt32(Input.Find(9).Text("Description.Text"))

for i = 250 to i step -1
    API.Function("SetText",Input:="9",SelectedName:="Description.Text",Value:=i)
    sleep(500)  'half second wait = half second counter interval
next


this is fine but it must act in reverse from 250 to 0


Not difficult at all. I changed just one line of the very nicely provided example.



it does not work
doggy  
#12 Posted : Thursday, October 24, 2024 6:00:18 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: MaxItalia Go to Quoted Post
Originally Posted by: Roy Sinclair Go to Quoted Post
Originally Posted by: MaxItalia Go to Quoted Post
Code:
dim i as integer
i = Convert.toInt32(Input.Find(9).Text("Description.Text"))

for i = 250 to i step -1
    API.Function("SetText",Input:="9",SelectedName:="Description.Text",Value:=i)
    sleep(500)  'half second wait = half second counter interval
next


this is fine but it must act in reverse from 250 to 0


Not difficult at all. I changed just one line of the very nicely provided example.



it does not work


it does work (be it will always count down starting from 250) !
Is why its a good idea to learn some of the basics of scriptwriting in order to realize what you did wrong or used it wrong

try
Code:
 for i = i to 0 Step -1

and specify the initial start value in the title ( to have the pause option)
thanks 1 user thanked doggy for this useful post.
MaxItalia on 10/24/2024(UTC)
MaxItalia  
#13 Posted : Monday, October 28, 2024 4:26:15 PM(UTC)
MaxItalia

Rank: Member

Groups: Registered
Joined: 7/4/2023(UTC)
Posts: 16
Italy

Thanks: 8 times
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: MaxItalia Go to Quoted Post
Originally Posted by: Roy Sinclair Go to Quoted Post
Originally Posted by: MaxItalia Go to Quoted Post
Code:
dim i as integer
i = Convert.toInt32(Input.Find(9).Text("Description.Text"))

for i = 250 to i step -1
    API.Function("SetText",Input:="9",SelectedName:="Description.Text",Value:=i)
    sleep(500)  'half second wait = half second counter interval
next


this is fine but it must act in reverse from 250 to 0


Not difficult at all. I changed just one line of the very nicely provided example.



it does not work


it does work (be it will always count down starting from 250) !
Is why its a good idea to learn some of the basics of scriptwriting in order to realize what you did wrong or used it wrong

try
Code:
 for i = i to 0 Step -1

and specify the initial start value in the title ( to have the pause option)




The script works fine, thanks! I ask you is it possible to run this script externally? this is because at least it is modifiable without having to act from vmix to change the parameters.
doggy  
#14 Posted : Monday, October 28, 2024 6:50:18 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: MaxItalia Go to Quoted Post

The script works fine, thanks! I ask you is it possible to run this script externally? this is because at least it is modifiable without having to act from vmix to change the parameters.


Sure one can by compiling the process into an external application (and its GUI ) where one has options to change certain variables if you dont want to edite the script within vMix or change readable variables within a title and change them there.

It would be a good idea though to plan ahead in the future what your goal is and how to envision how to control it instead of changing them with each step of finding some solution as you have done so far which would definatly be a nightmare for any programmer one would ask to help you even for such a small functionality

How one finally decide on how to process the goal wil depend on a lot of factors (what parameters need to be adjustable, frequence of adjustments to be made , other options to be available)

14 posts to reach some sort of final goal/answer:
Initial question : create a counter that can decide the quantity. 0-100 0-500 etc
Which then became: is it possible to decide the speed and I need a start and pause
Then changed the goal: but it must act in reverse from 250 to 0 (which is a fixed parameter btw)
ANd added another criteria: is it possible to run this script externally
thanks 1 user thanked doggy for this useful post.
MaxItalia on 10/28/2024(UTC)
MaxItalia  
#15 Posted : Monday, October 28, 2024 7:04:00 PM(UTC)
MaxItalia

Rank: Member

Groups: Registered
Joined: 7/4/2023(UTC)
Posts: 16
Italy

Thanks: 8 times
I apologize for the time you wasted and that you dedicated to me. I should change the value of the initial number of the counter
doggy  
#16 Posted : Monday, October 28, 2024 7:50:57 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 954 time(s) in 789 post(s)
Originally Posted by: MaxItalia Go to Quoted Post
I apologize for the time you wasted and that you dedicated to me. I should change the value of the initial number of the counter


Ask yourself:
How many times do you need to change the initial value?
How many variations of this value are expected ?

Does creating an external app to make a selection really benefit the flexibility of changing one value in the title by means of a shortcut ( or manually edit the title field ) ?

Code:
dim i as integer
i = Convert.toInt32(Input.Find(9).Text("Description.Text"))

for i = i to 0 Step -1
    API.Function("SetText",Input:="9",SelectedName:="Description.Text",Value:=i)
    sleep(500)  'half second wait = half second counter interval
next


The description.text field allready hold the starting value which is read by the script ( be it you cchange the initial value or its updated by stoppping/starittng the countdown)
Users browsing this topic
Similar Topics
Expose playback counters to an Input (Feature Requests)
by offroadmediagroup 10/21/2024 2:30:42 PM(UTC)
countdown counter (General Discussion)
by MaxItalia 7/9/2023 1:36:17 AM(UTC)
BUG? Dropped frames counter max? (General Discussion)
by h2video.nl 5/13/2023 8:12:41 PM(UTC)
Hardware Encoder Counter (Feature Requests)
by hadphild 3/25/2023 1:27:54 AM(UTC)
Rotate Continuous Counter Clockwise (GT)
by gpdipalmerahtimur 2/17/2023 2:03:15 PM(UTC)
Live Viewers Counter for LiveLan (3rd Party Software and Development)
by Guest 3/25/2022 11:28:45 PM(UTC)
Automatic Transition IN (OUT) when data counter is greater than zero (less than zero) (GT)
by Vyacheslav 2/7/2021 7:55:45 AM(UTC)
NEWBIE question on timers and counters (General Discussion)
by tikacademy 11/9/2020 3:47:13 AM(UTC)
Money counter (GT)
by tvandrey 10/7/2020 6:09:36 AM(UTC)
Lower thirds with time counter up (General Discussion)
by vierzwozwomedia 1/22/2019 5:29:09 AM(UTC)
Buy Counterfeit banknotes[http://kobartech.com] for sale (Hardware Compatibility)
by omeedmaahir 11/24/2017 6:47:59 PM(UTC)
BUY 100% UNDETECTABLE COUNTERFEIT MONEY (Showcase)
by deppkush 11/24/2017 6:36:12 PM(UTC)
BUY 100% UNDETECTABLE COUNTERFEIT MONEY (Showcase)
by deppkush 11/24/2017 6:34:22 PM(UTC)
BUY 100% UNDETECTABLE COUNTERFEIT MONEY (Showcase)
by deppkush 11/24/2017 6:31:47 PM(UTC)
BUY 100% UNDETECTABLE COUNTERFEIT MONEY (Showcase)
by deppkush 11/24/2017 6:30:29 PM(UTC)
BUY 100% UNDETECTABLE COUNTERFEIT MONEY (Showcase)
by deppkush 11/24/2017 6:29:06 PM(UTC)
BUY 100% UNDETECTABLE COUNTERFEIT MONEY (Showcase)
by deppkush 11/24/2017 6:26:54 PM(UTC)
BUY 100% UNDETECTABLE COUNTERFEIT MONEY (Showcase)
by deppkush 11/24/2017 6:21:20 PM(UTC)
BUY 100% UNDETECTABLE COUNTERFEIT MONEY (Showcase)
by deppkush 11/24/2017 6:19:59 PM(UTC)
BUY 100% UNDETECTABLE COUNTERFEIT MONEY (Showcase)
by deppkush 11/24/2017 6:18:52 PM(UTC)
BUY 100% UNDETECTABLE COUNTERFEIT MONEY (Showcase)
by deppkush 11/24/2017 6:17:42 PM(UTC)
BUY 100% UNDETECTABLE COUNTERFEIT MONEY (Showcase)
by deppkush 11/24/2017 6:15:38 PM(UTC)
BUY 100% UNDETECTABLE COUNTERFEIT MONEY (Showcase)
by deppkush 11/24/2017 6:13:33 PM(UTC)
BUY 100% UNDETECTABLE COUNTERFEIT MONEY (Showcase)
by deppkush 11/24/2017 6:10:04 PM(UTC)
BUY 100% UNDETECTABLE COUNTERFEIT MONEY (Showcase)
by deppkush 11/24/2017 6:08:33 PM(UTC)
Buy counterfeit money, (SSD SOLUTION ) +potassium cyanide cleanpaperz@gmail.com (vMix Call)
by lucaspaulouis 11/15/2017 11:27:49 AM(UTC)
Buy counterfeit money, (SSD SOLUTION ) +potassium cyanide cleanpaperz@gmail.com (Instant Replay)
by lucaspaulouis 11/15/2017 11:14:32 AM(UTC)
Buy counterfeit money, (SSD SOLUTION ) +potassium cyanide cleanpaperz@gmail.com (General Discussion)
by lucaspaulouis 11/15/2017 11:12:22 AM(UTC)
Esports live transmission with vMix Call and Replay (Counter-Strike, League of Legends, Hearthstone) (Showcase)
by ESNTV 4/23/2017 10:35:51 PM(UTC)
Remaining Record Time Counter (Instant Replay)
by HighViewSport 1/31/2015 1:53:30 AM(UTC)
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.