/** des: 反选图层
 *  source:https://github.com/ff6347/after-effects-script-snippets/blob/master/reverse-comp-selection.jsx
*/

(function(thisObj) {

    var main = function() {
      var proj = app.project;
      var curComp = proj.activeItem;
      if (!curComp || !(curComp instanceof CompItem)) {
        alert('noComp');
        return;
      }
      for(var i = 1; i < curComp.numLayers + 1; i++) {
        curComp.layers[i].selected = !curComp.layers[i].selected;
      }
    };
  
    var run = function(f) {
      f();
    };
    run(main);
  }(this));

 

您的电子邮箱地址不会被公开。 必填项已用*标注