Quantcast
Channel: Adobe Community : Discussion List - After Effects Scripting
Viewing all articles
Browse latest Browse all 2143

Use the text from Edittext as layer name?

$
0
0

I am building my own prompt() window for a script, but can't figure out how to use the text from the text field.

What i want to do is to use the text as the layer name.


Is there any input method or something i can use for this?



Custom prompt();


var promptWin = new Window ("dialog", "Pre-compose name");

 

var promptInputGroup = promptWin.add ("group");

promptInputGroup.add ("statictext", undefined, "Name:");

 

 

var textFiled = promptInputGroup.add ("edittext", undefined, "Pre-comp");

textFiled.characters = 20;

textFiled.active = true;

 

 

var groupTwo = promptWin.add("group", undefined, "GroupTwo");

     groupTwo.orientation = "row";

     var okDialog = groupTwo.add("button", undefined, "OK",);

     var cancelDialog = groupTwo.add("button", undefined, "Cancel",);

     groupTwo.alignment = "right";

 

 

promptWin.show ();

 

 

 

 

 

JesB


Viewing all articles
Browse latest Browse all 2143

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>