Copy link to clipboard
Copied
Hi everyone,
I am retrofitting a document. All the objects when selected show an annoying scaling percentage number.
I would like to script through the whole document and reset all objects to 100%. I do not want to do this one object at a time. A contributor named vinny in 2017 offered this script solution:
scaledElements = app.activeDocument.allPageItems;
for (i = 0; i < scaledElements.length; i++) {
scaledElements.redefineScaling();
}
But it doesn't work in 2025. Can you help edit it?
Copy link to clipboard
Copied
Hi Mike,
Try this (I haven't tested it though):
scaledElements = app.activeDocument.allPageItems;
for (i = 0; i < scaledElements.length; i++) {
if (scaledElements[i].hasOwnProperty("redefineScaling")) scaledElements[i].redefineScaling();
}
Copy link to clipboard
Copied
Thank you so much for that edit, Ariel. I hope you are well!