Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Giving Opacity the same value as fill color (Inverting Opacity/Fill)

$
0
0

I am looking to add a script that would take the fill value of swatches in my art file, and apply those values to the opacity of each swatch.  I would also like to be able to adjust the fill value to be 100% when finished.  I have a javascript that I thought would work, but it has no effect on any of the objects in the file.

 

Example:

Original Art: Object 1: Fill 50%, Opacity 100% // Object 2: Fill 60%, Opacity 100%

Desired Result: Object 1: Fill 100%, Opacity 50% // Object 2: Fill 100%, Opacity 60%

 

Any help would be much appreciated.


Viewing all articles
Browse latest Browse all 12845


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>