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

Script to align multiple objects to multiple key objects

Community Beginner ,
Jan 09, 2023 Jan 09, 2023

Copy link to clipboard

Copied

I have zero knowledge of Java. I'm trying to align hundreds copies of a same icon to hundreds of numbers using "Align to key object",  "Horizontal align center" and "Vertical distribute space" in align window. but it takes ages and is very time consuming. Your help will be greatly appreciate.

Screenshot 1401-10-19 at 15.10.52.png

TOPICS
Scripting

Views

232

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

Community Beginner , Jan 10, 2023 Jan 10, 2023

I finally solved the issue. Created a symbol from the icon. Duplicated all the numbers, converted them to individual symbols using @CarlosCanto 's script: Creating Multiple Symbols

Finally replaced them all with the made icon. Happy life!

 

Votes

Translate

Translate
Adobe
Mentor ,
Jan 09, 2023 Jan 09, 2023

Copy link to clipboard

Copied

The number position has to stay the same?

Are there other elements on the artboard (or off the artboard for that matter), or just the numbers?

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 Beginner ,
Jan 09, 2023 Jan 09, 2023

Copy link to clipboard

Copied

Hi Met1

Yes the numbers must stay fixed.

Yes there are a lot of other texts other than these icons and number.

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 Beginner ,
Jan 10, 2023 Jan 10, 2023

Copy link to clipboard

Copied

LATEST

I finally solved the issue. Created a symbol from the icon. Duplicated all the numbers, converted them to individual symbols using @CarlosCanto 's script: Creating Multiple Symbols

Finally replaced them all with the made icon. Happy life!

 

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