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

Script to align multiple objects to multiple key objects

Community Beginner ,
Jan 09, 2023 Jan 09, 2023

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.pngexpand image

TOPICS
Scripting
424
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

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!

 

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

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?

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

Hi Met1

Yes the numbers must stay fixed.

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

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

 

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