• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Help!!!! Apply overprint to images.

Guest
Dec 05, 2012 Dec 05, 2012

Copy link to clipboard

Copied

Hi everybody,

i have this script for overprinting placed photoshop images.

Can anyone alter this... so that the request is to apply overprint for .jpeg, .tiff & .bitmap formats'.

mygraphics = app.activeDocument.allGraphics;

for (aa=0; aa<mygraphics.length; aa++){

    if (mygraphics[aa].imageTypeName == "Photoshop"){

        try{

            mygraphics[aa].overprintFill = true;

            alert("Page: " + mygraphics[aa].parent.parent.name + " | Name: " + mygraphics[aa].itemLink.name);

            }

        catch(e){};

        }

    }

thanks

boby!!.

TOPICS
Scripting

Views

934

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 05, 2012 Dec 05, 2012

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 05, 2012 Dec 05, 2012

Copy link to clipboard

Copied

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.!!!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Dec 06, 2012 Dec 06, 2012

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 06, 2012 Dec 06, 2012

Copy link to clipboard

Copied

LATEST

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!!!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines