-
1. Re: Help!!!! Apply overprint to images.
milligramme Dec 5, 2012 5:52 PM (in response to indegn5)Hi
Maybe.. what you want to do is appling BlendMode Multiply?
"overprintFill" property is appear in ImageObject but not works fine,
it will be effective to "Fill" or "Stroke" of the object, not for Placed Image.
Try this code.
var mygraphics = app.activeDocument.allGraphics;
for (aa=0; aa<mygraphics.length; aa++){
switch(mygraphics[aa].imageTypeName){
case "TIFF":
case "JPEG":
case "Photoshop":
try{
mygraphics[aa].transparencySettings.blendingSettings.blendMode = BlendMode.MULTIPLY;
alert("Page: " + mygraphics[aa].parent.parent.name + " | Name: " + mygraphics[aa].itemLink.name);
}
catch(e){};
break;
default: break;
}
}
thankyou
mg.
-
2. Re: Help!!!! Apply overprint to images.
indegn5 Dec 5, 2012 9:22 PM (in response to milligramme)Hi mg.
I tweaked a little bit. it works what i need,.. thanks for your help...
but again i need your input again, on this to apply overprint only for the 100% black tiff images.
is that possible.... thanks in advance.
var mygraphics = app.activeDocument.allGraphics;
for (aa=0; aa<mygraphics.length; aa++){
switch(mygraphics[aa].imageTypeName){
case "TIFF":
case "JPEG":
case "Photoshop":
try{
mygraphics[aa].overprintFill = true;
alert("Page: " + mygraphics[aa].parent.parent.name + " | Name: " + mygraphics[aa].itemLink.name);
}
catch(e){};
break;
default: break;
}
}
thanks
boby.!!!!
-
3. Re: Help!!!! Apply overprint to images.
milligramme Dec 6, 2012 1:29 AM (in response to indegn5)Hi
I dont know to get differnce between color-Tiff and black/white-Tiff easily.
This code below set blendmode.multiply to color-tiff, overprintFill to b/w-tiff.
please try this.
var mygraphics = app.activeDocument.allGraphics;
for (aa=0; aa<mygraphics.length; aa++){
switch(mygraphics[aa].imageTypeName){
case "TIFF":
// 1st try
try{
// will pass b/w tiff
mygraphics[aa].overprintFill = true;
// dont apply 2nd try
break;
}
catch(e){};
// 2nd try
try{
// will pass only color tiff
mygraphics[aa].transparencySettings.blendingSettings.blendMode = BlendMode.MULTIPLY;
}
catch(e){};
break;
case "JPEG":
case "Photoshop":
try{
mygraphics[aa].transparencySettings.blendingSettings.blendMode = BlendMode.MULTIPLY;
}
catch(e){};
break;
default: break;
}
}
thankyou
mg.
-
4. Re: Help!!!! Apply overprint to images.
indegn5 Dec 6, 2012 2:27 AM (in response to milligramme)thanks mg..
thanks for your script, it works well..
it applies only to the b/w tiffs. i'm intended to do this......
var myDocument = app.documents.item(0);
var mygraphics = app.activeDocument.allGraphics;
for (aa=0; aa<mygraphics.length; aa++){
switch(mygraphics[aa].imageTypeName){
case "TIFF":
mygraphics[aa].fillColor = myDocument.colors.item("Black");
mygraphics[aa].fillTint = 100; //then apply overprint
mygraphics[aa].overprintFill = true;
}
}
so i really need the overprint to be applied on Black 100% tint only,,, if it is 99%, overprint should not apply....
thanks for putted your valuable effort on this and advance thanks... to receive correction on my request.....
thanks
bobby!!!!

