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.