Skip to content

Instantly share code, notes, and snippets.

@janily
Created June 6, 2020 14:12
Show Gist options
  • Select an option

  • Save janily/d7ed98346263fb523844cc62d827bfd3 to your computer and use it in GitHub Desktop.

Select an option

Save janily/d7ed98346263fb523844cc62d827bfd3 to your computer and use it in GitHub Desktop.
setValue_forKey_onLayer_forPluginIdentifier
var sketch = context.api()
var document = sketch.selectedDocument;
var selection = document.selectedLayers;
var command = context.command;
var selectedLayer = context.document.selectedLayers().firstLayer()
console.log(selectedLayer)
command.setValue_forKey_onLayer_forPluginIdentifier('chips!',
'testAgain',selectedLayer,'myplugin');
log(command.valueForKey_onLayer_forPluginIdentifier('testAgain',
selectedLayer,'myplugin'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment