9 Replies Latest reply on Apr 5, 2016 4:06 AM by tpk1982

    Find text Tint Value

    tpk1982 Level 4

      Hi All,

       

      I need to check whether any character have opacity.  I tried the following codings, but it shows all characters as error.

       

      var myframe = app.activeDocument.textFrames;  
      for(i=0; i<myframe.length; i++)  
      {  
          var myCharacters = myframe[i].characters;  
          for(j=0; j<myCharacters.length; j++)  
          {  
               if(myCharacters[j].opacity != 100)  
               {  
                   alert("Error: Check some text has opacity")  
                   }  
              }  
          }  
      

       

      Regards,

      Karthi