Skip to main content
Michael Domino
Inspiring
February 18, 2021
Answered

Gradient from 2 swatches?

  • February 18, 2021
  • 2 replies
  • 567 views

I often need to make a gradient from two colours in my drawing or from my swatches.

I know how to do it from the gradient panel, but I think it is a lot of "clickwork", if you do it as often as I do.

I would like to be able to select colour from two different objects and then with at click make a gradient from these two to drop onto a third object. (Sounds simple :·)

 

I came across an old script, that should do something like this, but it was not up to date. (https://github.com/mhulse/illy-grad)

Does anyone know of such a script?

Thank you for your time

++michael

This topic has been closed for replies.
Correct answer Ton Frederiks

That script works fine for me.

Run the script (from File > Script > Other Script...)

Create a rectangle, Cmd (or Ctrl for Win) click some swatches in the Swatches panel.

Click Make Gradient.

Select the gradient in the Swatches panel.

2 replies

Ton Frederiks
Community Expert
Community Expert
February 18, 2021

Good to hear that you've got it working.

Ton Frederiks
Community Expert
Ton FrederiksCommunity ExpertCorrect answer
Community Expert
February 18, 2021

That script works fine for me.

Run the script (from File > Script > Other Script...)

Create a rectangle, Cmd (or Ctrl for Win) click some swatches in the Swatches panel.

Click Make Gradient.

Select the gradient in the Swatches panel.

Michael Domino
Inspiring
February 18, 2021

Ahh - thankyou - now it works :·) - I hadn't saved the script properly. !