Copy link to clipboard
Copied
In my following script:
var myDoc = app.documents.item(0);
var myPage = app.activeWindow.activePage;
var myBounds = myPage.bounds;
var pageWidth = myBounds[3]-myBounds[1];
var pageHeight = myBounds[2]-myBounds[0];
var myRectangle = myPage.appliedMaster.rectangles.add({geometricBounds:[0, 0, pageHeight, pageWidth]});
myRectangle.fillColor = "Black";
myRectangle.strokeWeight = "0";
I want to change opacity of the myRectangle object.
Can anyone help me with the correct command to specify opacity in javascript?
Hi,
Try this...
myRectangle.transparencySettings.blendingSettings.opacity = 39;
Regards
Copy link to clipboard
Copied
Moved to the scripting forum...
Copy link to clipboard
Copied
Hi,
Try this...
myRectangle.transparencySettings.blendingSettings.opacity = 39;
Regards
Copy link to clipboard
Copied
Thank you very much. One more favor pls... Can u suggest me some reference
book for all the javascript commands for indesign scripting?
Copy link to clipboard
Copied
Hi,
I know this book
and you have this for InDesign ExtendScript API's documentation
Copy link to clipboard
Copied
Thanks a lot. I will check up.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more