-
Notifications
You must be signed in to change notification settings - Fork 6
/
shaper.ass
21 lines (19 loc) · 1.65 KB
/
shaper.ass
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[Script Info]
; Script generated by Aegisub 3.2.2
; http://www.aegisub.org/
Title: New subtitles
ScriptType: v4.00+
WrapStyle: 0
PlayResX: 1280
PlayResY: 720
ScaledBorderAndShadow: yes
[V4+ Styles]
Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
Style: Default-furigana,Arial,25,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,1,0,2,10,10,10,1
Style: Default,Calibri,50,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,0,5,10,10,10,1
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Comment: 0,0:00:00.00,0:00:05.00,Default,,0,0,0,code line,xres, yres, ar, artype = _G.aegisub.video_size() function shaper(img_path, width, height, res_type) if res_type == "video" and yres == nil then _G.aegisub.log("Videoya ait çözünürlük bulunamadı!") else ratio = "" if res_type == "video" then ratio = yres/720 elseif res_type == "script" then ratio = meta.res_y/720 end return string.format("{\\bord0\\shad0\\1img(%s.png)\\p1}m 0 0 l %s 0 l %s %s l 0 %s l 0 0", img_path, math.floor(width*ratio), math.floor(width*ratio), math.floor(height*ratio), math.floor(height*ratio)) end end
Comment: 0,0:00:00.00,0:00:05.00,Default,,0,0,0,template line notext,!shaper("resim_dizini_ve_adi",385,103,"script")!
Comment: 0,0:00:00.00,0:00:05.00,Default,,0,0,0,karaoke,deneme
Dialogue: 0,0:00:00.00,0:00:05.00,Default,,0,0,0,fx,{\bord0\shad0\1img(resim_dizini_ve_adi.png)\p1}m 0 0 l 385 0 l 385 103 l 0 103 l 0 0