Wire! Finding an Index of a value in a boolean array

FFGL, OSC, GLSL. If you like abbreviations, this is the forum for you
Post Reply
Zinim78
Is taking Resolume on a second date
Posts: 24
Joined: Thu May 26, 2016 09:52

Wire! Finding an Index of a value in a boolean array

Post by Zinim78 »

Hello 👋
In Wire. I have a collection of boolean values they are "all" false and sometimes individual cells become true.
Does anyone have an idea of how I could get the index number of a true cell?
Hope I'm clear enough... 🙏🏻
Last edited by Zinim78 on Fri Jan 27, 2023 15:34, edited 1 time in total.

Zoltán
Team Resolume
Posts: 7154
Joined: Thu Jan 09, 2014 13:08
Location: Székesfehérvár, Hungary

Re: Wire! Finding an Index of a value in a boolean array

Post by Zoltán »

--begin-wire-patch--
725.3oc0WtrahCCEF9cwqwU9drYGoWjlQZVMKq5hPhoDMg3pDm1oSEu6yIDH.BvkdaFfHQRb98ky2+I1NufRckk1TetqrFM71WPSpbyfKHCPtF+CMdB5tAHuCJRM.kNMATW.kMePuTZHozsjxBIkskT9tRiNv.PDR51C.YHoaO.Tqj1qTO.kW1U2MzEcPca205c6ZyFMHTVoKyBlvKHR6eIdeU93FeWQSJbO0d1+7CVzvtaGfdLono81576KSJPyW0d3NY8xWbZs7wN2Rw09jxztdXozxlYisUqESmCBG6ZJyVnZpM+9odzPIDNOkm4mBJL.U+MZnAHwyngbBTgzhj5E5yyf1LJRYhXJIVpkLrPHEXswJwVEMgIRSXYRRaOZqpg7PzvtVvk9KntOlmYcvCScEtp1HG9oRHjEEsX7665nNPtNPVDj8gwjjhZaanLMOKyB8wss.OYVqx3k3fdNics9bE6ryYrSEpSQt6qZdMry+hwddo2dOv1uJxyXhCSdxHJEKt1HwFoV.Wc40jHhNVyEaRd5mA4WEnaGJ6g7eqz2RCw4N30rSTvyBCd4YN34BxIJ3EgAu58Cd.Z3kaOKDK4fziYUf8RbJQsCx4s1.vbo4vHmGwgo2YYIXkjawiUBZlHQXfYl9nSu2uO2vKrtwtbORgr20R0e2kW15FQm.FY+aYuYuL3JF+aMycdChreuLjNVXcgcR8Gdtvr7Y1x5tuaruRaTXeUuke2pZQeq0pN+O1.YKrkYKjiZR41mPeuIVZ1N4UJh7BYjhFQ0Qxk6FLvRiiHWogLLyH7HoTiUl3Kk5qHWIXxO8cCtS9.7U5vwZi3Xzt+LnezT3yen34VhZ9ujE8ZqCC8Yh+.1HmreajJkJtQIzB9RujwitPR3DMiEI4FhhIC3slQ2fEWFKvwTxMXnkTBtJNVwi+z81tvaMXHCfiC4V+rY1BRTYqcMUcaHY97+B.mnfJL
--end-wire-patch--

If you can only have one bool input active at a time you can set the int 4 to 3,
Software developer, Sound Engineer,
Control Your show with ”Enter” - multiple Resolume servers at once - SMPTE/MTC column launch
try for free: http://programs.palffyzoltan.hu

Zinim78
Is taking Resolume on a second date
Posts: 24
Joined: Thu May 26, 2016 09:52

Re: Wire! Finding an Index of a value in a boolean array

Post by Zinim78 »

Thanks for the elegant solution 🙏🏻

Post Reply