Is it possible to have the color of an object as a Variable? In my particular case I want to change the color of a rectangle with my datasets.

  • @Ovaryraptor thanks for answering. Where do you put that switching statement? is it some kind of scripting? thanks
    – Nico
    Commented Jan 11, 2018 at 18:19
  • I didn't read your question correctly. helpx.adobe.com/illustrator/using/… might help you in the right direction. Commented Jan 11, 2018 at 19:56

1 Answer 1


Please see my LinkedIn article here: https://www.linkedin.com/pulse/illustrator-variable-data-advanced-techniques-recoloring-vasily-hall/

It describes the usage of a menu-item script in the batch action which processes each dataset with a custom routine which colorizes shapes. The script called "Recolor.jsx" takes variable data from text frames associated with a variable field and uses it as a parameter for its function in setting document object colors. You can make creative uses of all the various application methods and their parameters.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.