Sg2.9
Multiple Release Clipping Mask
Recent RSS
Multiple Release Clipping Mask
From:  Paul P
Date:  10. February 2011, 12:49

Hi,

When opening .pdf files in Illustrator, depending on how the pdf was created, you can get a lot of clipping masks around your objects, and that can be a drag. Illustrator does not have a Release All for clipping masks - I think it would be useful to have a script for that - or am I missing something?
Thanks

Re: Multiple Release Clipping Mask
From:  Aubrey
Date:  16. August 2011, 18:33

Thank you! I never knew about that!

Re: Multiple Release Clipping Mask
From:  Geoff (with a 'G')
Date:  1. October 2011, 22:58

So simple ... I also didn't realise - big thanks!

Re: Multiple Release Clipping Mask
From:  paulpenet
Date:  1. October 2011, 23:36

Well, actually... no. It doesn't work.

It is my fault, I didn't explain in properly in my first post.
Depending on how the pdf was created, you can get a lot of clipping masks in your document:

1. Some of them are completely pointless, in the sense that after you release them, you get the same appearance of the object PLUS countless invisible objects, stray points etc.

2. Others are actually meaningful masks: after releasing them, the object changes its appearance, because it was really modified in the first place with a clipping mask.

So, what happens a lot is that you Release all, everything seems to look the same, you assume that all the objects were type 1 clipping masks. But actually, there is one tiny type 2 object, that is changed and you don't notice it... Bummer!

The script I was thinking would be able to diferentiate between the two.
It would give you the option to only release type one, or even better, get rid of all the clipping masks but at the same type preserving the appearance (using the clipping mask to trim the object, leaving the result looking the same as before, but eliminating the clipping mask).

As a designer with no programming experience, I would say this shouldn't be so hard - you would need the script to compare the coordinates and dimensions of the clipping mask and the object it modifies and than, for type 1 objects, simply delete the mask and leave the object, for type 2, perform a trim of the object by the clipping mask, and then delete the clipping mask.

Make any sense?

Re: Multiple Release Clipping Mask
From:  Sig Vicious
Date:  2. October 2011, 16:21

when you have a document with a lot of clipping masks:

Select all and goto object/clipping masks and release all

Then select one invisible object and goto "Select/same fill and stroke and delete those objects.

Re: Multiple Release Clipping Mask
From:  Jolin Masson
Date:  6. October 2011, 20:18

I _so fck***_ love you!

Re: Multiple Release Clipping Mask
From:  Sig Vicious
Date:  8. October 2011, 19:53

you're welcome

Re: Multiple Release Clipping Mask
From:  Tom
Date:  14. March 2012, 01:21

WIN! Thanks guys, this is great info!

Re: Multiple Release Clipping Mask
From:  Ankit
Date:  2. June 2012, 09:13

Awesome !!! Thanks so much dude :)

Re: Multiple Release Clipping Mask
From:  S
Date:  9. November 2012, 12:58

"when you have a document with a lot of clipping masks:

Select all and goto object/clipping masks and release all

Then select one invisible object and goto "Select/same fill and stroke and delete those objects."
Awesome beans. Thanks so much. I had same problem as paulpenet. Driving me insane so it was.
@Sig - Thanks a million

Re: Multiple Release Clipping Mask
From:  Dan
Date:  18. November 2012, 13:59

Hello,

But after the "Select/same fill and stroke and delete those objects" how to get the old useful clipping paths (all released now) to maintain the same appearance without re-clipping path one by one?

Regards,

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Hexagonal Grid Generator 16.11.11