doingScripting

Syntax

bool doingScripting

Definition

doingScripting is true if the filter is running via Photoshop's scripting mechanisms, and false if the filter is applying the effect to the image in the host program (with or without a dialog).

With the doingScripting variable you can check if the filter is running in scripting mode (ie without a UI dialog window, with parameters passed directly from Photoshop).

Example

if (doingScripting) {
  // get scripting parameters here
}
else {
  if (doingProxy) {
    // Code for managing UI dialog
  }
}

// Image processing code here

See Also

Constants, doingProxy