Skip to content

Instantly share code, notes, and snippets.

@mrWeiss0
Last active March 31, 2024 05:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrWeiss0/349392e2c9724406605f47f09440c725 to your computer and use it in GitHub Desktop.
Save mrWeiss0/349392e2c9724406605f47f09440c725 to your computer and use it in GitHub Desktop.
Scrolling end credits in ASS format with Aegisub Karaoke Templater
[Script Info]
; Script generated by Aegisub 3.2.2
; http://www.aegisub.org/
Title: PROVA
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
YCbCr Matrix: None
PlayResX: 1920
PlayResY: 1080
[Aegisub Project Garbage]
Export Filters: Karaoke template|Clean Tags
Export Encoding: Unicode (UTF-8)
Last Style Storage: Default
Video File: ?dummy:50.000000:400:1920:1080:128:128:128:
Video AR Value: 1.777778
[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: Credits_Right-furigana,Bebas Neue,40,&H00FFFFFF,&H000000FF,&H00000000,&H90000000,0,0,0,0,100,100,0,0,1,0,2,9,0,0,0,1
Style: Credits_Left-furigana,Bebas Neue,40,&H00FFFFFF,&H000000FF,&H00000000,&H90000000,0,0,0,0,100,100,0,0,1,0,2,7,0,0,0,1
Style: Credits_Large-furigana,Bebas Neue,60,&H00FFFFFF,&H000000FF,&H00000000,&H90000000,0,0,0,0,100,100,0,0,1,0,2,8,0,0,0,1
Style: Credits-furigana,Bebas Neue,40,&H00FFFFFF,&H000000FF,&H00000000,&H90000000,0,0,0,0,100,100,0,0,1,0,2,8,0,0,0,1
Style: Credits,Bebas Neue,60,&H00FFFFFF,&H000000FF,&H00000000,&H90000000,0,0,0,0,100,100,0,0,1,0,4.5,8,0,0,0,1
Style: Credits_Large,Bebas Neue,120,&H00FFFFFF,&H000000FF,&H00000000,&H90000000,0,0,0,0,100,100,0,0,1,0,5.5,8,0,0,0,1
Style: Credits_Left,Bebas Neue,60,&H00FFFFFF,&H000000FF,&H00000000,&H90000000,0,0,0,0,100,100,0,0,1,0,4.5,9,0,0,0,1
Style: Credits_Right,Bebas Neue,60,&H00FFFFFF,&H000000FF,&H00000000,&H90000000,0,0,0,0,100,100,0,0,1,0,4.5,7,0,0,0,1
[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Comment: 0,0:00:00.00,0:00:00.00,Credits,,0,0,0,,This script generates scrolling end credits in ass format
Comment: 0,0:00:00.00,0:00:00.00,Credits,,0,0,0,,First set the variables
Comment: 0,0:00:00.00,0:00:00.00,Credits,,0,0,0,code once,t0 = 0; pps = 150; -- Start time and speed in pixels per second
Comment: 0,0:00:00.00,0:00:00.00,Credits,,0,0,0,code once,hpad = 20; -- Distance from center for left/right aligned
Comment: 0,0:00:00.00,0:00:00.00,Credits,,0,0,0,code once,vpad = {60, -60, -10, 260}; -- Distance between lines; Normal, Left, Right, Large
Comment: 0,0:00:00.00,0:00:00.00,Credits,,0,0,0,,Each line is retimed starting from t0 in order to get constant speed
Comment: 0,0:00:00.00,0:00:00.00,Credits,,0,0,0,template line keeptags,!retime("abs",t0,t0+(meta.res_y+line.height)/pps*1000)!{\move(!meta.res_x/2!,!meta.res_y!,!meta.res_x/2!,!-line.height!)\blur.5}
Comment: 0,0:00:00.00,0:00:00.00,Credits_Left,,0,0,0,template line keeptags,!retime("abs",t0,t0+(meta.res_y+line.height)/pps*1000)!{\move(!meta.res_x/2-hpad!,!meta.res_y!,!meta.res_x/2-20!,!-line.height!)\blur.5}
Comment: 0,0:00:00.00,0:00:00.00,Credits_Right,,0,0,0,template line keeptags,!retime("abs",t0,t0+(meta.res_y+line.height)/pps*1000)!{\move(!meta.res_x/2+hpad!,!meta.res_y!,!meta.res_x/2+20!,!-line.height!)\blur.5}
Comment: 0,0:00:00.00,0:00:00.00,Credits_Large,,0,0,0,template line keeptags,!retime("abs",t0,t0+(meta.res_y+line.height)/pps*1000)!{\move(!meta.res_x/2!,!meta.res_y!,!meta.res_x/2!,!-line.height!)\blur.5}
Comment: 0,0:00:00.00,0:00:00.00,Credits_Large,,0,0,0,,t0 is increased according to the distance between lines
Comment: 0,0:00:00.00,0:00:00.00,Credits,,0,0,0,code line,t0 = t0 + (vpad[1]+line.height)/pps*1000;
Comment: 0,0:00:00.00,0:00:00.00,Credits_Left,,0,0,0,code line,t0 = t0 + (vpad[2]+line.height)/pps*1000;
Comment: 0,0:00:00.00,0:00:00.00,Credits_Right,,0,0,0,code line,t0 = t0 + (vpad[3]+line.height)/pps*1000;
Comment: 0,0:00:00.00,0:00:00.00,Credits_Large,,0,0,0,code line,t0 = t0 + (vpad[4]+line.height)/pps*1000;
Comment: 0,0:00:00.00,0:00:00.00,Credits_Large,,0,0,0,,Now add your lines applying correct styles and run karaoke template
Comment: 0,0:00:00.00,0:00:02.32,Credits_Large,,0,0,0,karaoke,{\fsp45}INCEPTION
Comment: 0,0:00:00.40,0:00:02.72,Credits,,0,0,0,karaoke,Cast
Comment: 0,0:00:00.60,0:00:02.92,Credits_Left,,0,0,0,karaoke,Cobb
Comment: 0,0:00:00.80,0:00:03.12,Credits_Right,,0,0,0,karaoke,Leonardo DiCaprio
Comment: 0,0:00:00.60,0:00:02.92,Credits_Left,,0,0,0,karaoke,Arthur
Comment: 0,0:00:00.80,0:00:03.12,Credits_Right,,0,0,0,karaoke,Joseph Gordon-Levitt
Comment: 0,0:00:00.60,0:00:02.92,Credits_Left,,0,0,0,karaoke,Ariadne
Comment: 0,0:00:00.80,0:00:03.12,Credits_Right,,0,0,0,karaoke,Ellen Page
Comment: 0,0:00:00.60,0:00:02.92,Credits_Left,,0,0,0,karaoke,Eames
Comment: 0,0:00:00.80,0:00:03.12,Credits_Right,,0,0,0,karaoke,Tom Hardy
Comment: 0,0:00:00.60,0:00:02.92,Credits_Left,,0,0,0,karaoke,Saito
Comment: 0,0:00:00.80,0:00:03.12,Credits_Right,,0,0,0,karaoke,Ken Watanabe
Comment: 0,0:00:00.60,0:00:02.92,Credits_Left,,0,0,0,karaoke,Yusuf
Comment: 0,0:00:00.80,0:00:03.12,Credits_Right,,0,0,0,karaoke,Dileep Rao
Comment: 0,0:00:00.60,0:00:02.92,Credits_Left,,0,0,0,karaoke,Robert Fischer, Jr.
Comment: 0,0:00:00.80,0:00:03.12,Credits_Right,,0,0,0,karaoke,Cillan Murphy
Comment: 0,0:00:00.60,0:00:02.92,Credits_Left,,0,0,0,karaoke,Browning
Comment: 0,0:00:00.80,0:00:03.12,Credits_Right,,0,0,0,karaoke,Tom Berenger
Comment: 0,0:00:00.60,0:00:02.92,Credits_Left,,0,0,0,karaoke,Mal
Comment: 0,0:00:00.80,0:00:03.12,Credits_Right,,0,0,0,karaoke,Marion Cotillard
Dialogue: 0,0:00:00.00,0:00:08.00,Credits_Large,,0,0,0,fx,{\move(960,1080,960,-120)\blur.5}{\fsp45}INCEPTION
Dialogue: 0,0:00:02.53,0:00:10.13,Credits,,0,0,0,fx,{\move(960,1080,960,-60)\blur.5}Cast
Dialogue: 0,0:00:03.33,0:00:10.93,Credits_Left,,0,0,0,fx,{\move(940,1080,940,-60)\blur.5}Cobb
Dialogue: 0,0:00:03.33,0:00:10.93,Credits_Right,,0,0,0,fx,{\move(980,1080,980,-60)\blur.5}Leonardo DiCaprio
Dialogue: 0,0:00:03.66,0:00:11.26,Credits_Left,,0,0,0,fx,{\move(940,1080,940,-60)\blur.5}Arthur
Dialogue: 0,0:00:03.66,0:00:11.26,Credits_Right,,0,0,0,fx,{\move(980,1080,980,-60)\blur.5}Joseph Gordon-Levitt
Dialogue: 0,0:00:04.00,0:00:11.60,Credits_Left,,0,0,0,fx,{\move(940,1080,940,-60)\blur.5}Ariadne
Dialogue: 0,0:00:04.00,0:00:11.60,Credits_Right,,0,0,0,fx,{\move(980,1080,980,-60)\blur.5}Ellen Page
Dialogue: 0,0:00:04.33,0:00:11.93,Credits_Left,,0,0,0,fx,{\move(940,1080,940,-60)\blur.5}Eames
Dialogue: 0,0:00:04.33,0:00:11.93,Credits_Right,,0,0,0,fx,{\move(980,1080,980,-60)\blur.5}Tom Hardy
Dialogue: 0,0:00:04.66,0:00:12.26,Credits_Left,,0,0,0,fx,{\move(940,1080,940,-60)\blur.5}Saito
Dialogue: 0,0:00:04.66,0:00:12.26,Credits_Right,,0,0,0,fx,{\move(980,1080,980,-60)\blur.5}Ken Watanabe
Dialogue: 0,0:00:04.99,0:00:12.60,Credits_Left,,0,0,0,fx,{\move(940,1080,940,-60)\blur.5}Yusuf
Dialogue: 0,0:00:04.99,0:00:12.60,Credits_Right,,0,0,0,fx,{\move(980,1080,980,-60)\blur.5}Dileep Rao
Dialogue: 0,0:00:05.33,0:00:12.93,Credits_Left,,0,0,0,fx,{\move(940,1080,940,-60)\blur.5}Robert Fischer, Jr.
Dialogue: 0,0:00:05.33,0:00:12.93,Credits_Right,,0,0,0,fx,{\move(980,1080,980,-60)\blur.5}Cillan Murphy
Dialogue: 0,0:00:05.66,0:00:13.26,Credits_Left,,0,0,0,fx,{\move(940,1080,940,-60)\blur.5}Browning
Dialogue: 0,0:00:05.66,0:00:13.26,Credits_Right,,0,0,0,fx,{\move(980,1080,980,-60)\blur.5}Tom Berenger
Dialogue: 0,0:00:05.99,0:00:13.59,Credits_Left,,0,0,0,fx,{\move(940,1080,940,-60)\blur.5}Mal
Dialogue: 0,0:00:05.99,0:00:13.59,Credits_Right,,0,0,0,fx,{\move(980,1080,980,-60)\blur.5}Marion Cotillard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment