1. 程式人生 > 其它 >使用快捷鍵的方式把多個關鍵字文字快速替換(快速替換AE指令碼程式碼)

使用快捷鍵的方式把多個關鍵字文字快速替換(快速替換AE指令碼程式碼)

首先,需要用到的這個工具(下載地址看其他文章):

這裡做AE(Adobe After Effact)裡的指令碼規則,把英文替換成中文,如下

swap= thisComp.layer(“Segment settings”).effect("%")(“Checkbox”);
if(swap==true){s=thisComp.layer(“Segment settings”).effect(“Segment 1”)(“Slider”)
Math.round(s)*1+"%"}else{s=thisComp.layer(“Segment settings”).effect(“Segment 1”)(“Slider”)
Math.round(s)*1}

swap= thisComp.layer(“Segment settings”).effect("%")(“複選框”);
if(swap==true){s=thisComp.layer(“Segment settings”).effect(“Segment 1”)(“滑塊”)
Math.round(s)*1+"%"}else{s=thisComp.layer(“Segment settings”).effect(“Segment 1”)(“滑塊”)
Math.round(s)*1}

1、開啟工具,進入文字替換模組,寫好規則,然後在該規則上右鍵,點選“以此參照執行”,注意,不要關閉工具,需要使用工具的快捷鍵

2、回到AE,把對應的指令碼程式碼全選複製一下Ctrl+C

3、然後按下Ctrl+Shift+R,此時已經已經批了替換完畢,再Ctrl+V貼上

4、就搞定了