• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Ink frequency and angle change for SPOT

Guide ,
Sep 14, 2017 Sep 14, 2017

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.

Screen Shot 2017-09-14 at 4.29.59 PM.png

I referred this and not able to found.

Adobe InDesign CS5.5 (7.5) Object Model JS: Ink

Thanks,

K

TOPICS
Scripting

Views

1.1K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 14, 2017 Sep 14, 2017

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;

       }

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 15, 2017 Sep 15, 2017

Copy link to clipboard

Copied

Hi All,

Could you please give some suggestions?

Thanks,

K

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Sep 15, 2017 Sep 15, 2017

Copy link to clipboard

Copied

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

    if (myinklist.isProcessInk == false) {

   //etc.

   }

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 15, 2017 Sep 15, 2017

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 17, 2017 Sep 17, 2017

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 17, 2017 Sep 17, 2017

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 17, 2017 Sep 17, 2017

Copy link to clipboard

Copied

wouldn't

app.activeDocument.printPreferences.cyanAngle

and

app.activeDocument.printPreferences.cyanFrequency

be useful ?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 17, 2017 Sep 17, 2017

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 17, 2017 Sep 17, 2017

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Sep 18, 2017 Sep 18, 2017

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     

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Sep 18, 2017 Sep 18, 2017

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;

}

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 18, 2017 Sep 18, 2017

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 18, 2017 Sep 18, 2017

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guide ,
Sep 18, 2017 Sep 18, 2017

Copy link to clipboard

Copied

LATEST

With the above coding, it will apply but don't show the changes I guess

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines