trimLayerIOPoint.jsx
功能:批量裁剪图层出入点至目标图层出入点。
注意:最后选择的图层即为目标图层。
下载链接:
百度网盘
提取码:vig4
详细代码:
function trimLayerIOPoint(){
app.beginUndoGroup('trimLayerIOPoint');
var curComp = app.project.activeItem;
if ((curComp != null) && (curComp instanceof CompItem)) {
var selLayers = curComp.selectedLayers;
var lastSelLayer;
var tarInPoint, tarOutPoint;
var tarIndex = selLayers.length-1;
lastSelLayer = selLayers[tarIndex];
tarInPoint = lastSelLayer.inPoint;
tarOutPoint = lastSelLayer.outPoint;
for (var i = 0; i < (selLayers.length - 1); i++){
var curLayer = selLayers[i];
curLayer.inPoint = tarInPoint;
curLayer.outPoint = tarOutPoint;
} else {
alert("Please select layers to offset");
app.endUndoGroup();
trimLayerIOPoint();
特别声明:以上内容(如有图片或视频亦包括在内)为自媒体平台“网易号”用户上传并发布,本平台仅提供信息存储服务。
Notice: The content above (including the pictures and videos if any) is uploaded and posted by a user of NetEase Hao, which is a social media platform and only provides information storage services.