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
Ragtec  
#1 Posted : Friday, December 5, 2025 8:28:55 AM(UTC)
Ragtec

Rank: Newbie

Groups: Registered
Joined: 4/13/2020(UTC)
Posts: 4
United Kingdom
Location: Kent

Hi.

I love Vmix and use it in so many venues.

I do a lot of school tech work for drama exams where I am given loads of different resources such as images, PowerPoints, videos, sound effects, music, and even sometimes a live camera feed. I love using Vmix for that as I can build inputs quickly using layers if multiple things are needed at the same time, and have everything in one piece of software. I can quickly drag inputs around into any order and add extra inputs much quicker that in any other professional theatre show cue software.

The one thing I need though is to be able to hit my streamdeck pedal to make the next input go live (i.e. the output window is showing input 2 and pressing the pedal makes it go to input 3, then input 4 etc), but I can't seem to find any shortcut to do that. it would also be useful to use the left pedal to go to the previous but that's not essential. I have tried using a combination of "fade to preview" and "PreviewInputNext", but it gets really muddled if you then touch any other input which put's it into preview.

Anyone else have any ideas?

Thanks in advance.
Andy
mavik  
#2 Posted : Friday, December 5, 2025 7:38:41 PM(UTC)
mavik

Rank: Advanced Member

Groups: Registered
Joined: 4/23/2017(UTC)
Posts: 1,400
Man
Location: Germany

Thanks: 3 times
Was thanked: 186 time(s) in 166 post(s)
Just querry what is the actual input (So you can jump and don't be locked to a sequence) in programm add +1 and bring that one live by a press of the stream deck.
Peter1000  
#3 Posted : Friday, December 5, 2025 7:44:51 PM(UTC)
Peter1000

Rank: Advanced Member

Groups: Registered
Joined: 1/25/2019(UTC)
Posts: 324
Switzerland

Thanks: 22 times
Was thanked: 81 time(s) in 62 post(s)
You can solve this with two scripts, which you can then trigger with shortcuts from your pedal.
- add shortcut
- scripting
- StartScript
- in value the name of your NEXT or PREV script
- assign the shortcut to your pedal

Here are two scripts: next and prev.

NEXT
Code:
'get the API data from vMix
Dim xml As String = API.XML()
Dim x As New System.Xml.XmlDocument()
x.LoadXml(xml)

'get active input
Dim activeNumber As Integer = Integer.Parse(x.SelectSingleNode("/vmix/active").InnerText)

' get number of inputs 
Dim inputCount As Integer = x.SelectNodes("/vmix/inputs/input").Count

'increase by one 
Dim nextInput As Integer = activeNumber + 1

'this is, if you want to do someting at the beginning of the inputs (1), it starts again at the last one.
If nextInput > inputCount Then nextInput = 1  ' wrap

' cut to the next input
API.Function("cutdirect",nextInput) 


PREV
Code:
'get the API data from vMix
Dim xml As String = API.XML()
Dim x As New System.Xml.XmlDocument()
x.LoadXml(xml)

'get active input
Dim activeNumber As Integer = Integer.Parse(x.SelectSingleNode("/vmix/active").InnerText)

'get number of inputs
Dim inputCount As Integer = x.SelectNodes("/vmix/inputs/input").Count

'decrease by one
Dim prevInput As Integer = activeNumber - 1

'wrap , returns to the highest if at 1
If prevInput < 1 Then prevInput = inputCount

'cut to the previous input
API.Function("cutdirect", prevInput)


You can also extend the script to display the upcoming input on preview, for example.
If you use a function other than cutdirect, vMix always uses preview for the transition due to system-related reasons,
so you have to wait for the transition time to display the next input on preview.
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.