Illustrator scripting help - Create new artboard per layer, make and place symbols
I am trying to automate a workflow process that I recently developed, focussed on improving the design process in illustrator using artboards but while still optimizing the transfer of artwork to after effects for animation. My goal is to develop a script that will 1) create new artboards for each separate layer (not the sublayers) and also match the name of the newly created artboard to the referenced layer (not required but it would be nice). Then make symbols for each layers artwork and place it on the newly created artboard. And lastly create a new layer, called something like "symbols collection" where each of the layer symbols will be placed. I am still pretty novice when it comes to scripting, but I am good enough as decoding existing scripts, so I am using William Campbell's repeat artboard as a basis with the first step, creating artboards for each layer. I don't believe there is a method for setting the newly created artboard name though. I can get the layer names, and I can get the artboard names, but I am not entirely sure how to make that connection between them. Then there is the question of automating the symbol conversion. This alone could be a huge time saver and possibly be enough to make the workflow automation sufficient. If anyone has any scripts that relate, or suggestions for methods, I would very much appreciate any and all input I can get!
