Git Product home page Git Product logo

illy-grad's Introduction

Illy Grad

Create gradient from selected swatches in Adobe Illustrator.

Installation

Use the below single-line Unix bash command to quickly install this script into your Illustrator Scripts folder.

bash <(curl -sL https://git.io/vrsJX)

Alternatively, you can download [Gradient from Swatches.jsx](Gradient from Swatches.jsx) into your Illustrator Scripts folder, located in the /lllustrator CC/Presets folder in your lllustrator CC installation directory.

The script’s filename, minus the file extension, will appear in the Scripts menu.

Run the script from the scripts menu in Illustrator.

Voilà!

Usage

  1. Open the script
  2. Select swatches
  3. Click “Make Gradient”

Thanks

Big ups goes out to @moluapple for the scripting help. :octocat:


To the extent possible under law, @mhulse has waived all copyright and related or neighboring rights to this work.

:octocat:

illy-grad's People

Contributors

mhulse avatar

Stargazers

 avatar  avatar Edis avatar Alvin Yeung avatar Danny Englander (he/him) avatar  avatar  avatar  avatar

Watchers

 avatar James Cloos avatar Alvin Yeung avatar

illy-grad's Issues

Update comment

// IMPORTANT! This MUST return a non-cached `activeDocument` result on each
// call due to the way Illustrator palettes communicate with the target app.

This comment isn't exactly true. I think it can be just as simple as:

_private.doc = $application.activeDocument;

Remove "root"

As the this may not always be what I expect. If I drop it, then things like app or prompt will function normally.

Does not work in Illustrator 2021

After releasing the "make gradient" button nothing happens on OS X and Illustrator 2021, but the button stays activated > blue....

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.