I programmed a position generator as my first Lua project. It works great but I'm trying to get Pan Tilt values from the programmer ( or from a preset ) to a Lua variable to have maximum low and maximum high. Right now, I'm entering the values manually but it would be great if I could just make a higher/lower tilt preset when I get to a venue, and create positions from there.
Well I just figured that part out yesterday.
A_art's Lua script was really helpful, I advise you to try it on different presets and examine the data.
For example if it's a fresh and clean Cross position. The table where dict_index equals 1 is the first fixture's pan attribute it's value is where the key is "absolute". Dict index 2 is the first fixture's tilt. But it was a very simple even/odd mirrored Cross position whitout XYZ programming (that would change things).
It's a bit complicated and messy but definitely worth trying.