[CS5] [JS]-Gradient Feather with Gradient Stops Question
Hello,
Have any of you ever scripted applying a Gradient Feather with Opacity Gradient Stops. If so, I would appreciate you assistance. I'm trying to apply multiple effects to objects. I can apply the gradient feather but I am having issues with the stops.
//Inner Glow settings from milligramme var obj=app.activeDocument.selection[0]; $.writeln(obj.transparencySettings.innerGlowSettings.properties.toSource().replace(/,/g,",\n")); with (obj.transparencySettings.innerGlowSettings){ applied = true; blendMode = 1852797549/*BlendMode.NORMAL*/; opacity = 100; noise = 0; effectColor = "Paper"; technique = 2020618338/*GlowTechnique.PRECISE*/; spread = 79; size = '0.125in'; source = 2020618594 /*InnerGlowSource.EDGE_SOURCED*/; } //Directional Feather settings, based off milligrammes script var obj=app.activeDocument.selection[0]; $.writeln(obj.transparencySettings.directionalFeatherSettings.properties.toSource().replace(/,/g,",\n")); with (obj.transparencySettings.directionalFeatherSettings){ applied = true; angle = 46; noise = 0; chokeAmount = 49; followShapeMode = FollowShapeModeOptions.ALL_EDGES; bottomWidth = '0.25in'; topWidth = '0.125in' rightWidth = '0.6in' leftWidth = '0in' } // Gradient Feather Settings, PLEASE HELP var obj=app.activeDocument.selection[0]; $.writeln(obj.transparencySettings.gradientFeatherSettings.properties.toSource().replace(/,/g,",\n")); with (obj.transparencySettings.gradientFeatherSettings){ applied = true; angle = 90; type = 1635282023/*GradientType.LINEAR*/; // GradientStop settings go here??????? }
I am not grasping how I am supposed to get the values of the Gradient stops into the script. If you can help me with this, you can use any stop settings you have. Any help would be greatly appreciated.
Thank you very much,
Danny