Copy link to clipboard
Copied
Dear all,
PLEASE HELP if you can
I have 650 pages indesign file, I used images n logos on every page and for design look and feel i had given 'Transparency effect' on some of images and logos. But now I want to remove the effect from all pages. As I am working on page by page, It is very time consuming. Is there any solution to 'remove transparency effect' from all of the pages in one go. ?
If you have done it via object styles—as it should be done—you need to change the object style. If not, you have to go through any object by object, as you could have applied different forms of effects. You can specify an object style which is only defined as no effects, but if you apply it to any object you will loose all links to existing object styles applied to different objects.
Copy link to clipboard
Copied
If you have done it via object styles—as it should be done—you need to change the object style. If not, you have to go through any object by object, as you could have applied different forms of effects. You can specify an object style which is only defined as no effects, but if you apply it to any object you will loose all links to existing object styles applied to different objects.
Copy link to clipboard
Copied
Thanks dear
Copy link to clipboard
Copied
Hi,
If you wanna remove "Transparency" everywhere, just do this:
var myAction = app.menuActions.itemByID(67897);
if (myAction) {
var myDoc = app.activeDocument,
S = myDoc.spreads.length;
while (S--) {
myDoc.select(myDoc.spreads
.allPageItems,SelectionOptions.REPLACE_WITH);if (myAction.enabled) myAction.invoke();
}
}
"It's a kind of magic!" as Freddy Mercury sang!
(^/)
Copy link to clipboard
Copied
Really nice script, sir.
[EDIT]: Just discovered that while the script uses the menu command "Clear All Transparency" it clears any effect such as Drop Shadow, etc.
Copy link to clipboard
Copied
… Always a "kind of magic"! … Aha!
app.doScript("main()", ScriptLanguage.javascript, undefined, UndoModes.ENTIRE_SCRIPT, "Clear Transparency Eveywhere! …");
function main() {
var myItems= app.activeDocument.pageItems.everyItem().getElements(),
I = myItems.length;
while (I--) {
with (myItems.transparencySettings.blendingSettings) {
blendMode = BlendMode.NORMAL;
opacity = 100;
}
}
}
(^/)
Copy link to clipboard
Copied
Hi Obi-wan,
if there is asked to remove all transparency from all pages ( the title of this thread ) we simply have to say good-bye to all the effects…
However, it's not exactly clear which of the various effects the OP likes to remove.
FWIW:
Your last snippet would not set opacity to value 100 to all page items of an InDesign document.
Why? Because it would not reach the page items that are nested. Anchored frames, frames in groups etc.pp.
document.allPageItems
would get all the elements ( in most * cases ).
* it would not get elements in non-active states of MultiStateObjects.
But that's a different discussion that we already had some years ago in the InDesign Scripting forum.
With a solution as well…
Regards,
Uwe
Find more inspiration, events, and resources on the new Adobe Community
Explore Now