Posts by Cueless
BECOME PART OF THE COMMUNITY - Sign up here
-
-
Hi all.
i have some uservars I want to get rid of, but if I type the same name they stay. This is probably due to a double space somewhere, or a too long name etc. I wanted to use DelUserVar* but that doesn’t seem to be implemented yet, while GetUserVar* works fine.How can i delete all vars in one go?
thanks a lot. -
thanks Andreas, that worked just fine
i read the help file and there it says: Go+ is the default keyword for plugins
-
Hi Guys,
is it possible to start plugins in another data pool? I know we can access presets by 2.4.1 but Go+ Datapool 2 Plugin 7 doesn't seem to work. Is that a not implemented yet, or a syntax error?
thanks all
-
i agree Hoss, but than i cannot grab the name of group 1 and label the sequence [group one name] [color] or something like that. Or place the sequence of group 59 at sequence 59
-
Hi Hive mind,
is there a way to see if a group exists and then grab the name of that group, and return NIL or so, if the group is not there?
example: I have group 1, group 4 and group 59 with some lights, and I want to desk to grab all existing groups and assign a preset to them and store them in a cue.
thanks all, keep up the good work
-
thank you for your super fast response Andreas,
since it worked with you I restarted the software with clean start, and now it works for me too. Could it be that the link to the lua filename was not good? if i restarted normal software but didn't do the clean start, the problem stays there.
-
Dear sirs and madams,
am I correct in assuming that the desk doesn't run metatables in LUA? i saw that version 5.3 of LUA is implemented, so that should already contain them.
this piece of code actually works in online lua editors, but not on the desk, and i can't seem to figure out why. i get an error in line 8, attempt to call a table value (global metatable). i changed the Printf into print for the online version, no other changes were made.
thanks everybody and probably Andreas
Code
Display Morereturn function() Window = {} Window.prototype = {x=0, y=0, width=100, height=100, } Window.mt = {} function Window.new (o) setmetatable(o, Window.mt) return o end Window.mt.__index = function (table, key) return Window.prototype[key] end w = Window.new{x=10, height=20} Printf(w.height)
-
Dear sirs and madams,
I see in some of the examples of plugins that there is 1 main function running that contains all the other programming / functions within:
I noticed that the desk does a lot of internal workings and at the end comes with 1 big result. This seems to slow down the process and is memory intensive.
is it possible to make something that does:
Code
Display Morefunction colors(groups) --create some colors for 1,500 do --lots of iterations Cmd("a big process") Cmd("store sequence ....") end end local groups = GetVar(UserVars, "groups") function setup() --run the previous function for the number of groups for 1,groups do colors(groups) --run the previous function with this value end end
so lua creates 1 sequence and stores it, and then starts with the second one and stores it, instead of doing them all inside the memory , and storing 5 at the same time.
Will a cleanup() function help in this process?
thanks for the help forum hyve mind,
the struggle is real, but the reward is bigger.
-
-
thanks Riri, i know about that one.
I want to protect my intellectual property. So run the plugins from a usb stick, and when I walk away they are not in the desk if I take my usb stick with me, or they live somewhere on a PU for others to save from a backup station behind the stage.
-
-
tried it, worked, I am happy. thanks both for the quick and extensives responses. I am having a long night ahead of me.
-
Hi Hoss,
i am creating my own messagebox now, and got pretty far. customised everything. I am only struggeling with reading out the result and putting it into a variable.
How can i put the result "123" of input 1 into a local variable? I saw it is a table in a table in a table, and i can't readout the nested part. I checked your website and this didn't help me either.
thanks a million
-
Hi,
thanks for your super answer Andreas, it helped me a lot making some steps.
i was just wondering because of your answer if it is possible to use our local lua variables to set the global or user variables in the desk. I can't seem to escape the , (comma) that is in the Setvar command.
example: string.format("SetVar(GlobalVars(),'%s','%s'", var1, var2)
and var1 and var2 would be created in a table or array or other way inside the LUA plugin.
thank you for your help so far.
-
yeah that would be great. now if i make a group_1_color_base_bump_whatevah 15 variable, and i made a typo at the end, i can never delete it again.
hope there will be some api documentation or expansion soon. for now keep up the good work hoss.
-
and Hoss, if they are too long, you can't see what they were in the past, since the commandline is not showing the full variable name. So you can also not delete them via the delglobalvar command. And there is also no function to delglobalvar *.
i think there is some improvement possible on that part
-
Hi Both,
i just did a copy paste to test, but i don't get a result (message box on my screen). what am i missing before i start editing all the other values?
thanks
-
Did you just forget an l in line 3 in your first example? never seen you do that before
-