Permalink
Browse files

NEW: Add suffix to layer name

  • Loading branch information...
bomberstudios committed Jan 23, 2014
1 parent 9947c34 commit 0a176fd1e2b937668a6f93013ca5b7481988e562
Showing with 10 additions and 0 deletions.
  1. +10 −0 Commands/Layers/Add Suffix to Layer Name.jsf
@@ -0,0 +1,10 @@
+/**DOC**
+Asks for a suffix, and adds it to the end of the current layer name
+**DOC**/
+
+var current_layer = fw.getDocumentDOM().layers[fw.getDocumentDOM().currentLayerNum],
+ suffix = prompt("Suffix:","");
+
+if(suffix){
+ fw.getDocumentDOM().setLayerName(-1, current_layer.name + suffix);
+}

0 comments on commit 0a176fd

Please sign in to comment.