Convert rich blacks to flat black
Finds all items with enhanced blacks in the artwork and changes their color to flat black.
It has no prompts because it should work inside a Batch action.
Save the file and drop it onto the artboard. Or copy it to Illustrator's Scripts folder and launch it from File > Scripts
Default settings are to flatten any color with more than 90%K and 300% coverage.
To change this limit open the .jsx file in a text editor and change var maxBlack = 95
and var minCoverage = 300
to your desired values.
You can add this to an action by using Insert Menu Item. Then save your action to an .aia file ( ▾☰ > Save Actions... ).
- Fix Target layer cannot be modified error – locked layers support
When trying to run the script I get the following error:
I use Adobe Illustrator CC 2017.1.0 Release (21.1.0).
edit: somehow the getCoverage function is not being added to CMYKColor. I got it working by moving the function to CMYKColor.getCoverage (static function) and change the calls.