Script to select the Items by color and move to the respective layer
- April 23, 2022
- 2 replies
- 1030 views
Hello All,
I was trying to write the script to select the Items (GroupItems, CompoundPathItems, text, and PathItems) based on the color in a particular layer and also to move the selected items to the defiened layer. But I am not unable to figure out the script, i am not getting the exact concept to do this.
For Example:
1. I have a document "Sample.eps", in that there are two layers namely "FPO" and "Artwork".
2. Also only two spot colors are used in the document namely "PANTONE Black C" and "Keyline Blue".
3. Both text and path items are there in those two layers.
My aim is to move the "Keyline Blue" colored Items and Text from the Artwork layer to FPO Layer.
Also to move the "PANTONE Black C" colored Items and Text from the FPO layer to Artwork Layer.
I am attaching the sample file too.
This Activity, I need to do for multiple files repeatedly. Please help me to overcome this scenario.
