Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Select All > Make Clipping Mask

Guest
Dec 16, 2012 Dec 16, 2012

Hi all,

I'm trying to write a script that kills a repetative task and I'm struggling with the part where I want to go Select All > Make Clipping Mask.

My script creates a new upper layer with the path item that I want to use for the mask, and the artwork may exists in several layers underneath. I'm lost at the point where I want to select everything inluding the mask object (which will be on top) and go >make clipping mask. Any help much appreciated as always! I've trawled the forum but can't find anything...

Cheers,

S

TOPICS
Scripting
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Guru ,
Dec 17, 2012 Dec 17, 2012

In script you need to make a group item and move all your page items into this group… then you can set the clipped/clipping properties to true… You will find previous examples of this here… You don't select objects with scripting…

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 17, 2012 Dec 17, 2012
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Dec 17, 2012 Dec 17, 2012

Thanks dudes, I got it going!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 26, 2016 May 26, 2016
LATEST

can you run app.executeMenuCommand('group'); on the selection and then clip the selection?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines