Article View: adobe.scripting.indesign
Article #8341InDesign CS wrong color "recipe" through script
From: F�bio_Rosa
Date: Wed, 18 Oct 2006 17:29
Date: Wed, 18 Oct 2006 17:29
18 lines
1599 bytes
1599 bytes
Hi all. I'm trying to fill some textFrames with colors. But every time I add a new color through the script, the color composition lowers some values. For instance: C100 M70 Y0 K0 goes to C100 M56 Y0 K0.
Here's my script:
const myColors =
[
[100, 000, 000, 000], [000, 100, 000, 000], [000, 000, 100, 000],
[100, 100, 000, 000], [100, 000, 100, 000], [000, 100, 100, 000],
[100, 100, 100, 000], [070, 070, 000, 000], [070, 000, 070, 000],
[000, 070, 070, 000], [040, 040, 000, 000], [000, 040, 040, 000],
[040, 040, 040, 000], [040, 000, 040, 000], [020, 020, 000, 000]];
for (x = 0; x < myColors.length; x++) { var newColor = app.activeDocument.colors.add(); newColor.name = "" + myColors[x]; newColor.colorValue = myColors[x]; }
Create a new document and run the script. Then, look to the "Swatches" pallete. You'll see differente values.
I've tried using the app.colorSettings properties, turning on/off color management and so on. But nothing seems to work...
I use Windows XP and InDesign CS1.
Technical Details
Message-ID:
<3bc202a0.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,186f803f8a7b4902,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: F�bio_Rosa@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: InDesign CS wrong color "recipe" through script Message-ID: <3bc202a0.-1@webcrossing.la2eafNXanI> Date: Wed, 18 Oct 2006 10:29:31 -0700 Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news.glorb.com!news.ecp.fr!news.stben.net!webcrossing