Quantcast
Channel: Adobe Community : Popular Discussions - Illustrator Scripting
Viewing all articles
Browse latest Browse all 12845

Place 2 objects into a new layer and rename that layer

$
0
0

Hi All

 

Have a little problem and need your help:

- I have an ai with hundreds of objects in it. All in one layer.

- There are two types of objects: blocks and textlayers (numbers). So each block has a number on it's top.

 

http://i58.tinypic.com/mafmgg.jpg

 

What I finally need is a new layer structure:

- Each object+textlayer must be put in a separate layer AND that new layer must be renamed to the number which is inside that layer.Like that:

http://i58.tinypic.com/2wejfup.jpg

 

My first thought was to collect objects by it's position. For example: Position of the text object can be placed at x and y coordinates of the block, but + 2mm offset for margins. This would be the recognition point for the script to put them in the separate layer.

Or look for overlapping objects and put them in a new layer.

 

Also found something which can work with existing scripts if there can be written an additional one:

Here is a script for converting groups into layers and retaining group names:

http://forums.adobe.com/thread/892733

 

Here is a script to make groups out of overlapping objects:

http://js4ai.blogspot.be/2008/04/new-script-group-overlapping-objects.html

 

In theory if there would be a script for changing group names to the textlayer names, then the problem would be fixed in those three steps.

 

Does anyone know a solution for this? I'm not a developer, know almost nothing about coding.

 

Thanks!


Viewing all articles
Browse latest Browse all 12845

Trending Articles