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
dmwkr  
#1 Posted : Monday, May 8, 2023 7:19:04 PM(UTC)
dmwkr

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.
thanks 1 user thanked dmwkr for this useful post.
miro_lee on 5/8/2023(UTC)
doggy  
#2 Posted : Monday, May 8, 2023 7:32:55 PM(UTC)
doggy

Rank: Advanced Member

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

Thanks: 291 times
Was thanked: 955 time(s) in 790 post(s)
Originally Posted by: miro_lee Go to Quoted Post
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
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.