【AE脚本】基于选择顺序 把图层首尾相连

【AE脚本】基于选择顺序 把图层首尾相连

/*
written for this stackoverflow question
http://stackoverflow.com/questions/24115505/after-effects-composition-start-time-on-timeline/24117772#24117772
*/
function fun() {
  app.beginUndoGroup('XXX');
  var curComp = app.project.activeItem;
  if (!curComp || !(curComp instanceof CompItem)) {
    alert('选个合成行不行');
    return;
  }
  selLayers = curComp.selectedLayers
  if(selLayers.length < 3) {
    alert('多选点图层行不行');
    return;
  }

  for (var i = 1; i < selLayers.length; i++) {
    selLayers[i].startTime = selLayers[i-1].outPoint  - (selLayers[i].inPoint - selLayers[i].startTime);
}
  app.endUndoGroup();

}

fun();

 

给TA充电
共{{data.count}}人
人已充电
AE开发脚本开发

【AE脚本】基于图层位置 从左到右排序图层

2021-9-4 0:43:16

AE开发脚本开发

【AE脚本】设置所有渲染队列的输出文件夹

2021-9-4 1:30:40

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
今日签到
搜索