Okay, I am getting somewhere understanding this whole thing now. However, the parameter passed to a plug in is an array of bytes....of what?
Is it an array of % on or a dimming value (0-256?) and are they in order for all channels going to that plugin?
I'm not a experienced programmer, but I have experimented with the plug-in API some.
The bytes passed should be the exact value I think, and not a percentage value.
This helps for dmx switch-less designs needing the exact values passed to program the start address in program mode, but I'm not sure as I don't have a dmx setup yet.
A byte should have 256 possible values (0-255).
I think Vixen handles the ordering of the values before passing, so they can be sent as is.
Changes made to the profile's channel output order are also handled before Vixen passes values to your function.
Good luck with your plugin! 🙂
Hope that helps,
Mike.
yes they are the value for each channel (0-255) in order for ALL of the channels assigned to the plugin. if you have assigned channels 513-576 (64 channels) it will be a 64 byte array with channel 513 in values[0] and channel 576 in values[63].
don't forget that vixen will ONLY call you if one or more of the channels in your assigned area have changed value since the last event.
-Ed
j1sys wrote:yes they are the value for each channel (0-255) in order for ALL of the channels assigned to the plugin. if you have assigned channels 513-576 (64 channels) it will be a 64 byte array with channel 513 in values[0] and channel 576 in values[63].don't forget that vixen will ONLY call you if one or more of the channels in your assigned area have changed value since the last event.
-Ed
Thanks Ed,
Thats what I figured but I wanted to make sure.
Cheers,
Chris
