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

Constrain Proportions (Via Largest Dimension)— After — Fitting Content To Frame ?

Contributor ,
May 08, 2018 May 08, 2018

Copy link to clipboard

Copied

I need a script that will do two moves in one.

First, Fit Content To Frame (which is already built into InDesign, granted).

Then, Constrain Scale Proportionately based on the largest dimension.

The below video demonstrates what I need manually (paying special attention to the manual copy-paste of the larger number in the scale field, in order to even out the scale to correct the ‘stretching’ after Fitting Content To Frame).

As always any feedback is greatly appreciated.

Cheers.

TOPICS
Scripting

Views

674

Translate

Translate

Report

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

correct answers 1 Correct answer

Contributor , Apr 22, 2019 Apr 22, 2019

I did some digging and cobbled together the below that works great.

Thanks especially to Mikie9 .

var sel = app.selection;

for (var i=sel.length-1; i>=0; i--) {

    sel.fit(FitOptions.FILL_PROPORTIONALLY);

}

Votes

Translate

Translate
Contributor ,
Apr 22, 2019 Apr 22, 2019

Copy link to clipboard

Copied

My workflow today involved the above and led me back to here.

No takers on this one?

Votes

Translate

Translate

Report

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
Contributor ,
Apr 22, 2019 Apr 22, 2019

Copy link to clipboard

Copied

LATEST

I did some digging and cobbled together the below that works great.

Thanks especially to Mikie9 .

var sel = app.selection;

for (var i=sel.length-1; i>=0; i--) {

    sel.fit(FitOptions.FILL_PROPORTIONALLY);

}

Votes

Translate

Translate

Report

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