Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Redefine Scaling to 100%

Community Expert ,
Jan 20, 2025 Jan 20, 2025

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?

 

Mike Witherell
TOPICS
How to
239
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jan 20, 2025 Jan 20, 2025

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();
}
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 21, 2025 Jan 21, 2025
LATEST

Thank you so much for that edit, Ariel. I hope you are well!

Mike Witherell
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines