Created
April 26, 2014 18:42
-
-
Save nielsmh/11327713 to your computer and use it in GitHub Desktop.
Aegisub extradata usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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