Skip to main content
Inspiring
May 12, 2017
Answered

Is there a way to have multiple color guides?

  • May 12, 2017
  • 1 reply
  • 1489 views

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. 

This topic has been closed for replies.
Correct answer Laubender

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

1 reply

LaubenderCommunity ExpertCorrect answer
Community Expert
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

cbishop01Author
Inspiring
May 12, 2017

Excellent Thank you.