Answered
How to select a gradient by name
To select a graidnet for a pathItem in a layer I would do this:
colLayer.fillColor = gradColor;gradColor being a new GradientColor()
How would I be able to select a preexisitng gradient to fillColor?
In example using:
app.activeDocument.gradients[0]So something like:
colLayer.fillColor = app.activeDocument.gradients[0]