Skip to content

Instantly share code, notes, and snippets.

@undavide
Created March 14, 2018 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save undavide/829737b204900e44958e4e2e6b85a1d8 to your computer and use it in GitHub Desktop.
Save undavide/829737b204900e44958e4e2e6b85a1d8 to your computer and use it in GitHub Desktop.
Including a callback
// 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