4 Replies Latest reply on Dec 6, 2012 2:27 AM by indegn5

    Help!!!! Apply overprint to images.

    indegn5 Level 1

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

        • 1. Re: Help!!!! Apply overprint to images.
          milligramme Level 3

          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 Level 1

            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 Level 3

              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 Level 1

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