prompt for layer name
var lyrname = prompt("please give layer name"); lyrname.name = newname;
i'm prompting layer name want write layer name above code doesn't work. tried adding argument lyrname.name prompt no progress ?
do want rename existing layer or add layer. if add layer kind of layer want add. here how add new layer , name using prompt or rename layer.
var lyrname = prompt("please give layer name");
var newlayer = activedocument.artlayers.add(); // create new artlayer object
newlayer.name = lyrname; // name later reference
or rename existing activelayer
activedocument.activelayer.name= lyrname; // rename layer
More discussions in Photoshop Scripting
adobe
Comments
Post a Comment