版面规则
提问时请注意:尽量详细描述操作过程、AVS脚本内容等,最好能写出片名,只贴图有时无法看出问题原因。
提示:发布原创内容请尽量使用附件上传。使用网盘会出现过期失效的问题,请注意。
头像
06_taro
核心会员
核心会员
帖子: 998
注册时间: 2010-09-22 18:32
来自: United Kingdom
联系: 网站

RecEval - Recursive Eval

Download: RecEval.avsi
OR
[syntax lang="avisynth" lines="f" filename="RecEval.avsi"]FUNCTION RecEval(clip c, string RecFilter, int "times"){

times = Default(times, 1)

last = c
return times > 0 ? RecEval( Eval(RecFilter), RecFilter, times-1 ) : last
}
[/syntax]

Example:
[syntax lang="avisynth" lines="f"]BlankClip(width=704, height=528)

RecEval("""Subtitle(String(times)+(times%10==1&&times%100!=11 ? "st Eval" : times%10==2&&times%100!=12 ? "nd Eval" : times%10==3&&times%100!=13 ? "rd Eval" : "th Eval"), y=times*20, font="Lucida Console", size=18)""", 25)
[/syntax]
出來的蛋痛結果:
图片

再譬如:
RecEval("AAA", 5) - 五重AAA
上次由 06_taro 在 2016-09-03 4:51,总共编辑 1 次。
つまんねー事聞くなよ!

I, personally, for me, believe (obviously sometimes) that my OS choice is right. That's me. I'm not telling you that you should believe it. Learn the facts, and the origins behind the facts, and make up your own damn mind. That's why you have one. (source)

Follow me: @06_taro

304——
为纪念伟大的宇宙史上最强压制304先生,联合国教科文组织决定,将每年的第304天,即平年的10月31日或者闰年的10月30日,定为世界304日。
头像
xiao7
帖子: 138
注册时间: 2010-09-25 16:16

Re: RecEval - Recursive Eval

\taro/

回到 “AviSynth”