lohahouston.blogg.se

Aegisub panning code
Aegisub panning code







This may or may not change in later versions of Karaoke Templater. This is a limitation of the execution model.

#Aegisub panning code code

You cannot have templates with char or multi modifiers run per-character/per-highlight interspersed with code lines.

aegisub panning code

They are run interspersed with furi templates. They are run interspersed with syl templates.Ĭode lines in the furi class are run when a new furigana syllable is encountered. (There are no "pre-line" code lines.)Ĭode lines in the syl class are run when a new syllable is encountered. They are run interspersed with line/ pre-line templates in the order they appear. This is the default class, if you don't specify a class for a code line it's automatically in the once class.Ĭode lines in the line class are run when a new line is encountered. This is usually the best place to define functions and general tables of values you need to look up later.

aegisub panning code

The possible classes are:Ĭode lines in the once class are run exactly one time, before any templates are applied. You specify the class of the code line in the Effect field after the code keyword. Some of them are the same, and some only exist for one or the other.

aegisub panning code

Like there's multiple classes of template lines there's also multiple classes of code lines. For example, if you need a random number, but also need to use it twice in one template, you can use a code line to first generate the number and store it to a variable, then use that variable in your template line.Īnother example could be defining a function that produces a random colour.







Aegisub panning code