Skip to content

Instantly share code, notes, and snippets.

@nielsmh
Created April 26, 2014 18:42
Show Gist options
  • Save nielsmh/11327713 to your computer and use it in GitHub Desktop.
Save nielsmh/11327713 to your computer and use it in GitHub Desktop.
Aegisub extradata usage
function foo(subs, sel, act)
local data = {"some", "random", "junk"}
for z, i in ipairs(sel) do
local l = subs[i]
l.extra.stuff = luabins.save(data)
subs[i] = l
end
for z, i in ipairs(sel) do
local l = subs[i]
local success, thedata = luabins.load(l.extra.stuff)
end
end
aegisub.register_macro("Extradata demo", "", foo)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment