Is there any way to place non-constant data in the header, such as the length of the packet?
There is not currently a way to put variable data in the header. What is the use case you are trying to solve for?
I've been designing a controller that would use generic serial input. I'd like to avoid needing to either hard-code the packet length in the controller or to have to add another mechanism to send that information to the controller. Not a big deal, though, I'll just add a two- or three- channel group that is programmed with a 'SetLevel' containing that data and connect it to the first output channels of the controller.
Not exactly variable but...If you are building the element in vixen, wouldn't you know the number of pixels? If so, then you can just add the number in the header such as !@#099. Your controller program would look for !@# and assume the next three values are the size (in pixels) and then the 99 pixels worth of data would follow. It is about the same as using a set level on a "fake" element but I think adding it to the header is a tiny bit better unless you want to change it as you play the sequence.
I agree with Mike, the serial frame data size will always be the same size no matter what is happening on the lights and it will be aligned with the number of channels in use on the serial controller in Vixen. So it would be pretty simple to just add it to the header and adjust it if you add more channels.
