Tips: You can easily create text masks even for growing/shrinking text without too much effort. This is an high level function since it does some additional operations, check text_to_shape for further infromations. It is not possible to position a shape with pos() once it is in a clip. write_line ( line ) static text_to_clip ( obj, an = 5, fscx = None, fscy = None ) Ĭonverts text with given style information to an ASS shape, applying some translation/scaling to it since ReturnsĪ decimal in representing alpha_ass converted. ParametersĪlpha_ass ( str) – A string in the format ‘&HXX&’. static alpha_ass_to_dec ( alpha_ass ) Ĭonverts from ASS alpha string to corresponding decimal value. It is something close to using “CTRL + 3” and “CTRL + 4” on Aegisub 3.2.2. Moves the ms to when the corresponding frame starts or ends (depending on is_start). static move_ms_to_frame ( ms, fps, is_start ) static frames_to_ms ( frames, fps, is_start ) Ĭonverts from frames to milliseconds. Is_start ( bool) – True if this time will be used for the start_time of a line, else False. Parametersįps ( positive int, float or Fraction) – Frames per second. static ms_to_frames ( ms, fps, is_start ) Ĭonverts from milliseconds to frames. If milliseconds -> ASS timestamp, else if ASS timestamp -> milliseconds, else ValueError will be raised. ParametersĪss_ms ( int or str) – If int, than milliseconds are expected, else ASS timestamp as str is expected. You can probably ignore that function, you will not make use of it for KFX or typesetting generation. static time ( ass_ms ) Ĭonverts between milliseconds and ASS timestamp. The user to convert everything needed to the ASS format. This class is a collection of static methods that will help Pixel ( x, y, alpha ) alpha Īlias for field number 1 class nvert.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |