Skip to main content
Ali Oliya
Inspiring
January 9, 2023
Answered

Script to align multiple objects to multiple key objects

  • January 9, 2023
  • 2 replies
  • 537 views

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.

This topic has been closed for replies.
Correct answer Ali Oliya

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!

 

2 replies

Ali Oliya
Ali OliyaAuthorCorrect answer
Inspiring
January 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!

 

Met1
Legend
January 9, 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?

Ali Oliya
Ali OliyaAuthor
Inspiring
January 9, 2023

Hi Met1

Yes the numbers must stay fixed.

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