Skip to content

Instantly share code, notes, and snippets.

@undavide
Last active April 3, 2018 19:46
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/505fa755d2b40b75743466c914cb73f2 to your computer and use it in GitHub Desktop.
Save undavide/505fa755d2b40b75743466c914cb73f2 to your computer and use it in GitHub Desktop.
Interpolating parameters
// JS file (panel)
var sharpeningStrength = 225,
highlightsProtection = 50,
midtonesProtection = 15,
shadowsProtection = 0,
oldAlgorithm = false,
copyrightString = "© John Doe 2018"
csInterface.evalScript('addSharpeningForWeb(' +
sharpeningStrength + ', ' +
highlightsProtection + ', ' +
midtonesProtection + ', ' +
shadowsProtection + ', ' +
oldAlgorithm + ', ' +
copyrightString + ')');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment