stroke of multiple color vs single color

I am working on a project where i need to draw several trees and plethora of leaves of multiple colors.

As it is a time consuming approach so i set an action where the action is set to change stroke into fill.
Workflow was fine as long as stroke color were same.

But as am mixing several color leaf this action is not working anymore. Manually i have to change each stroke into fill.

And if i apply magic wand some other portion of trees get selected.

Why the action is not working for multiple color strokes??
enter image description here


Perhaps try a different approach. You could create multiple coloured leaves using a script to randomly fill with some chosen colour swatches.

There’s a free Random Swatches Fill script here. I have no connection with the website or the script developer.

I tested the script in CC 2018 and it still works. However to use it in CC versions you will need to change the file extension from .js to .jsx, and put it in your Illustrator Scripts folder.

  1. Draw a bunch of leaves. If you drew them with a brush like I did, select them all and click Object > Expand Appearance, so that they are just filled shapes. Make sure they are all ungrouped

  2. Select all

  3. In the Swatches panel, make sure to activate the Fill option, then hold down Ctrl/Command and make a multiple selection of all the swatches you want to use.

  4. click File > Scripts > RandomSwatchesFill

enter image description here

In case the link above ever rots, here’s an additional link to what appears to be the origin of the script.

Source : Link , Question Author : Suraiya Abedin , Answer Author : Billy Kerr

Leave a Comment