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

CMYKColor does not have a constructor

Participant ,
Nov 11, 2016 Nov 11, 2016

Copy link to clipboard

Copied

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

TOPICS
Scripting

Views

2.0K

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

correct answers 1 Correct answer

Guide , Nov 11, 2016 Nov 11, 2016

Votes

Translate

Translate
Guide ,
Nov 11, 2016 Nov 11, 2016

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
Participant ,
Nov 15, 2016 Nov 15, 2016

Copy link to clipboard

Copied

So this CMYKColor has been deprecated?

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
Mentor ,
Nov 15, 2016 Nov 15, 2016

Copy link to clipboard

Copied

Hi,

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

Jarek

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 ,
Nov 15, 2016 Nov 15, 2016

Copy link to clipboard

Copied

It mostly look like an Illustrator DOM Object to me

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
Participant ,
Nov 16, 2016 Nov 16, 2016

Copy link to clipboard

Copied

LATEST

Thank you for your help!

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