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

Is there a way to have multiple color guides?

Advisor ,
May 12, 2017 May 12, 2017

What we were wanting to do is just as an example.  Have say a red guide for one piece of art and a blue for another and so on.  And be able to have them on the same sheet. 

TOPICS
Scripting
1.5K
Translate
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

Community Expert , May 12, 2017 May 12, 2017

Why not?


Guides have a guideColor property where the value could be a UIColor or an array of three RGB numbers.

var doc = app.documents[0];

app.documents[0].spreads[0].guides.add

(

    {

        guideColor : [255,0,0] ,

        guideType : GuideTypeOptions.RULER ,

        location : "10 mm" ,

        orientation : HorizontalOrVertical.VERTICAL ,

        fitToPage : true ,

        itemLayer : doc.layers[0]

    }

);

See DOM documentation:

Adobe InDesign CS6 (8.0) Object Model JS: Guide

Regards,
Uwe

Translate
Community Expert ,
May 12, 2017 May 12, 2017

Why not?


Guides have a guideColor property where the value could be a UIColor or an array of three RGB numbers.

var doc = app.documents[0];

app.documents[0].spreads[0].guides.add

(

    {

        guideColor : [255,0,0] ,

        guideType : GuideTypeOptions.RULER ,

        location : "10 mm" ,

        orientation : HorizontalOrVertical.VERTICAL ,

        fitToPage : true ,

        itemLayer : doc.layers[0]

    }

);

See DOM documentation:

Adobe InDesign CS6 (8.0) Object Model JS: Guide

Regards,
Uwe

Translate
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
Advisor ,
May 12, 2017 May 12, 2017
LATEST

Excellent Thank you.

Translate
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