Skip to main content
Participant
October 23, 2020
質問

Is there a way to automate making gradients? Preferably for a csv or txt file

  • October 23, 2020
  • 返信数 2.
  • 1073 ビュー

Hi! I'm working on a little app for myself that can help me make a gradient and export it into photoshop. Only problem is that photoshop uses .grd files for gradients and I can't find any info on how to code a grd, what the format is or how to convert a more accessible file format (ie. SVG) into a grd file. If I can't figure out how to automate the process I'll have to make a gradient by hand every time, which seems really annoying if I want to make a bunch of gradients that are only slightly different (ie. different shades of blue by 5% value increases etc).

Is there a way to automate making gradients? Maybe with scripting? Any help would be wonderful. 

このトピックへの返信は締め切られました。

返信数 2

Participant
October 23, 2020

If you only want to change the basics (position, startcolor, endcolor) you can use scriptlistener code.

Wrap and parametrize the result from scriptlistener inside a function.

It wont be as flexible as GRD files, but it's good enough for the simple stuff.

 

If you require changing the fancy bells and whistles like gradient type, dithering, opacity, amount of colors, ... you're best off using Semaphoric's second link about programming.

Semaphoric
Community Expert
Community Expert
October 23, 2020

The file format for .GRD files can be found here. Some information about programmining it can be found here.