Last active
August 29, 2015 13:57
-
-
Save kowata/9756347 to your computer and use it in GitHub Desktop.
イラレのオーバープリントを全部解除
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
イラレでウェブサイトのデザインをしていて、PSD に書き出すとレイヤーが保持されず、困る事が稀にあります。 | |
どうやら、オーバープリントが有効になったオブジェクトがドキュメント内にあると、書き出し時に統合されてしまうようです。 | |
「RGBでオーバープリントっているか?」と思うのですが、禁止するオプションも無いし、全選択してサクッと | |
解除する事もできないので MG ☂. さんの記事『[Illustrator]黒以外のオーバープリントを解除』 | |
(http://www.milligramme.cc/wp/archives/572)を読みJSでコントロールする事にしました。 | |
ただ、自分の場合は黒だろうと何だろうと、問答無用で解除して良いので少しだけ処理が簡単になっています。 | |
チクチク探して解除してたのがアホらしくなる程簡単。素晴らしい。ありがとうございました。 | |
*/ | |
var items = documents[0].pageItems; | |
for (var i = 0; i < items.length; i++){ | |
if(items[i].typename == "TextFrame"){ | |
items[i].textRange.overprintFill = false; | |
}else{ | |
items[i].fillOverprint = false; | |
items[i].strokeOverprint = false; | |
} | |
} | |
alert("COMPLETE!"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment