Hi Joaquin
You can certainly store your DMX state in a parameter - whether or not it makes sense depends on what you're going to do with it afterwards. You could also just store it as JavaScript variables if that makes sense.
I'd recommend doing a 512 element array of INT16 and just writing your 8-bit values into/out of it (using masking like 0xFF & value) but you could also get away with 128 elements of INT32.
Lastly, you could use ogscript.createByteArray(512) to create a 512-element array of Java byte primitives - this is probably the closest to what you actually want but, again, it really depends on what you're looking to do with the data once you've stored it.
------------------------------
James Peltzer
Ross Video
------------------------------
Original Message:
Sent: 07-14-2025 15:21
From: Joaquin Perez
Subject: Parameter as a 2 dimension array
Hello,
I'm a bit stuck with this. I'm trying to modify a panel I wrote a couple of years ago to give control of the lighting of an small studio. I will be using a Enttec Art-net to DMX converter, and I wrote an small function to pack the Art-net header, the number of universe, etc. For that function I will need something to store the status of the whole DMX universe, that is a 512 8-bit array. Can I do this with a Parameter? What would be the right way of do it? Is there an specific way of initialise it? Could I save the status of the parameter in a Json file?. Thank you in advance - Joaquin
------------------------------
Joaquin Perez
Senior operations engineer
BBC
------------------------------