复合路径建立的剪切蒙版
复合路径建立的剪切蒙版,如何把蒙版分割的对象分离成单独的对象。如图中,我用矩形复合路径通过剪切蒙版把图片分割,但是现在是一个整体,我想让蒙版中分割的每个对象成为一个单独的对象,请问有什么好办法吗?比如类似于“扩展”的功能。
当然,每个矩形可以单独建立剪切蒙版,但是会非常麻烦。
-
onenower commented
好的,明白了,再次感谢!
-
You are welcome, glad it helped!
I prefer to use artboards and to export parts into separate files — but this leads to resampling.
The white-multiply-flattening trick allows to keep the original resolution, so is viable in some cases it’s important. -
onenower commented
谢谢,gif这个方法非常棒!解决了大问题!
-
There is no native automated way to cut the clipped image into separate pieces based on the compound clipping mask, but there are simple methods to achieve this.
1. Take a look at the GIF attached.
You’d have to unclip the group again, release the compound path, fill the pieces with white, set their blending mode to Multiply, select the image and the now invisible fragments together, and use Flatten Transparency. In the dialog choose maximum Vector and Preserve Alpha Transparency. Other parameters does not matter.
Ungroup the result to remove the background part, and now you have your cut fragments.
Notice that each piece is clipped to fit exactly into the dimensions the original mask.2. You can use a free PuzzleClipper script by Alexander Ladygin: https://github.com/alexander-ladygin/illustrator-scripts/blob/master/puzzleClipper.jsx
You’d have to unclip your piece, release the compound path into separate shapes, select the image and the paths on top together, and run the script. Each path on top will become a clipping group with a copy of the image at the very bottom.The script won’t automatically trim the image to the bounds of each piece though — each piece will get the full copy of the image at the bottom.
Please comment back if it works for you.