VSFilterMod中文说明文档(ASS 最新代码).doc
VSFilterMod中文说明文档提供:ASS特效研习社:网址:http:/www.ass-(这个站最近服务器坏了,以后再上)临时网址:(欢迎加入)Font scale字体缩放 fsc<scale>Similar to aggregate fscx<scale>fscy<scale>. Animatable by t. 效果与同时使用fscx<scale>fscy<scale>相同。可用t实现动态效果。Example 例子 fsc200 make the text double size. fsc200 字体放大到原来的两倍。Leading纵向偏移 fsvp<leading>Changes text leading. Animatable by t.改变文字的纵向偏移。可用t实现动态效果。Example例子1. rfsvp0fsvp0rfsvp10fsvp10rfsvp-10fsvp-10复制代码1. rfsvp10fsvp10rfrz10frz10rfsvp0fsvp0rfsvp-10fsvp-10复制代码 Baseline obliquity基线倾斜 frs<angle>Character's baseline obliquity. Rotation anchor depends from style definition and an tag. Animatable by t. 文字的基线倾斜。选择方向取决于style设定和an特效。可用t实现动态效果。(曲奇 : 这里style是指style中设定对齐方法的参数(Alignment), 与an效果相同)Example 例子1. frs90frz-90frs90frz-90复制代码1. frs45frz-45fsp5frs45frz-45fsp5复制代码 Z coordinateZ坐标 z<arg>Sets z coordinate. It may be signified as a distance from screen to text. It's noticeable in case of using frx and fry tags. Animatable by t.设置Z坐标。它可能表示文字到屏幕的距离。结合frx和fry效果更显著。可用t实现动态效果。(其实和真正意义上的z轴相比效果上有偏差艾注)Example 例子1. z100t(z0frx360)a复制代码1. z100t(z0fry360)a复制代码Distortion扭曲 distort(u1,v1,u2,v2,u3,v3)Distorts text by moving corner pins to specifed relative coordinates. Animatable by t. 扭曲文字是通过移动角上坐标具体确定相对的坐标。可用t实现动态效果。 Example 例子1. distort(1,0,1.2,1,-0.2,1)distort(1,0,1.2,1,-0.2,1)复制代码1. distort(1,-0.3,1,1.3,0,1)distort(1,-0.3,1,1.3,0,1)复制代码1. distort(1,0,1.1,1,0.1,1)distort(1,0,1.1,1,0.1,1)复制代码 Boundaries deforming边界变形 rnd<arg> rndx<arg> rndy<arg> rndz<arg>Moves border points on random number of pixels from (-arg,arg) interval in selected direction. Animatable by t.在选定的区间内(-arg,arg)随机移动边界上的像素。可用t实现动态效果。Example 例子1. rrnd1rnd1rrndx1rndx1rrndy1rndy1rrndz1rndz1Nrrnd3rnd3rrndx3rndx3rrndy3rndy3rrndz3rndz3Nrrnd5rnd5rrndx5rndx5rrndy5rndy5rrndz5rndz5Nrrnd10rnd10rrndx10rndx10rrndy10rndy10rrndz10rndz10Nrrnd15rnd15rrndx15rndx15rrndy15rndy15rrndz15rndz15复制代码 Gradients渐变 $vc(left-top-color,right-top-color,left-bottom-color,right-bottom-color) $va(left-top-transparency,right-top-transparency,left-bottom-transparency,right-bottom-transparency)Creates gradients by using anchor colors or opacity levels. May be slow. Animatable by t.用颜色或透明度创建渐变。可能渲染时比较慢。可用t实现动态效果。(已修复与fad的兼容问题。调整RRGGBB为BBGGRR。$的取值1-4,分别表示主要颜色、次要颜色、边框、阴影。) Example 例子1. r1vc(00FFFF,FFFF00,FF00FF,000000)1vc(00FFFF,FFFF00,FF00FF,000000)Nr1vc(00FFFF,000000,00FFFF,000000)1vc(00FFFF,000000,00FFFF,000000)Nr1vc(FFFFFF,FFFFFF,000000,000000)1vc(FFFFFF,FFFFFF,000000,000000)Nr1vc(0000FF,000000,000000,0000FF)1vc(0000FF,000000,000000,0000FF)Nr3va(FF,FF,00,00)3va(FF,FF,00,00)Nr3va(FF,00,FF,00)3va(FF,00,FF,00)复制代码 Images instead of color fills图片替代颜色填充 $img(path_to_png_file,xoffset,yoffset)Replaces color fill with repeated image pattern. Parameters are slashed (/) path to image and optional fill's base offset. Path may be relative to current subtitle file location. First VSFilterMod loads attached images and if fails trys to find them localy. VSFilterMod supports only 24 or 32 bit truecolor pngs with or without transparency channel. Offset is animatable by t. Note that be and blur tag will not blur image but only mask which is used to place fill.替代颜色填充重复的图片图案。参数为图片路径(用(/)分隔)和可调整填充的基本偏移量。路径可能是相对于当前字幕文件的位置。首先VSFilterMod加载附加的图片,如果失败尝试在本地找到他们。VSFilterMod只支持24或32位带或不带透明通道的真彩色png格式的图片。偏移量是可用t实现动态效果。请注意be和blur不能模糊图片,只能模糊被图片填充的那个边框。Example 例子1. 3vc(&HFF00FF&,&HFFFF00&,&H00FFFF&,&HFFFFFF&)1img(D:/as.png,0,0)pos(300,250)bord10p1m -150 0 b -150 -80 -80 -150 0 -150 80 -150 150 -80 150 -1 150 80 80 150 4 150 -80 150 -150 80 -150 0p0复制代码 Polar move极限移动 mover(x1,y1,x2,y2,angle1,angle2,radius1,radius2,t1,t2)It works like move but now it's possible to use rounded, oval or spiral trajectories.它跟move的工作原理一样,但是可以实现圆形、椭圆形或者螺旋形轨迹。Example 例子 mover(10,10,60,60,0,0,0,0) it's equivalent to move(10,10,60,60). mover(10,10,60,60,0,0,0,0) 这个相当于 move(10,10,60,60). mover(0,0,0,0,-90,0,150,150) moves relatively to upper left screen corner along an arc of a circle (-90,0) with radius 150 points. mover(0,0,0,0,-90,0,150,150) 在屏幕左上角沿着一个半径为150像素的圆转过(-90,0)角度。 mover(x1,y1,x2,y2,angle1,angle2,radius1,radius2,t1,t2) 参数解释下 x1,y1,x2,y2,t1,t2就不解释了 angle1 开始时旋转角度 angle2 结束时旋转角度 radius1 开始时旋转半径 radius2 结束时旋转半径(该数值早期版本无效,后修正艾注)Spline-move曲线移动 moves3(x1,x1,x2,y2,x3,y3,t1,t2) moves4(x1,x1,x2,y2,x3,y3,x4,y4,t1,t2)It moves subtitle by spline curve trajectory. Functions with three or four base points are available, they produce cubic or bicubic Bezier curve trajectory.它用曲线轨迹移动字幕。函数可以带三或四个基点,它们产生三次或四次Bezier曲线轨迹。Shaking抖动 jitter(left,right,up,down,period,seed)It performs subtitle position shaking. First four parameters adjust maximum offset in every direction, fifth parameter sets shaking period in milliseconds, sixth parameter sets the initial seed for random number generator so the form shaking will not change upon calls. Animatable by t.它使字幕位置产生抖动。前四个参数调整在各个方向的最大偏移量,第五个参数设置在毫秒内的抖动周期,第六个参数设置为随机数发生器的初始种子,使之震动的形式保持一致。可用t实现动态效果。Moveable vector clip可移动矢量clip movevc(x1,y1) movevc(x1,y1,x2,y2,t1,t2)It moves vector clips (clip, iclip) independently to subtitles (unaffected by move or pos). Parameters are same to move. Pixel precision.它可以独立移动字幕上的矢量clip(clip, iclip)。(可同時使用move或pos)。参数和move相同。像素精度。Example 例子1. pos(80,140)movevc(0,-60,0,60)clip(m 46 84 l 120 141 146 206 188 144 268 102 155 130)Nya复制代码(本例子由yateplofizikyandex.ru提供)InstallationAndUsage 安装与使用How to install and start using this Mod.如何安装和开始使用这个模式。Aegisub 对于AegisubCopy VSFilterMod.dll to C:Program FilesAegisubcsri directory, than start Aegisub, open Options dialog, select Video tab and change Subtitle provider to csri/vsfiltermod_textsub. 复制VSFilterMod.dll到C:Program FilesAegisubcsri 目录下(这个是默认目录,具体看你安装在哪),然后运行Aegisub,打开【查看】à【选项】,选择【视频】,然后修改【字幕来自】为vsfiltermod_textsub。Important Note. Aegisub doesn't know about new override tags so it will delete or replace them with known ones when you will try to use Visual Typesetting tools. 注意事项 Aegisub不识别新选项标签,所以当你使用【可视排版】时,它可能会删除或把你输入的替换为已知项。Avisynth对于AvisynthCopy VSFilterMod.dll to default Avisynth plugins directory (C:Program FilesAvisynth 2.5plugins) or load it with LoadPlugin() function. Mod provides similar to VSFilter functions but with "Mod" suffix e.g. TextSubMod(). 复制VSFilterMod.dll到默认Avisynth插件目录(C:Program FilesAvisynth 2.5plugins)或者用LoadPlugin()函数载入。在使用ass字幕时用TextSubMod()函数。DirectShow直接使用To use VSFilterMod with video players first of all you should unregister installed version of VSFilter. Find where it's located on your disc and execute "regsvr32 /u PathtoVSFilter.dll". Then place VSFilterMod.dll to some suitable for you place and execute "regsvr32 PathtoVSFilterMod.dll". 如果想要通过播放器使用 VSFilterMod,首先你应该卸载以前的版本(这一段可以忽略)直接把VSFilterMod.dll复制到(系统盘windowssystem32)下就行了。VirtualDub使用VirtualDubCopy VSFilterMod.dll to VirtualDub plugins directory and change its extension to vdf (it should be VSFilterMod.vdf now). Then select TextSubMod from filters and work as usual.复制VSFilterMod.dll到VirtualDub插件目录,改变它的扩展名.vdf.(也就是说,它的名字现在应该是VSFilterMod.vdf)。然后选择TextSubMod,像往常一样使用即可。