Copy link to clipboard
Copied
Hi,
How to change the value for spot color frequency and angle using script? I need frequency of 45 and angle of 71.
I referred this and not able to found.
Adobe InDesign CS5.5 (7.5) Object Model JS: Ink
Thanks,
K
Copy link to clipboard
Copied
I am not sure am in the right way..
myinklist = app.activeDocument.inks;
for(i=0; i<myinklist.length; i++){
if(myinklist.name!="Process Cyan" && myinklist.name!="Process Magenta" && myinklist.name!="Process Yellow" && myinklist.name!="Process Black"){
alert(myinklist.name)
myinklist.angle=71;
myinklist.frequency=45;
}
}
Copy link to clipboard
Copied
Hi All,
Could you please give some suggestions?
Thanks,
K
Copy link to clipboard
Copied
You can check to see if an ink is process using the isProcessInk property.
if (myinklist.isProcessInk == false) {
//etc.
}
Copy link to clipboard
Copied
Hi Hopkins,
Thanks for your reply. It is helpful. But I have to change the angle and frequency in the print preset (when creating ps file) for all spot colors present in the document.
Regards,
K
Copy link to clipboard
Copied
That should help :
Copy link to clipboard
Copied
Hi Loic,
Thank you for your guidance. But this is just the object model collection in one page. I just wonder the spot color angle and frequency is not presented in the model. Because it have cyan, magenta, yellow and black color angle and frequency.
Thanks,
K
Copy link to clipboard
Copied
wouldn't
app.activeDocument.printPreferences.cyanAngle
and
app.activeDocument.printPreferences.cyanFrequency
be useful ?
Copy link to clipboard
Copied
No Loic, I want to change the SPOT color angle and frequency
That is missing in object model Any suggestions?
Thanks,
K
Copy link to clipboard
Copied
Hi Loic and Hopkins,
I am really hang with this point, need to go move ahead. Could you please suggest how can I proceed?
Thanks,
K
Copy link to clipboard
Copied
J'ai chercher plusieurs heures, on parle bien des couleurs primaire mais pas des couleurs en ton direct (spot) ... à suivre
Copy link to clipboard
Copied
Ok, wrong lead. This one looks more appropriate but without any effect :<
var inks = app.activeDocument.inks;
var mySpot = inks.itemByName ( "PANTONE 377 C");
if ( mySpot.isValid ) {
mySpot.angle = 71;
mySpot.frequency = 45;
}
Copy link to clipboard
Copied
Hi Loic,
Yes it will not change in the print preset. But wonder where this value is changed.
The .cyanAngle and .cyanFrequency are working fine with print preference to change cyan values, but how to set the value for SPOT is really challenging.
Thanks,
K
Copy link to clipboard
Copied
HI...
I tried like below.. still not working..
app.activeDocument.inks[4].angle=15
app.activeDocument.inks[4].frequency=35
another approach..
myinklist = app.activeDocument.inks;
var myPreset = app.printerPresets.item("xyz");
for(i=0; i<myinklist.length; i++){
if (!myinklist.isProcessInk) {
with(app.activeDocument.printPreferences){
myinklist.frequency=71;
myinklist.angle=45;
}
}
}
Something useful thread.. but not found my answer..
Re: How do I print specific spot color(s) in separations?
Thanks,
K
Copy link to clipboard
Copied
With the above coding, it will apply but don't show the changes I guess