I'm needing to create an array in the order I shift-select an object in illustrator and then number those objects in sequential order in the layers panel using a script.
1. I have objects on my artboard that were created using the trace tool. Notice each object is labelled <path>
.
2. The objects are not in any order, they are random. In other words, the ones across the top are not consecutive in the layers panel. I will name the four across the top and highlight them so you can see they are random.
3. My goal is to create a script whereby I may shift-click the objects in the order I wish, without them being labeled in the Layers panel and then either sort them in the layers panel by its ordered click or number them by ordered click in the layers panel.
Q: Imagine I have hundreds of these random objects in my artboard that need to be labeled in a specific order in the layers panel. What script will enable me to create an array on mulitple select in the order I select the object?