Copy link to clipboard
Copied
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.
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Excellent Thank you.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now