Skip to main content
Legend
Nov 4, 2024 12:22 AM UTC
Open for Voting

[BUG] Extendscript duplicated effect

In After Effects 2025 and Beta, under certain circumstances, when adding an effect to a layer from an external composition using ExtendScript, the effect is duplicated, and the effects panel is activated even though the layer’s composition is not active.

 

code used in the video:

function comp(name) {
    for (var i = 1; i <= app.project.numItems; i++) {
        if (app.project.item(i) instanceof CompItem &&
            app.project.item(i).name == name) {
            return app.project.item(i);
        }
    }
    return null;
}

function addShape(){
    var shapeLayer = comp("Comp 2").layers.addShape();
    shapeLayer.name = "Shape Layer";
   var shapeGroup = shapeLayer.property("ADBE Root Vectors Group").addProperty("ADBE Vector Group");
}

function addEffect(){
    //comp("Comp 2").openInViewer();
    comp("Comp 2").layer(1).Effects.addProperty("ADBE Point Control").name = "Position";
}

addShape();
//addEffect();

 

BONUS:

It may not be a bug, but it can be confusing.

When you lock 2 viewers (Comp 1 and Comp 2), you can have Composition 2 active in the viewer while Composition 1 is active in the timeline.

When the viewers are not locked, there is no confusion

 

This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Community Manager
Nov 7, 2024 8:51 PM UTC

Hello @Airweb_AE,

Thanks for bringing this up. I have added a new bug to our backlog to priortize this.

As for your bonus, I would say that is not a bug, and is expected behavior. 
I know it is documented here: Project object — After Effects Scripting Guide 22.3.0 documentation (docsforadobe.dev)
And we could expand on that description. Is that where you get your information for the scripting accessors?

All the best,
AE Engineering

Translate
Jessica McMillan - AE Engineering