Skip to content

Instantly share code, notes, and snippets.

@undavide
Last active March 14, 2018 21:35
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/f5e9e243f928b9012754c38c2d31e632 to your computer and use it in GitHub Desktop.
Save undavide/f5e9e243f928b9012754c38c2d31e632 to your computer and use it in GitHub Desktop.
Passing primitive data as a parameter
// JS file (panel)
var sharpeningStrength = 225;
csInterface.evalScript('addSharpeningForWeb(' + sharpeningStrength + ')');
// JSX file (Photoshop)
function addSharpeningForWeb(strength) {
// ... you can now use the strength param here
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment