Use shortcut keys to quickly replace multiple keyword texts (quickly replace AE script code)

First of all, the tool that needs to be used:
Please add a picture description

Baidu
password: qwu2
blue cloud
password: 2r1z

Here is the script rule in AE (Adobe After Effect), replace English with Chinese, as follows

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. Open the tool, enter the text replacement module, write the rule, then right click on the rule, click "execute as reference", pay attention, do not close the tool, you need to use the shortcut key of the tool 2. Go back to AE, select all the corresponding script code and copy it Ctrl+
Please add a picture description
CPlease add a picture description
Please add a picture description

3. Then press Ctrl+Shift+R, the replacement has been approved at this time, and then Ctrl+V to paste
Please add a picture description

Please add a picture description
4. Done

Guess you like

Origin blog.csdn.net/yy779587715/article/details/119083918