Skip to main content
Sulaco
Inspiring
February 20, 2026
解決済み

Reset Scale transformations on multiple objects (Script)

  • February 20, 2026
  • 返信数 1.
  • 101 ビュー

I want to be able to reset scaling values on objects in InDesign, without changing their size. I found the following script snippet online, that does the job:

app.selection[0].redefineScaling();

But it only works on one object at the the time, even if I select multiple ones. Is there a way to make it work on multiple objects? Keep in mind that I know next to nothing about scripting 😅

    解決に役立った回答 rob day

    Hi ​@Sulaco , This would redefine the scaling of all the document’s graphics’ container frames:

     


    //an array of all the document’s graphics
    var api = app.activeDocument.allGraphics

    for (var i = 0; i < api.length; i++){
    //api[i].parent is the graphic’s container frame
    //reset the width and height to 100%
    api[i].parent.redefineScaling([1.0, 1.0])
    };

     

    返信数 1

    rob day
    Community Expert
    rob dayCommunity Expert解決!
    Community Expert
    February 20, 2026

    Hi ​@Sulaco , This would redefine the scaling of all the document’s graphics’ container frames:

     


    //an array of all the document’s graphics
    var api = app.activeDocument.allGraphics

    for (var i = 0; i < api.length; i++){
    //api[i].parent is the graphic’s container frame
    //reset the width and height to 100%
    api[i].parent.redefineScaling([1.0, 1.0])
    };

     

    Sulaco
    Sulaco作成者
    Inspiring
    February 20, 2026

    Awesome, thank you! Is there a way to have this redefine only selected objects?