vMixAudioMatrix
vMixAudioMatrix copied to clipboard
Enhancement: Exclude By shortTitle
Hi, i have a little suggestion, about the exclude concept, excluding an item number is nice but risky: the item number change when the order change in vMix! If you could add exclude by "shortTitle" as url argument, also in the base code of the html ad Exclude if "shortTitle" contain "Exclude", it would be easy in vmix to title accordingly to exclude from the matrix... Thanks!
Hi Haavard15 I use your code in all my production and it is a life saver!
I got ChatGPT to help me modify your code to do what i need!
after entering the code i actualy use ChatGPT figure what is the goal, then i ask for a tweak...
ME:can you ad to this code to not displays an input based on the name of the input, if the name of the input include "HIDE", do not display it in the table
ChatGPT :Yes, to not display an input based on its name, you can modify the code to filter out inputs whose names include "HIDE". Here's an example modification to the refresh function that implements this filtering:
function refresh(data){
// ... existing code ...
matchedInputs = [];
for(var h = 0; h < vMixInputs.length; h++){
var inputName = data.getElementsByTagName("input")[vMixInputs[h]].getAttribute("title");
if(inputName.includes("HIDE")) {
continue; // Skip this input
}
if(data.getElementsByTagName("input")[vMixInputs[h]].getAttribute("audiobusses") !== null){
matchedInputs.push(vMixInputs[h]);
}
}
// ... existing code ...
}
ChatGPT : This modification skips over any input whose title includes the string "HIDE", and only adds inputs that have audio buses to the matchedInputs array. The rest of the code should work as before.
You can see the patch and the final index.html there: Drive shared code
I also made some tweaks using Google search to help me put the title of the page in the tab, making bookmarking of different pages easier.