```
// Add Parented Null to Selected Layers.jsx
// ©July 2009 Lloyd Alvarez http://aescripts.com
//
// Creates a parented null for the selected layers.
//
//
//
var proj = app.project;
var undoStr = "Add Parented Null to Selected Layers";
if (proj){
var myComp = app.project.activeItem;
if (myComp != null && (myComp instanceof CompItem)){
app.beginUndoGroup(undoStr);
var myLayers = myComp.selectedLayers;
if (myLayers.length != 0) {
var saveIn = myComp.duration;
var saveOut = 0;
var saveIndex = myComp.numLayers;
var newInpoint=myComp.duration, newOutpoint=0, myIndex=myComp.numLayers;
var newNull = myComp.layers.addNull(myComp.duration);
for (i=0; i <= myLayers.length-1; i++){
currentLayer = myLayers[i];
saveIn = (currentLayer.stretch < 0) ? currentLayer.outPoint : currentLayer.inPoint;
saveOut = (currentLayer.stretch < 0) ? currentLayer.inPoint : currentLayer.outPoint;
saveIndex = currentLayer.index;
if (saveIn < newInpoint) {newInpoint = saveIn}
if (saveOut > newOutpoint) {newOutpoint = saveOut}
if (saveIndex < myIndex) {myIndex = saveIndex}
currentLayer.parent = newNull;
}
newNull.moveBefore(myComp.layer(myIndex));
newNull.inPoint = newInpoint;
newNull.outPoint = newOutpoint;
app.endUndoGroup();
} else {
alert("Please select at least one layer");
}
} else {
alert("Please select an active comp to use this script");
}
}
else
{
alert("Please open a project first to use this script.");
}
```
- 脚本管理器
- 读取文件夹内文件
- 层层时间线偏移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内容替换字幕脚本