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
adambou  
#1 Posted : Saturday, September 10, 2022 7:07:44 PM(UTC)
adambou

Rank: Advanced Member

Groups: Registered
Joined: 9/5/2020(UTC)
Posts: 33
Australia
Location: brisbane

Thanks: 2 times
I have about 10 different scripts that I run sequentially as part of my production - and while the order is set - the timing of when to run them is variable.
At the moment I run each script via shortcuts assigned to different keys.
Was really wanting to have just one key that I can run them all in order - is there a way to run them all via one key? A shortcut like RunNextScript but I cant find anything.
doggy  
#2 Posted : Saturday, September 10, 2022 7:59:40 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
Use dynamic values
in a script set the dynamicx value to the next script (script name)
call the script with the shortcut (ScriptStart) with dynamicx as value
adambou  
#3 Posted : Saturday, September 10, 2022 9:06:49 PM(UTC)
adambou

Rank: Advanced Member

Groups: Registered
Joined: 9/5/2020(UTC)
Posts: 33
Australia
Location: brisbane

Thanks: 2 times
im so confused... lol...
doggy  
#4 Posted : Saturday, September 10, 2022 10:52:17 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: adambou Go to Quoted Post
im so confused... lol...


so you made 10 scripts which assumes you know how to script and shortcuts and you are confused ?
Roy Sinclair  
#5 Posted : Thursday, September 22, 2022 7:24:15 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: adambou Go to Quoted Post
I have about 10 different scripts that I run sequentially as part of my production - and while the order is set - the timing of when to run them is variable.
At the moment I run each script via shortcuts assigned to different keys.
Was really wanting to have just one key that I can run them all in order - is there a way to run them all via one key? A shortcut like RunNextScript but I cant find anything.


If they all run in order then why are they all not combined into one script?
doggy  
#6 Posted : Thursday, September 22, 2022 10:55:41 AM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: Roy Sinclair Go to Quoted Post
Originally Posted by: adambou Go to Quoted Post
I have about 10 different scripts that I run sequentially as part of my production - and while the order is set - the timing of when to run them is variable.
At the moment I run each script via shortcuts assigned to different keys.
Was really wanting to have just one key that I can run them all in order - is there a way to run them all via one key? A shortcut like RunNextScript but I cant find anything.


If they all run in order then why are they all not combined into one script?


from original post: "- and while the order is set - the timing of when to run them is variable. "
adambou  
#7 Posted : Friday, September 23, 2022 9:17:00 PM(UTC)
adambou

Rank: Advanced Member

Groups: Registered
Joined: 9/5/2020(UTC)
Posts: 33
Australia
Location: brisbane

Thanks: 2 times
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: adambou Go to Quoted Post
im so confused... lol...


so you made 10 scripts which assumes you know how to script and shortcuts and you are confused ?


its the dynamicx part that I am completely lost on. I have no idea what that means - can you suggest a link - I can't find anything to help me understand it...
doggy  
#8 Posted : Friday, September 23, 2022 9:36:27 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 293 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: adambou Go to Quoted Post
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: adambou Go to Quoted Post
im so confused... lol...


so you made 10 scripts which assumes you know how to script and shortcuts and you are confused ?


its the dynamicx part that I am completely lost on. I have no idea what that means - can you suggest a link - I can't find anything to help me understand it...


Have you read the section in the helpfiles about "Dynamic Input and Value Shortcuts" ?

Also https://forums.vmix.com/posts/m88552-Scripting-for-Dummies#post88552
Roy Sinclair  
#9 Posted : Thursday, September 29, 2022 6:15:50 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: doggy Go to Quoted Post
Originally Posted by: Roy Sinclair Go to Quoted Post
Originally Posted by: adambou Go to Quoted Post
I have about 10 different scripts that I run sequentially as part of my production - and while the order is set - the timing of when to run them is variable.
At the moment I run each script via shortcuts assigned to different keys.
Was really wanting to have just one key that I can run them all in order - is there a way to run them all via one key? A shortcut like RunNextScript but I cant find anything.


If they all run in order then why are they all not combined into one script?


from original post: "- and while the order is set - the timing of when to run them is variable. "


So the timing is variable but you want each of them to start the next script as each one finishes? Or you want them to start the next one at the appropriate time which is NOT when the previous script ends but at an appropriate time for the next script to start?

[s]For the latter case Look at sending a MIDI note that could be set up in vMix as a trigger for the next script to be started. Actually for either case this could be the way to go.[\s]

Edit: Actually just use the ScriptStart() function at the point in the execution of each script when the next script should start. Using a MIDI note as my first thought was because I forgot this function exists.
Papo  
#10 Posted : Thursday, September 29, 2022 8:02:19 AM(UTC)
Papo

Rank: Advanced Member

Groups: Registered
Joined: 6/16/2020(UTC)
Posts: 77
Peru

Thanks: 8 times
Was thanked: 2 time(s) in 2 post(s)
Maybe I did not understand well, but what I would do is the following.
1.- have a title input gt or any title, because it will only be to save the number of each script and put global variable by input name
2.- create a script and a shortcut to call it
3.- In this script you must verify the value of the title of the global variable entry, if it is the first time it will have 1, if it is the second time it will have 2, until you reach the last script you want, if it is 1, execute script1, if script2 is 2 and so on, 1 must be added to the global variable of the gt title so that it agrees with the direct access calls.

The truth is that I'm sorry if I'm wrong about this, but if you've already done the other scripts, this should be easier for you, and well, the other thing could be used for the dynamic values.
translated from spanish to english by google
adambou  
#11 Posted : Saturday, October 1, 2022 6:52:10 AM(UTC)
adambou

Rank: Advanced Member

Groups: Registered
Joined: 9/5/2020(UTC)
Posts: 33
Australia
Location: brisbane

Thanks: 2 times
Originally Posted by: Roy Sinclair Go to Quoted Post
Originally Posted by: doggy Go to Quoted Post
Originally Posted by: Roy Sinclair Go to Quoted Post
Originally Posted by: adambou Go to Quoted Post
I have about 10 different scripts that I run sequentially as part of my production - and while the order is set - the timing of when to run them is variable.
At the moment I run each script via shortcuts assigned to different keys.
Was really wanting to have just one key that I can run them all in order - is there a way to run them all via one key? A shortcut like RunNextScript but I cant find anything.


If they all run in order then why are they all not combined into one script?


from original post: "- and while the order is set - the timing of when to run them is variable. "


So the timing is variable but you want each of them to start the next script as each one finishes? Or you want them to start the next one at the appropriate time which is NOT when the previous script ends but at an appropriate time for the next script to start?

[s]For the latter case Look at sending a MIDI note that could be set up in vMix as a trigger for the next script to be started. Actually for either case this could be the way to go.[\s]

Edit: Actually just use the ScriptStart() function at the point in the execution of each script when the next script should start. Using a MIDI note as my first thought was because I forgot this function exists.




Yes it is the second scenario. So for example - the commentators will be talking about a player matchup (script 1) - this might take one minute or 3 minutes - and then the team lists to be displayed (script 2). so each of these runs off a script but as for when they run specifically it is highly variable.

How would I use a midi note to trigger the next script to run? thats the part i am not sure about. If I could use the same midi note to trigger the next script that would be perfect - as mentioned - each script at the moment is assigned to a different x-key and im using about 12 buttons - if i could use just the one it would be brilliant... thanks in advance...
Papo  
#12 Posted : Saturday, October 1, 2022 10:01:31 AM(UTC)
Papo

Rank: Advanced Member

Groups: Registered
Joined: 6/16/2020(UTC)
Posts: 77
Peru

Thanks: 8 times
Was thanked: 2 time(s) in 2 post(s)
maybe i'm lost but this is my idea

1.- I read the value of the gt title
2.- I add + 1 to the value of the title gt, example at the beginning of all the value of the title will have 0 and if I press the first time 1 will be added, this value will now be 1
3.- to evaluate the value that I have, a switch can be used
4.- If it is 1 I execute script1, if it is 2 I execute script2 .....
5.- When executing the last script I put 0 back to the value of the gt title, if you want to start over again...

Since you have the 10 scripts already done, you can create this one so that it works with a single key and execute them all, something like advancing to the next script
or am I going the other way?
..
translated from spanish to english by google
adambou  
#13 Posted : Tuesday, October 4, 2022 11:59:45 AM(UTC)
adambou

Rank: Advanced Member

Groups: Registered
Joined: 9/5/2020(UTC)
Posts: 33
Australia
Location: brisbane

Thanks: 2 times
Originally Posted by: Papo Go to Quoted Post
maybe i'm lost but this is my idea

1.- I read the value of the gt title
2.- I add + 1 to the value of the title gt, example at the beginning of all the value of the title will have 0 and if I press the first time 1 will be added, this value will now be 1
3.- to evaluate the value that I have, a switch can be used
4.- If it is 1 I execute script1, if it is 2 I execute script2 .....
5.- When executing the last script I put 0 back to the value of the gt title, if you want to start over again...

Since you have the 10 scripts already done, you can create this one so that it works with a single key and execute them all, something like advancing to the next script
or am I going the other way?
..
translated from spanish to english by google



Yes this will be perfect for what I want to do.
Now I need to learn how to script for the IF….THEN…
Is this done in normal scripting? Or is it done in vb.net?
Thanks for your help..
doggy  
#14 Posted : Tuesday, October 4, 2022 1:36:55 PM(UTC)
doggy

Rank: Advanced Member

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

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


Now I need to learn how to script for the IF….THEN…
Is this done in normal scripting? Or is it done in vb.net?
Thanks for your help..


What do you mean by "normal scripting"?

CHeck the help files , section "Scripting and Automation"

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.