【存檔】KE代碼轉(zhuǎn)ASS字幕模板的分析過(guò)程
如圖1,照著KE界面上的一個(gè)模板(4.shape 0281 - Sakura_Circle_I_HL)抄了一遍KE代碼:
Line Start Time = l.start_time ? syl.start_time ? syl.dur * 1m
Line End Time = fx.start_time ? syl.dur ? 480 ? R( 360 )
Center "x" = syl.center
Center "y" = syl.middle ? l.descent / 4
Scale "x" = 0.46 * math.distance( syl.width, syl.height )
Scale "y" = 0.46 * math.distance( syl.width, syl.height )
x( s ) = cos( s ) fx.domain_i:0
y( s ) = sin( s ) fx.domain_f:2 * pi(本質(zhì):2*math.pi)
Layer // Align = 0 ?5
loop = 0.45 * math.distance( syl.width, syl.height )
Pos "x" = fx.pos_x, fx.pos_x ? Rrs( 10 )
Pos "y" = fx.pos_y, fx.pos_y - Rr( 10, 72 )
Size = 0
Times Move = syl.dur, fx.dur
Kara Effector 3.5 aratani = shape.sakura
WhatsApp KE:
"\\bs0\\blur1\\1c( color.interpolate( shape.color1, shape.color3, Rc( 0, 0.7 ) ) )\\frxyztRs( 900 )\\t(0,3f,\\fscxyiRr( 8, 12 ))\\fad(80,200)"
如圖2,鄙人大致猜測(cè)這些部分的內(nèi)容應(yīng)該寫在ASS字幕模板的這些位置上,目前還在摸索中,先發(fā)專欄存檔:
【code行】
Scale "x" = 0.46 * math.distance( syl.width, syl.height )
Scale "y" = 0.46 * math.distance( syl.width, syl.height )
x( s ) = cos( s ) fx.domain_i:0
y( s ) = sin( s ) fx.domain_f:2 * pi(本質(zhì):2*math.pi)
Times Move = syl.dur, fx.dur
Kara Effector 3.5 aratani = shape.sakura
【template行】
Line Start Time = l.start_time ? syl.start_time ? syl.dur * 1m
Line End Time = fx.start_time ? syl.dur ? 480 ? R( 360 )
Center "x" = syl.center
Center "y" = syl.middle ? l.descent / 4
Layer // Align = 0 ?5
loop = 0.45 * math.distance( syl.width, syl.height )
Pos "x" = fx.pos_x, fx.pos_x ? Rrs( 10 )
Pos "y" = fx.pos_y, fx.pos_y - Rr( 10, 72 )
Size = 0
WhatsApp KE:
"\\bs0\\blur1\\1c( color.interpolate( shape.color1, shape.color3, Rc( 0, 0.7 ) ) )\\frxyztRs( 900 )\\t(0,3f,\\fscxyiRr( 8, 12 ))\\fad(80,200)"


模板寫好了會(huì)另發(fā)一篇專欄簡(jiǎn)要講一下這個(gè)KE代碼到ASS字幕模板的代碼對(duì)應(yīng)關(guān)系,方便大家自行把KE的其他代碼轉(zhuǎn)寫為ASS字幕模板,做好的ASS字幕模板我到時(shí)也會(huì)發(fā)到github備份。