-
ExtendScript – Populate text and effect
Greetings!
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”);
myWin.center();
myWin.show();closeButton.onClick = function(){
app.project.item(1).layers.addText(“TEST TEXT”);
}
Any help would be greatly appreciated.