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

How to fast simultaneous changes the width of multiple objects into same value.

Advocate ,
Jun 30, 2015 Jun 30, 2015

Copy link to clipboard

Copied

How to fast simultaneous changes the width of multiple objects into same value.

must be achieved only with a script?How to achieve。

Thanks!

There is the InDesign file  down

Change the width of objects.jpg

TOPICS
Scripting

Views

431

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
Community Expert ,
Jun 30, 2015 Jun 30, 2015

Copy link to clipboard

Copied

Here's your answer to 1. Select the frames left to right, then:

frames = app.selection;

left = frames[0].geometricBounds[1];

right = frames[frames.length-1].geometricBounds[3];

w = (right-left-((frames.length-1)*5))/frames.length

for (i = 0; i < frames.length; i++) {

  gb = frames.geometricBounds;

  frames.geometricBounds = [gb[0],left,gb[2],left+w];

}

for (i = 1; i < frames.length; i++) {

  frames.move(undefined, [i*(w+5), 0]);

}

Peter

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
Advocate ,
Aug 17, 2015 Aug 17, 2015

Copy link to clipboard

Copied

Thank you

Just, cannot enter the value manually

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
Community Expert ,
Aug 17, 2015 Aug 17, 2015

Copy link to clipboard

Copied

LATEST

Do you mean, that you cannot do the selection manually?

One by one, step by step?


Is anything selected at all?

If no, you first have to identify the rectangles.

How to do that? It will depend on your specifc layout.

If yes, the selection was done by the "selection marquee" drawing out a rectangular area by the mouse; everything that is touched by that area is selected.

Now it is unclear which of the index numbers of the selected objects means what rectangle.

You have to identify the rectangles by their position on the page (or spread) (best bet in this situation, I think).

Uwe

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