Rank: Advanced Member
Groups: Registered
Joined: 2/23/2019(UTC) Posts: 537
Thanks: 62 times Was thanked: 125 time(s) in 114 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.
|
![thanks](/Themes/yafpro/heart_small.png) 1 user thanked dmwkr for this useful post.
|
|
|
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: miro_lee ![Go to Quoted Post Go to Quoted Post](/Themes/yafpro/icon_latest_reply.gif) 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