Created
June 6, 2020 14:12
-
-
Save janily/d7ed98346263fb523844cc62d827bfd3 to your computer and use it in GitHub Desktop.
setValue_forKey_onLayer_forPluginIdentifier
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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