Skip to content

Instantly share code, notes, and snippets.

@getflourish
Created May 29, 2015 17:14
Show Gist options
  • Select an option

  • Save getflourish/f86ecf58d427c81f99d3 to your computer and use it in GitHub Desktop.

Select an option

Save getflourish/f86ecf58d427c81f99d3 to your computer and use it in GitHub Desktop.
replace partial in sketch layer selection
for (var i = 0; i < context.selection.count(); i++) {
var layer = context.selection[i];
var name = layer.name();
layer.setName(name.replace("Schwarz", "Orange"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment