Skip to main content
tpk1982
Legend
September 14, 2017
Question

Ink frequency and angle change for SPOT

  • September 14, 2017
  • 2 replies
  • 1821 views

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

This topic has been closed for replies.

2 replies

Loic.Aigon
Legend
September 18, 2017

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;

}

tpk1982
tpk1982Author
Legend
September 18, 2017

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

tpk1982
tpk1982Author
Legend
September 18, 2017

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

tpk1982
tpk1982Author
Legend
September 14, 2017

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;

       }

}

tpk1982
tpk1982Author
Legend
September 15, 2017

Hi All,

Could you please give some suggestions?

Thanks,

K

Inspiring
September 15, 2017

You can check to see if an ink is process using the isProcessInk property.

    if (myinklist.isProcessInk == false) {

   //etc.

   }