```
//讀取txt文檔
var path = "D:/編輯0000文字.txt";
var myFile = new File(path);
if (myFile != null)
{
// open file
var fileOK = myFile.open("r");
if (fileOK){
var text;
var arrayText = new Array();
while (!myFile.eof){
text = myFile.readln();
if (text == "")
text = "\r" ;
arrayText.push(text);
}
// close the file before exiting
myFile.close();
}
else{
alert("文件打開失敗!");
}
}else{
alert("請先選擇txt文件.");
}
```
- 腳本管理器
- 讀取文件夾內文件
- 層層時間線偏移Sequencer.jsx
- 層層隨機時間偏移
- 文字分離char_separate_1.3
- 分解文字 把一個文字層分成若干個文字層
- 快速導入Smart Import
- 查找與替換字符 Find and Replace Text.jsx
- 層改名Selected_Layers_Renamer.jsx
- 創建燈光為選擇的三維層.jsx
- 創建攝像機為選擇的三維圖層.jsx
- 創建調節圖層CreateTrimmedAdjustmentLayer.jsx
- 創建調節圖層多個CreateSeveralTrimmedAdjustmentLayers.jsx
- 創建一個空物體到選擇的層Add Parented Null to Selected Layers.jsx
- 文字分離DecomposeText
- 修改渲染輸出文件位置Change Render Locations
- AE腳本讀取txt文檔并寫入數組
- AE腳本把數組寫入到txt文檔中
- AE提取字幕腳本
- AE批量用txt內容替換字幕腳本