Skip to main content
Das Boomer
Known Participant
November 11, 2016
Answered

CMYKColor does not have a constructor

  • November 11, 2016
  • 1 reply
  • 2298 views

Afternoon all,

Simply want to create a CMYK Color (I don't think we can do LAB).

I tried:

var this         = new CMYKColor;

var really      = new CMYKColor();

var annoys   = new CMYKColor(1,2,3,4);

var me          = new CMYKColor(1,2,3,4,5);

All failed with the same message: "CMYKColor does not have a constructor".

Could someone please confirm this works on their computer and their versions?

Reference: InDesign CC 2015.4, ExtendScript 4.5.5

Cheers,

Antoine

This topic has been closed for replies.
Correct answer tpk1982

[JS][CS3] Create new swatch

Re: create a color in a color group

Reference for creating new colors...

1 reply

tpk1982
tpk1982Correct answer
Legend
November 12, 2016
Das Boomer
Known Participant
November 15, 2016

So this CMYKColor has been deprecated?

Jump_Over
Legend
November 15, 2016

Hi,

Where did you copy this CMYKColor from? It looks like custom function or object.prototype

Jarek