Hi,
I have 2 PMS colors on a page. They are overlapping. If you wanted to overprint or knockout the top object you would just click the box in the Illustrator 5 attribute menu. I want to do this through Applescript. I see 2 properties for the object.
1- fill overprint:(boolean) : will art beneath a filled object be overprinted?
This was by default false. Through the script I set this property to true but I do not think it is what I am looking for.
2 - knockout (disabled/Œenabled/Œinherited/Œunknown) : is the artwork used to create a knockout.
This was set to disabled. Through the script I did set this property to enabled. Will this now knock out the color below?
I created a small .ai doc for testing, which contains 2 PMS colors. I have a rectangle with the 1st color, an ellipse with the 2nd color(path Item2), and a polygon with the 2nd color(path item 3). Both 2 and 3 overlap the rectangle of the first color. I am trying to knockout the ellipse(path item 2) and let the polygon(path item 3) overprint. It seems like whatever I do makes no difference in how the ellipse prints.
Is there another way of doing it?
Any suggestion?
Thank you
Rich
local docRef
set docRef to current document
tell docRef
set fileName to name of docRef
log fileName
set pathItemProperties2 to properties of (path item 2 of layer 1 of docRef)
set knockout of pathItemProperties2 to enabled
set fill overprint of pathItemProperties2 to true
log pathItemProperties2
set pathItemProperties3 to properties of (path item 3 of layer 1 of docRef)
log pathItemProperties3
end tell
end tell
end script
-- to test
run ChangeOverprint