Back

If your email is not recognized and you believe it should be, please contact us.

  • You must be logged in to reply to this topic.Login

Release Clipping masks on all selected objects

Return to Member Forum

  • Author
    Posts
    • #61807
      rydesign
      Member

      I would like to know if there is a way to select multiple object and reset their clipping paths back to “None”. Right now I have to click each photo and change it. I am sure there has to be a better way. Seems like something that would be scriptable and might be fairly easy.

    • #61809

      Something like this — each “selection” item is a graphic, which contains images (always one, but it seems Adobe expects to insert more than one; hence the '[0]'). The clipping path itself is a property of this image; and you can immediately set it to “None”. The try .. catch is to prevent abnormal termination if any of the selected items is not a placed image, does not contain an image, or does not contain a clipping path.

      for (i=0; i<app.selection.length; i++)
      {
      try {
      app.selection[i].images[0].clippingPath.clippingType = ClippingPathType.NONE;
      } catch (e)
      {
      // not interested if there is none
      }
      }

    • #61814
      rydesign
      Member

      Thank You so much. I figured this was an easy solution. You have pulled through once again.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
Forum Ads