vMix Forums
»
General
»
General Discussion
»
shortcut to play next script
Rank: Advanced Member
Groups: Registered
Joined: 9/5/2020(UTC) Posts: 33 ![Australia Australia](/Content/images/flags/AU.png) 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,171 ![Belgium Belgium](/Content/images/flags/BE.png) Location: Belgium Thanks: 288 times Was thanked: 942 time(s) in 778 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/5/2020(UTC) Posts: 33 ![Australia Australia](/Content/images/flags/AU.png) Location: brisbane Thanks: 2 times
|
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,171 ![Belgium Belgium](/Content/images/flags/BE.png) Location: Belgium Thanks: 288 times Was thanked: 942 time(s) in 778 post(s)
|
Originally Posted by: adambou ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) im so confused... lol... so you made 10 scripts which assumes you know how to script and shortcuts and you are confused ?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/23/2020(UTC) Posts: 163 ![United States United States](/Content/images/flags/US.png) Location: Wichita Thanks: 9 times Was thanked: 23 time(s) in 19 post(s)
|
Originally Posted by: adambou ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) 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?
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,171 ![Belgium Belgium](/Content/images/flags/BE.png) Location: Belgium Thanks: 288 times Was thanked: 942 time(s) in 778 post(s)
|
Originally Posted by: Roy Sinclair ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) Originally Posted by: adambou ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) 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. "
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/5/2020(UTC) Posts: 33 ![Australia Australia](/Content/images/flags/AU.png) Location: brisbane Thanks: 2 times
|
Originally Posted by: doggy ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) Originally Posted by: adambou ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) 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...
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,171 ![Belgium Belgium](/Content/images/flags/BE.png) Location: Belgium Thanks: 288 times Was thanked: 942 time(s) in 778 post(s)
|
Originally Posted by: adambou ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) Originally Posted by: doggy ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) Originally Posted by: adambou ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 11/23/2020(UTC) Posts: 163 ![United States United States](/Content/images/flags/US.png) Location: Wichita Thanks: 9 times Was thanked: 23 time(s) in 19 post(s)
|
Originally Posted by: doggy ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) Originally Posted by: Roy Sinclair ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) Originally Posted by: adambou ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) 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.
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/16/2020(UTC) Posts: 74 ![Peru Peru](/Content/images/flags/PE.png) 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/5/2020(UTC) Posts: 33 ![Australia Australia](/Content/images/flags/AU.png) Location: brisbane Thanks: 2 times
|
Originally Posted by: Roy Sinclair ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) Originally Posted by: doggy ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) Originally Posted by: Roy Sinclair ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) Originally Posted by: adambou ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) 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...
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 6/16/2020(UTC) Posts: 74 ![Peru Peru](/Content/images/flags/PE.png) 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
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 9/5/2020(UTC) Posts: 33 ![Australia Australia](/Content/images/flags/AU.png) Location: brisbane Thanks: 2 times
|
Originally Posted by: Papo ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) 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..
|
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,171 ![Belgium Belgium](/Content/images/flags/BE.png) Location: Belgium Thanks: 288 times Was thanked: 942 time(s) in 778 post(s)
|
Originally Posted by: adambou ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif)
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"
|
|
|
|
vMix Forums
»
General
»
General Discussion
»
shortcut to play next script
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