ive been using ofxLua lately, love it. if you dont know it, its by @danomatika - i love lua, its a great language and really easy to read etc etc.
but one thing is that some syntax is different. main difference is that instead of say ofCircle in oF, it would be of.circle in lua. so i have been slightly busy trying to make an auto-complete sheet to hopefully help people using ofxLua, but you are using say sublime text for inputting the text.
its not finished at all, but its just more of a start. its is also pretty hacky and more than likely can be done better
you can grab it from my github account here
again, if you know of a better way to get auto-complete this way, then by all means that would be cool
You can print all names in the “of” wrapper module to the console by running:
thanks for that. ill have a good look
though was just now thinking of a better way. such as if i could read the openFrameworks directory folder, find the ones which all start with ‘ofSomething’ and make a script that could make a ‘.’ then make sure the first letter ended up lowercase. its just locating the folder is my problem.
i guess in a way that ofxLua works right now, but has the auto-complete feature
ill press on. thanks
Try this lua code. It will print the “of” module table names recursively:
if type(o) == "table" then
local s = ""
for k,v in pairs(o) do
if type(v) == 'table' then
s = s..printTable(v,h.."."..k)
elseif h ~= nil then
s = s..h.."."..k.."\n"
s = s..k.."\n"
Gives me (snippet):
oooh, fantastic. thank you