2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

デザイン自動化メモ(InDesignのオブジェクトの上に半透明のボックスをかける)

Last updated at Posted at 2018-06-10

無理なオブジェクト配置していないかよく確認したいですよね。

デザインに凝りすぎて、テキストボックスとか適当な大きさで置いていると後からしんどいす。
透明な網をかけていくと、ボックスの重なりが視覚的にわかって、確認がしやすい。

    pageObj = app.activeDocument.pages[0];
    total = pageObj.allPageItems.length;
    for (i=0;i<total;i++) {
       pageItem = pageObj.allPageItems[i];
        
       imgObj = app.activeDocument.pages[0].rectangles.add();
       imgObj.visibleBounds = pageItem.visibleBounds;
       imgObj.fillColor = colorObj;
       imgObj.transparencySettings.blendingSettings.opacity = 40;
    }

pageObj.allPageItemsではなく、pageObj.PageItemsにするとグループ化しているオブジェクトが判定外になるので注意。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?