View Single Post
Old 2005-12-25, 19:42   Link #96
jfs
Aegisub dev
 
 
Join Date: Sep 2004
Location: Stockholm, Sweden
Age: 39
ThunderEmperor:
Though the effect is rather simple, and it doesn't take much code either, you need a program to generate the effect, because it requires one line per syllable, with the syllables being positioned to match each other.
Here's a little script that makes the effect I think you're after. It transforms this line:
Code:
Dialogue: 0,0:00:00.00,0:00:10.00,Default,,0000,0000,0000,,{\k100}foo {\k100}bar
into this:
Code:
Dialogue: 0,0:00:00.00,0:00:10.00,Default,,0000,0000,0000,,{\pos(284,50)\t(0,0,\fry360)}
Dialogue: 0,0:00:00.00,0:00:10.00,Default,,0000,0000,0000,,{\pos(303,50)\t(0,1000,\fry360)}foo 
Dialogue: 0,0:00:00.00,0:00:10.00,Default,,0000,0000,0000,,{\pos(339,50)\t(1000,2000,\fry360)}bar
The script looks like this, and should be easy to extend with more effects:

Code:
name = "Y axis rotate"
description = "Makes the syllables rotate around their Y axis"

version, kind, configuration = 3, 'basic_ass', {}

include("karaskel-adv.lua")

function do_syllable(meta, styles, config, line, syl)
	local newlin = copy_line(line)
	newlin.text = string.format("{\\pos(%d,50)\\t(%d,%d,\\fry360)}%s", line.centerleft+syl.center, syl.start_time, syl.end_time, syl.text)
	return {n=1, [1]=newlin}
end
__________________

Aegisub developer [ Forum | Manual | Feature requests | Bug reports | IRC ]
Don't ask for: More VSFilter changes (I won't), karaoke effects, help in PM's
jfs is offline   Reply With Quote