Rank: Advanced Member
Groups: Registered
Joined: 2/23/2019(UTC) Posts: 556
Thanks: 62 times Was thanked: 130 time(s) in 118 post(s)
|
By your description, this could easily be done with a trigger "OnTransitionIn". Are you familiar with triggers?
If there is more to it, for anyone to be able to help you, you would have to describe exactly what you want to do.
|
1 user thanked dmwkr for this useful post.
|
|
|
Rank: Advanced Member
Groups: Registered
Joined: 12/27/2012(UTC) Posts: 5,216 Location: Belgium Thanks: 291 times Was thanked: 955 time(s) in 790 post(s)
|
Originally Posted by: miro_lee Good morning , I'd like to create a script that can start a rec when a specific input make a transition to the program and goes live , but I have multiple errors , can anyone help me , please?
function OnAirInputChanged(inputNumber, inputName, state) { if (state && inputNumber === 1) { // Avvia la registrazione vmix.StartRecording(); } else { // Interrompi la registrazione vmix.StopRecording(); } }
vmix.OnAirInputChanged = OnAirInputChanged;
The code is created by chat gpt...
First error = ChatGPT. It looks it wants to invent functions (that do not exist) Have a look at the "scripting for dummies" post in this forum , you can find there what you need
|
|
|
|
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