Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge upstream changes and fix DependencyControl feed #4

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
238 changes: 137 additions & 101 deletions DependencyControl.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions ua.BlurAndGlow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@ script_name="Blur and Glow"
script_description="Add blur and/or glow to signs"
script_author="unanimated"
script_url="http://unanimated.xtreemhost.com/ts/blur-and-glow.lua"
script_version="2.5"
script_version="2.5.1"
script_namespace="ua.BlurAndGlow"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="2.5.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

Expand Down
3 changes: 1 addition & 2 deletions ua.ChangeCase.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
script_name="Change Case"
script_description="Capitalises text or makes it lowercase / uppercase"
script_author="unanimated"
script_version="3.0"
script_version="3.0.1"
script_namespace="ua.ChangeCase"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="3.0.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

Expand Down
7 changes: 3 additions & 4 deletions ua.Colorize.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
script_name="Colourise"
script_description="RGB Magic and HSL Sorcery"
script_author="unanimated"
script_version="5.0"
script_namespace="ua.Colourise"
script_version="5.0.1"
script_namespace="ua.Colorize"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="5.0.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/unanimated/luaegisub/master/DependencyControl.json"}
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

info={}
Expand Down
5 changes: 2 additions & 3 deletions ua.Cycles.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
script_name="Cycles"
script_description="Cycles blur, border, shadow, alpha, alignment, font spacing"
script_author="unanimated"
script_version="2.0"
script_version="2.0.1"
script_namespace="ua.Cycles"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="2.0.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/unanimated/luaegisub/master/DependencyControl.json"}
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

-- SETTINGS - You can change these sequences
Expand Down
3 changes: 1 addition & 2 deletions ua.EncodeHardsub.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,11 @@
script_name="Encode - Hardsub"
script_description="Encode a clip with or without hardsubs"
script_author="unanimated"
script_version="1.2"
script_version="1.2.1"
script_namespace="ua.EncodeHardsub"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="1.2.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

Expand Down
11 changes: 5 additions & 6 deletions ua.FadeWorks.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
script_name="FadeWorkS"
script_description="Makes pictograph overlays fade in and out of existence"
script_author="unanimated"
script_version="5.0"
script_namespace="ua.Fadeworks"
script_version="5.0.2"
script_namespace="ua.FadeWorks"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="5.0.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/unanimated/luaegisub/master/DependencyControl.json"}
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

re=require'aegisub.re'
Expand Down Expand Up @@ -490,12 +489,12 @@ function koko_da(subs,sel)
if not res.word then
matches=re.find(text,"[\\w[:punct:]][\\s\\\\*]*")
len=#matches
if fadin>=40 then ko=round(fadin/(len-1))/10 else ko=fadin end
if fadin>=40 then ko=round(fadin/len)/10 else ko=fadin end
text=re.sub(text,"([\\w[:punct:]])","{\\\\ko"..ko.."}\\1")
else --word
matches=re.find(text,"[\\w[:punct:]]+[\\s\\\\*]*")
len=#matches
if fadin>=40 then ko=round(fadin/(len-1)/10) else ko=fadin end
if fadin>=40 then ko=round(fadin/len/10) else ko=fadin end
text=re.sub(text,"([\\w[:punct:]]+)","{\\\\ko"..ko.."}\\1")
end

Expand Down
7 changes: 3 additions & 4 deletions ua.HYDRA.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ script_name="HYDRA"
script_description="A multi-headed typesetting beast. Scary as Hell."
script_author="unanimated"
script_url1="http://unanimated.hostfree.pw/ts/hydra.lua"
script_url2="https://raw.githubusercontent.com/unanimated/luaegisub/master/hydra.lua"
script_version="6.1"
script_url2="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/hydra.lua"
script_version="6.1.1"
script_namespace="ua.HYDRA"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="6.1.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/unanimated/luaegisub/master/DependencyControl.json"}
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

re=require'aegisub.re'
Expand Down
3 changes: 1 addition & 2 deletions ua.JoinSplitSnap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ kfea=15 -- ends after
script_name="Join / Split / Snap"
script_description="Joins lines / splits lines / snaps to keyframes"
script_author="unanimated"
script_version="1.2"
script_version="1.2.1"
script_namespace="ua.JoinSplitSnap"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="1.2.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

Expand Down
3 changes: 1 addition & 2 deletions ua.JumpToNext.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ script_name="Jump to Next"
script_description="Jumps to next 'sign' in the subtitle grid"
script_description2="Jumps to previous 'sign' in the subtitle grid"
script_author="unanimated"
script_version="2.0"
script_version="2.0.1"
script_namespace="ua.JumpToNext"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="2.0.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

Expand Down
5 changes: 2 additions & 3 deletions ua.LineBreaker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
script_name="Line Breaker"
script_description="Breaks lines"
script_author="unanimated"
script_version="2.4"
script_version="2.4.1"
script_namespace="ua.LineBreaker"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="2.4.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/unanimated/luaegisub/master/DependencyControl.json"}
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

re=require'aegisub.re'
Expand Down
5 changes: 2 additions & 3 deletions ua.Masquerade.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
script_name="Masquerade"
script_description="Dark Elves with Blurry Masks Shifting in Motion"
script_author="unanimated"
script_version="3.0"
script_version="3.0.1"
script_namespace="ua.Masquerade"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="3.0.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/unanimated/luaegisub/master/DependencyControl.json"}
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

hlp=[[ Full manual: http://unanimated.hostfree.pw/ts/scripts-manuals.htm#masquerade
Expand Down
5 changes: 2 additions & 3 deletions ua.MultiCopy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
script_name="MultiCopy"
script_description="Lossless transfer of data between compatible storage units"
script_author="unanimated"
script_version="4.0"
script_version="4.0.1"
script_namespace="ua.MultiCopy"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="4.0.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/unanimated/luaegisub/master/DependencyControl.json"}
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

clipboard=require'aegisub.clipboard'
Expand Down
5 changes: 2 additions & 3 deletions ua.MultiLineEditor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
script_name="Multi-Line Editor"
script_description="Multi-Line Editor"
script_author="unanimated"
script_version="1.8"
script_version="1.8.1"
script_namespace="ua.MultiLineEditor"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="1.8.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/unanimated/luaegisub/master/DependencyControl.json"}
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

re=require'aegisub.re'
Expand Down
3 changes: 1 addition & 2 deletions ua.Multiplexer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -380,12 +380,11 @@
script_name="Multiplexer"
script_description="Muxes stuff using mkvmerge"
script_author="unanimated"
script_version="1.1"
script_version="1.1.1"
script_namespace="ua.Multiplexer"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="1.1.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

Expand Down
7 changes: 3 additions & 4 deletions ua.NecrosCopy.lua
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
script_name="NecrosCopy"
script_description="Copy and fax things in the shadows while lines are splitting and breaking"
script_author="reanimated"
script_version="4.1"
script_version="4.1.1"
script_namespace="ua.NecrosCopy"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="4.1.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/unanimated/luaegisub/master/DependencyControl.json"}
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

re=require'aegisub.re'
Expand Down Expand Up @@ -589,6 +588,7 @@ function splitbreak(subs,sel)
},{"Spaces","Tags","Marker","Skip","Cancel"},{close='Cancel'})
end
if P=="Cancel" then ak() end
breakit=false nmbr=rez.num mark=rez.mark
text=text:gsub("\\N","")
if P=="Spaces" then text=textreplace(text," "," \\N") end
if P=="Tags" then
Expand All @@ -602,7 +602,6 @@ function splitbreak(subs,sel)
text=stags..after
end
if rez.remember then applytoall=P end
breakit=false nmbr=rez.num mark=rez.mark
text=text:gsub("({\\[^}]*}) *\\N","\\N%1")
end

Expand Down
3 changes: 1 addition & 2 deletions ua.QC.lua
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
script_name="Quality Check"
script_description="Quality Check"
script_author="unanimated"
script_version="2.9"
script_version="2.9.1"
script_namespace="ua.QC"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="2.9.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

Expand Down
5 changes: 2 additions & 3 deletions ua.Recalculator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
script_name="Recalculator"
script_description="Incremental Reconstruction of Disassembled Elements"
script_author="unanimated"
script_version="4.0"
script_version="4.0.1"
script_namespace="ua.Recalculator"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="4.0.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/unanimated/luaegisub/master/DependencyControl.json"}
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

re=require'aegisub.re'
Expand Down
30 changes: 14 additions & 16 deletions ua.Relocator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ script_name="Hyperdimensional Relocator"
script_description="Advanced metamorphosis of multidimensional coordinates"
script_author="reanimated"
script_url="http://unanimated.hostfree.pw/ts/relocator.lua"
script_version="4.5"
script_version="4.5.3"
script_namespace="ua.Relocator"

local haveDepCtrl,DependencyControl,depRec=pcall(require,"l0.DependencyControl")
if haveDepCtrl then
script_version="4.5.0"
depRec=DependencyControl{feed="https://raw.githubusercontent.com/unanimated/luaegisub/master/DependencyControl.json"}
depRec=DependencyControl{feed="https://raw.githubusercontent.com/TypesettingTools/unanimated-Aegisub-Scripts/master/DependencyControl.json"}
end

re=require'aegisub.re'
Expand Down Expand Up @@ -396,8 +395,8 @@ function positron(subs,sel)
-- clip to fax
if res.posi=="clip to fax" then
if not text:match("\\i?clip%(m") and not text:match("//i?clip%(m") then t_error("Missing \\clip on line #"..i-line0..".\nAborting.",1) end
cx1,cy1,cx2,cy2,cx3,cy3,cx4,cy4=text:match("clip%(m ([%d%-]+) ([%d%-]+) l ([%d%-]+) ([%d%-]+) ([%d%-]+) ([%d%-]+) ([%d%-]+) ([%d%-]+)")
if not cx1 then cx1,cy1,cx2,cy2=text:match("clip%(m ([%d%-]+) ([%d%-]+) l ([%d%-]+) ([%d%-]+)") end
cx1,cy1,cx2,cy2,cx3,cy3,cx4,cy4=text:match("clip%(m ([%d.-]+) ([%d.-]+) l ([%d.-]+) ([%d.-]+) ([%d.-]+) ([%d.-]+) ([%d.-]+) ([%d.-]+)")
if not cx1 then cx1,cy1,cx2,cy2=text:match("clip%(m ([%d.-]+) ([%d.-]+) l ([%d.-]+) ([%d.-]+)") end
if not cx1 then t_error("Line #"..i-line0..": Not enough clip points. 2 required.",1) end
sr=stylechk(subs,line.style)
rota=nontra:match("^{[^}]-\\frz([%d.-]+)") or sr.angle
Expand Down Expand Up @@ -446,8 +445,8 @@ function positron(subs,sel)
-- clip to frz
if res.posi=="clip to frz" then
if not text:match("\\i?clip%(m") and not text:match("//i?clip%(m") then t_error("Missing \\clip on line #"..i-line0..".\nAborting.",1) end
cx1,cy1,cx2,cy2,cx3,cy3,cx4,cy4=text:match("clip%(m ([%d%-]+) ([%d%-]+) l ([%d%-]+) ([%d%-]+) ([%d%-]+) ([%d%-]+) ([%d%-]+) ([%d%-]+)")
if not cx1 then cx1,cy1,cx2,cy2=text:match("clip%(m ([%d%-]+) ([%d%-]+) l ([%d%-]+) ([%d%-]+)") end
cx1,cy1,cx2,cy2,cx3,cy3,cx4,cy4=text:match("clip%(m ([%d.-]+) ([%d.-]+) l ([%d.-]+) ([%d.-]+) ([%d.-]+) ([%d.-]+) ([%d.-]+) ([%d.-]+)")
if not cx1 then cx1,cy1,cx2,cy2=text:match("clip%(m ([%d.-]+) ([%d.-]+) l ([%d.-]+) ([%d.-]+)") end
if not cx1 then t_error("Line #"..i-line0..": Not enough clip points. 2 required.",1) end
local ad,op,tang,ang1,rota,ad2,op2,tang2,ang2,rota2
ad=cx2-cx1
Expand All @@ -473,7 +472,7 @@ function positron(subs,sel)
-- clip to reposition
if res.posi=="clip to reposition" then
if not text:match("\\i?clip%(m") and not text:match("//i?clip%(m") then t_error("Missing \\clip on line #"..i-line0..".\nAborting.",1) end
cx1,cy1,cx2,cy2=text:match("clip%(m ([%d%-]+) ([%d%-]+) l ([%d%-]+) ([%d%-]+)")
cx1,cy1,cx2,cy2=text:match("clip%(m ([%d.-]+) ([%d.-]+) l ([%d.-]+) ([%d.-]+)")
if not cx1 then t_error("Line #"..i-line0..": Not enough clip points. 2 required.",1) end
repo1=cx2-cx1 repo2=cy2-cy1
text=text:gsub("\\i?clip%b()","")
Expand Down Expand Up @@ -1121,8 +1120,8 @@ function bilocator(subs,sel)
else movt1,movt2=gettimes(start,endt) end
if res.times then M=","..movt1..","..movt2 else M="" end
if not text:match("\\i?clip") and not text:match("//i?clip") then t_error("Missing \\clip on line #"..i-line0..". Aborting.",1) end
cx1,cy1,cx2,cy2,cx3,cy3,cx4,cy4=text:match("clip%(m ([%d%-]+) ([%d%-]+) l ([%d%-]+) ([%d%-]+) ([%d%-]+) ([%d%-]+) ([%d%-]+) ([%d%-]+)")
if not cx1 then cx1,cy1,cx2,cy2=text:match("clip%(m ([%d%-]+) ([%d%-]+) l ([%d%-]+) ([%d%-]+)") end
cx1,cy1,cx2,cy2,cx3,cy3,cx4,cy4=text:match("clip%(m ([%d.-]+) ([%d.-]+) l ([%d.-]+) ([%d.-]+) ([%d.-]+) ([%d.-]+) ([%d.-]+) ([%d.-]+)")
if not cx1 then cx1,cy1,cx2,cy2=text:match("clip%(m ([%d.-]+) ([%d.-]+) l ([%d.-]+) ([%d.-]+)") end
if not cx1 then t_error("Line #"..i-line0..": Not enough clip points. Min. 2 required.",1) end
if cx4 then
point1x=(cx2+cx1)/2
Expand Down Expand Up @@ -1450,8 +1449,7 @@ function modifier(subs,sel,act)
end
if text:match("\\i?clip") and res.rnd=="all" or text:match("\\i?clip") and res.rnd=="clip" then
for klip in text:gmatch("\\i?clip%([^%)]+%)") do
if klip:match("m") then rrr=0 else rrr=rr end
klip2=klip:gsub("([%d.-]+)",function(c) return round(c,rrr) end)
klip2=klip:gsub("([%d.-]+)",function(c) return round(c,rr) end)
text=text:gsub(esc(klip),klip2)
end
end
Expand Down Expand Up @@ -1499,7 +1497,7 @@ function modifier(subs,sel,act)
if res.mod=="calculate origin" then
local c={}
local c2={}
x1,y1,x2,y2,x3,y3,x4,y4=text:match("clip%(m ([%d%-]+) ([%d%-]+) l ([%d%-]+) ([%d%-]+) ([%d%-]+) ([%d%-]+) ([%d%-]+) ([%d%-]+)")
x1,y1,x2,y2,x3,y3,x4,y4=text:match("clip%(m ([%d.-]+) ([%d.-]+) l ([%d.-]+) ([%d.-]+) ([%d.-]+) ([%d.-]+) ([%d.-]+) ([%d.-]+)")
if not x1 then t_error("Line #"..i-line0..": vectorial clip with 4 points required.\nAborting.",1) end
cor1={x=tonumber(x1),y=tonumber(y1)} table.insert(c,cor1) table.insert(c2,cor1)
cor2={x=tonumber(x2),y=tonumber(y2)} table.insert(c,cor2) table.insert(c2,cor2)
Expand Down Expand Up @@ -1672,7 +1670,7 @@ function modifier(subs,sel,act)
local xx,yy=text:match("\\pos%(([%d.-]+),([%d.-]+)%)")
xx=round(xx) yy=round(yy)
coord=klip:match("\\clip%(m ([^%)]+)%)")
coord2=coord:gsub("([%d%-]+) ([%d%-]+)",function(a,b) return round(a*scx/100+xx).." "..round(b*scy/100+yy) end)
coord2=coord:gsub("([%d.-]+) ([%d.-]+)",function(a,b) return round(a*scx/100+xx).." "..round(b*scy/100+yy) end)
klip=klip:gsub(esc(coord),coord2)
end
if nopos then text=text:gsub("^{","{\\pos(0,0)") end
Expand All @@ -1686,7 +1684,7 @@ function modifier(subs,sel,act)
local xx,yy=text:match("\\pos%(([%d.-]+),([%d.-]+)%)")
xx=round(xx) yy=round(yy)
coord=klip:match("m ([%d%a%s%-]+)")
coord2=coord:gsub("([%d%-]+)%s([%d%-]+)",function(a,b) return a-xx.." "..b-yy end)
coord2=coord:gsub("([%d.-]+)%s([%d.-]+)",function(a,b) return a-xx.." "..b-yy end)
coord=coord:gsub("%-","%%-")
klip=klip:gsub(coord,coord2)
end
Expand Down Expand Up @@ -2131,7 +2129,7 @@ lastags1=""
--logg("\n val1: "..val1.." valf: "..valf.." tpart: "..tpart.." twhole: "..twhole)
end
-- clip
if tra:match("\\i?clip%([%d%-]") then
if tra:match("\\i?clip%([%d.-]") then
ctype,c1,c2,c3,c4=nontra:match("(\\i?clip%()([%d.-]+),([%d.-]+),([%d.-]+),([%d.-]+)")
if not ctype then t_error("Error. Looks like you're transforming a clip that's not set in the first place.\n> "..tags,1) end
ktype,k1,k2,k3,k4=tra:match("(\\i?clip%()([%d.-]+),([%d.-]+),([%d.-]+),([%d.-]+)")
Expand Down
Loading