Created
March 14, 2018 21:43
-
-
Save undavide/829737b204900e44958e4e2e6b85a1d8 to your computer and use it in GitHub Desktop.
Including a callback
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
// JS file (panel) | |
// ... | |
csInterface.evalScript('addSharpeningForWeb(' + paramString + ')', function(res) { | |
// "res" is the response that comes from Photoshop | |
}); | |
// JSX file (Photoshop) | |
function addSharpeningForWeb(paramObj) { | |
// ... lots of code here | |
return true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment