Last active
March 14, 2018 21:35
-
-
Save undavide/f5e9e243f928b9012754c38c2d31e632 to your computer and use it in GitHub Desktop.
Passing primitive data as a parameter
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) | |
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