Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Remove hidden properties and effects

  • Brendon Murphy

    October 3, 2020 at 2:55 am

    Not quite sure what you’re asking. You can twirl down all the properties for your shape layer in the timeline. Select each one you don’t want and press “delete”. For effects, select the unwanted effect in the “effect controls” panel and press “delete”.

  • Antoine Dupont

    October 3, 2020 at 10:51 am

    Sorry for not being clear.

    I’m looking for a script that does that.

  • Dan Ebberts

    October 3, 2020 at 6:08 pm

    How does the script know what to delete?

  • Brendon Murphy

    October 3, 2020 at 6:56 pm

    I think I get what you mean. I had a few minutes to get you started – this script will delete all disabled effects on selected layers.

    app.beginUndoGroup(“Delete Hidden”);

    var activeComp = app.project.activeItem;

    var allLayers = activeComp.selectedLayers;

    var numLayers = allLayers.length

    var layerCheck = allLayers[0];

    //make sure something’s selected

    if (!layerCheck ) {

    alert(“Please select layers inside the active comp.”);

    } else {

    //CYCLE THROUGH LAYERS

    for (var f =0; f <= activeComp.numLayers-1; f ++) {

    var currLayer = allLayers[f];

    var numEffects = currLayer.Effects.numProperties;

    var removeThese = [];

    for (var i =1; i <= numEffects; i ++) {

    var currEffect = currLayer.effect(i);

    if (currEffect.enabled ==false){

    removeThese.push(currEffect.name);

    //currEffect.remove();

    };//end if statement

    };//end effects loop

    for (var j =0; j <removeThese.length; j ++) {

    var currentRemoval = removeThese[j];

    currLayer.effect(currentRemoval).remove();

    };

    };//end layers loop

    };

    app.endUndoGroup();

  • Antoine Dupont

    October 17, 2020 at 7:06 am

    Thank you very much!

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