ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

ExtendScript - Populate text and effect

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
chase wells
ExtendScript - Populate text and effect
on Oct 11, 2019 at 12:04:27 am


I'm very new to extendscript and was wondering if somebody could give me a quick hand.

I'm trying to accomplish a script that you can click a button which populates text with an effect added to it.

I was able to piece together a button and populate text but am unable to assign any effects to it. Below is the script i used.

var myWin = new Window("palette", "My Window",undefined);

var closeGroup = myWin.add("group", undefined, "GroupOne");

var closeButton = closeGroup.add("button", undefined, "Click Me");;;

closeButton.onClick = function(){
app.project.item(1).layers.addText("TEST TEXT");

Any help would be greatly appreciated.

Return to posts index

Tomas Bumbulevičius
Re: ExtendScript - Populate text and effect
on Oct 14, 2019 at 9:41:33 am

Hey Chase, what your current script does - it adds a text layer.

However, what you do ask for - to populate text and effect (what effect?) added to it.

Please let us know the following:
1. By populate text, you want 'text layer's' text value to be shown in a dialog?
2. What effects you refer to? Is it effects applied to a layer, or layer effects, or anything else?

This will help to narrow it down.

Find out more:
After Effects Tutorials: motion design, expressions, scripting.
Boxer - Dynamic Text Boxes Template with a Live Preview

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 All Rights Reserved