I want to do an automation so that it can be used in my project, regardless of the vmix PC IP, that is, when I have my UTC project open and type the IP of the machine I want to control, I will have some buttons with API commands, in my project UTC, that I want to let the change (from this typed IP path) in an automated way.
To test the possibility of an automatic tool, I created an Input in vMix [Text Title].
I mapped this title to the widget inside UTC, with the IP path of a machine that is on the same network with vMix to be controlled.
The CUT button has a script, which takes the title text (with the IP) and completes the path of the button's script, in order to perform the cut action.
So, whenever I open my project to control a PC with vMix, I would only have to type the IP path of the PC to be controlled, and my API commands will all be changed automatically, I believe that this way I could have several buttons with different actions without worry about having to change the IP path for each button's API command individually.
If there is a way to get the IP directly from the command line of the UTC settings (127.0.0.1... or any other IP that will be typed in that line), it would be even better and faster, because it wouldn't need to have a title inside the vMix project, to get this data.
I thought of the following command line, but I don't understand programming, it's just an idea that I thought would work, so I'm in need of help, thanks in advance.
In UTC I created a button to test the reasoning of the script, in the properties of the button I created an API command, with the following command line, but I did not get positive results.
getvalue(split(_('Inputs.Elements.Text'), '|'), 0)/api?Function=Cut&Input=2
15.png (21kb) downloaded 2 time(s).
16.png (58kb) downloaded 2 time(s).