Skip to main content
Participating Frequently
July 14, 2011
Question

How to remove overprint fill associated with paths as well as the parent group?

  • July 14, 2011
  • 1 reply
  • 2036 views

Hello Everyone,

I just found out that I had posted my original post in the wrong area, woops!

I have no scripting experience and have run into a problem. I have overprint fill messing up my psd exporting, and have found a script that easily removes all of these. However, our large, old complicated files have attributes associated to the actual group, which of course is still messing everything up because the script isn't removing overprint fill that is set on the group, only on the paths. Is there any way to adjust the script to search for the attributes associated to the groups and remove them all? I wouldn't even know where to begin!

Thanks if you can help out.

- Blueberry Pi.

This topic has been closed for replies.

1 reply

Praveen Shanmugam
Known Participant
July 14, 2011

Hi, Try this...!!!

var doc = documents[0];
//for pathItems in document
var pgItm = doc.pageItems;
for (var i = 0; i < pgItm.length; i++){      
    if(pgItm.strokeOverprint == true){
        pgItm.strokeOverprint =false; iCounter++;
        }
    if(pgItm.fillOverprint == true){
        pgItm.fillOverprint =false; iCounter++;
        }
}
//for textItems in document
for ( i = 0; i < app.activeDocument.textFrames.length; i++ ) {
    var textframe = app.activeDocument.textFrames.textRange;
    if(textframe.overprintFill == true){
        textframe.overprintFill = false;iCounter++;
    }
    if(textframe.overprintStroke == true){
        textframe.overprintStroke = false;iCounter++;
    }
}


It runs through all text and path items in the document and removes them.

Hope this is helpful for u..

---

Praveen

Pi19_2Author
Participating Frequently
July 14, 2011

Thanks Praveen, it works but unfortunately it doesn't remove the overprint on the actual group. I'll attach a screen shot to show you.

So, all of these paths and paths in the groups above have the overprint removed perfectly using the script you gave. However, it fails to find and remove the overprint that has snuck in on the group that I have underlined in red. All of the paths within that group are overprint-free.

I know we shouldn't have those useless groups to begin with and our new files don't; but when working with old files that we have we make do and go for speed rather than quality.

But hey I'm a designer and not production and if we have to ungroup them all then so be it! Production can just deal with it.

Praveen Shanmugam
Known Participant
July 14, 2011

Hi BlueBerry,

Me too a designer, Just interested in these stuff.. Thats why i'm twisting my mind lot.... lol.

So whats special with that group? just with normal pathItems or with effects and all?

---

Praveen