Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[BUG] Extendscript duplicated effect

Advocate ,
Nov 03, 2024 Nov 03, 2024

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.

screenshot.png

When the viewers are not locked, there is no confusion

 

Bug Acknowledged
TOPICS
Scripting
143
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Pinned Reply

Adobe Employee , Nov 07, 2024 Nov 07, 2024

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

Status Acknowledged
Translate
1 Comment
Adobe Employee ,
Nov 07, 2024 Nov 07, 2024
LATEST

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

All the best,
Jessica McMillan - AE Engineering
Status Acknowledged
Translate
Report