Forum Replies Created

Page 2 of 2
  • Got the solution
    Coding is little rough but its worked

    Thanks

    app.beginUndoGroup("Dublicate Layers");

    var thisComp = app.project.activeItem;
    var activeItem = app.project.activeItem;
    var activeLayers = activeItem.layers;
    var d = app.project.activeItem.selectedLayers[0].index;

    for (var i = 0; i < thisComp.selectedLayers.length; i++){
    curLayer = thisComp.selectedLayers[i].duplicate();
    app.project.activeItem.layer(d).moveBefore(app.project.activeItem.layer(d+4));

    }

    app.endUndoGroup();

  • Palak Bhatt

    July 24, 2020 at 8:15 am in reply to: How to find the selected layer index number?

    Love you so much. Thank you
    Its worked like a charm.. Very Glad

Page 2 of 2

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy