Copy link to clipboard
Copied
Hi all , we can apply clipping mask to a group in illustrator. Is it possible to apply clipping mask in indesign? if yes, then how can we apply clipping mask in indesign using script.
Hi @Abpujar ,
with InDesign's GUI you apply something like a "clipping mask" with cut and paste into.
The same commands are available for scripting.
Example with two elements on the active spread.
A group you want to mask and an empty rectangle that should be the "clipping mask".
var spread =
app.activeDocument.layoutWindows[0].activeSpread;
spread.groups[0].select();
app.cut();
spread.rectangles[0].select();
app.pasteInto();
Regards,
Uwe Laubender
( Adobe Community Professional )
Copy link to clipboard
Copied
What's the endgame here? Can you share a screen shot?
In Illustrator, we apply clipping masks as a cropping technique. In InDesign, this is mostly accomplished via frame size and shape.
If an image has an alpha channel and/or clipping path included (these originate in Photoshop), they can be applied for a.) custom text wrap or b.) to introduce transparency in an opaque image (an image, not a group) via Object > Clipping Path.
Before we can get to the scripting, we need to understand your use.
Perhaps it is better to add the clipping mask in Illustrator and then just place the finished art into InDesign?
~Barb
Copy link to clipboard
Copied
Hi @Abpujar ,
with InDesign's GUI you apply something like a "clipping mask" with cut and paste into.
The same commands are available for scripting.
Example with two elements on the active spread.
A group you want to mask and an empty rectangle that should be the "clipping mask".
var spread =
app.activeDocument.layoutWindows[0].activeSpread;
spread.groups[0].select();
app.cut();
spread.rectangles[0].select();
app.pasteInto();
Regards,
Uwe Laubender
( Adobe Community Professional )