BECOME PART OF THE COMMUNITY - Sign up
here
-
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. 
-
And actually found a work around this problem on an other thread Can I readout Preset Values with lua?. With A_art's brilliant LUA plugin I was able to extract the attribute data from a preset. 
-
I am really just a beginner in LUA. But shouldn't the condition in the 5th line be "string" instead of "number" ?
This code will print the content of a preset to the command line history:
PrintTable=function (t_table,s_prefix)
s_prefix=s_prefix or ''
for k,v in pairs(t_table) do
if type(v)=="number" then Printf('%s%s=%s',s_prefix,tostring(k),tostring(v))
elseif type(v)=="string" then Printf('%s%s="%s"',s_prefix,tostring(k),v)
elseif type(v)=="boolean" then
-
So I know that we are able to set these with like "Attribute "Dimmer" At 50". It makes sense that I should be able to read it out somehow and maybe save it to a UserVar and or use it in a lua script.
Apparently I was wrong. Since current attribute values can be a wide range between every selected fixture for example a simple Fan position, so it actually makes sense that you can't just save it as a single variable, because on many occasions it could be a way more complex value.
Maybe in the future 
(As for my position wizard I decided to just write the value into a uservar by hand, it works perfectly just a needs little more effort)
-
Well I'm not entirely sure how would this get me the Attribute values :\ . It would might help on my position wizard but I'd like to try some other tricks where I need to copy the current attribute values :\
So I know that we are able to set these with like "Attribute "Dimmer" At 50". It makes sense that I should be able to read it out somehow and maybe save it to a UserVar and or use it in a lua script.
-
Hello!
I'm looking for a way to get the current attribute values to a UserVar for example.
Trying to figure out some kind of position wizard for my tour. Where I only set each side of the stage and the macro would finish all my basic positions like Cross Up, Cross Down, Fan Up etc.
But I can't really get the current pan attribute values to a User Var. (Yes I could write the dmx values to a UserVar and use that instead but I want to make this as fast and as comfortable as possible possible.)