Advertisement
rsidwell

SetColoring.jwfscript

Feb 8th, 2020
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.50 KB | None | 0 0
  1. /* Set the items on the Coloring tab for the current flame.
  2.    The initial values below are the same as clicking Reset;
  3.    change to the desired settings to customize the script.
  4.  */
  5.  
  6. import org.jwildfire.create.tina.base.Flame;
  7. import org.jwildfire.create.tina.base.BGColorType;
  8. import org.jwildfire.create.tina.script.ScriptRunnerEnvironment;
  9.  
  10. public void run(ScriptRunnerEnvironment pEnv) throws Exception {
  11.   // Get the current flame (create a new one if needed)
  12.   Flame flame = pEnv.getCurrFlame();
  13.   if(flame==null) {
  14.     Flame flame=new Flame();
  15.   }
  16.  
  17.   flame.setBrightness(4.0);
  18.   flame.setLowDensityBrightness(0.24);
  19.   flame.setGamma(4.0);
  20.   flame.setGammaThreshold(0.01);
  21.   flame.setContrast(1.0);
  22.   flame.setBalanceRed(1.0);
  23.   flame.setBalanceGreen(1.0);
  24.   flame.setBalanceBlue(1.0);
  25.   flame.setWhiteLevel(220);
  26.   flame.setVibrancy(1.0);
  27.   flame.setSaturation(1.0);
  28.   flame.setBgColorType(BGColorType.GRADIENT_2X2_C);
  29.   flame.setBgColorULRed(0);
  30.   flame.setBgColorULGreen(0);
  31.   flame.setBgColorULBlue(0);
  32.   flame.setBgColorURRed(0);
  33.   flame.setBgColorURGreen(0);
  34.   flame.setBgColorURBlue(0);
  35.   flame.setBgColorLLRed(0);
  36.   flame.setBgColorLLGreen(0);
  37.   flame.setBgColorLLBlue(0);
  38.   flame.setBgColorLRRed(0);
  39.   flame.setBgColorLRGreen(0);
  40.   flame.setBgColorLRBlue(0);
  41.   flame.setBgColorCCRed(0);
  42.   flame.setBgColorCCGreen(0);
  43.   flame.setBgColorCCBlue(0);
  44.   flame.setBGImageFilename("");
  45.   flame.setForegroundOpacity(1.0);
  46.   flame.setBGTransparency(false);
  47.  
  48.   pEnv.refreshUI();
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement