Place 2 objects in a new layer and rename it that layer

Hi all

Have a small problem and need your help:

-J' have an AI with hundreds of items in there. All in a single layer.

-There are two types of objects: blocks and textlayers (numbers). Each block has so a number on top it is.

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

What I ultimately need is a new layer structure:

-Each object + textlayer must be placed in a separate layer, AND that a new layer should be renamed the number which is within that layer. Like this:

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

My first thought was to collect items from its position. For example: Position the text object can be placed at x and are coordinated from the block, but + 2mm for margin offset. What would be the point of recognition for the script to put in the separate layer.

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

Also found something that can work with existing scripts if it can there have written an extra:

Here is a script for the conversion of groups in layers and keeping the group names:

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

Here is a script to make groups of objects that overlap:

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

In theory if there is a script to change the names of groups with names textlayer, then would solve the problem in these three steps.

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

Thank you!

Here you go,

What is this for? just curious

#target Illustrator

//  script.name = moveText_n_Box_toNewLayer.jsx;
//  script.description = custom script to move a path and its INSCRIBED label to a new layer
//  script.requirement = CS5+ only, one open document, one artboard, some rectangles and text labels inside them.
//  script.parent = carlos canto // 03/31/14
//  script.elegant = false;

//  http://forums.adobe.com/thread/1440702?tstart=0

var idoc = app.activeDocument;
var abRect = idoc.artboards[0].artboardRect;
var tempAB = idoc.artboards.add(abRect);

var tfs = []; // text frames container

for (j=0; j 
         

Tags: Illustrator

Similar Questions

  • Paste the object automatically creates NEW layer - EVERY TIME

    I am a person very knowledgeable Photoshop/InDesign and Illustrator. I paste the pictures on the net in my doc of Illustrator, but when I do each time that it will either create a new layer, place the object in this layer and from there on after all new objects in this new layer even places. Only happens when I am pasting from somewhere outside of the Illustrator. Please help because it's put a damper on my work because now I have to remember to take all pasted objects on a certain layer... I use 9 layers.

    Help, please

    In the layer panel menu, uncheck "paste remembers layers".

  • I agree with the creative cloud.  I got a new computer and it says that it cannot find my subscription.  Very frustrating. Help, please.

    I agree with the creative cloud.  I got a new computer and it says that it cannot find my subscription.  Very frustrating. Help, please.

    Please let us know the:

    1. the place of purchase

    2 order No.

    3 adobe ID (email)

    private e-mail because I was unable to find any Cc registered at your forum Email ID.

    Concerning

    Stéphane

  • I have to buy a new mouse and a keyboard that is usb 3.0 compatible in order to upgrade to 3.0?

    Original title: usb 3.0

    I have to buy a new mouse and a keypad that is compatible usb 3.0 to upgrade to 3.0?

    N °

    USB 3.0 is backward compatible with your devices.

    You will not remove all the ports on your computer when you add a usb 3.0 in order to continue to use the ports that you use now for your keyboard and your mouse.  When you add a usb 3.0 controller on your computer you will have 3.0 ports in addition to your small gifts.  USB 3.0 has audio, video, storage and mass devices most.

    Keyboards and mice that you own now will not have 3.0 anyway, even with an adapter, but this isn't a problem.  Because the increase in speed of 3.0 data transfer benefits hardly a device that awaits for most human movements in any case new devices are not necessary.

    Colin Barnhorst

  • I downloaded the Adobe Pro 9 Setup program on a new mac and it says that it can not be installed because it comes from an unidentified developer. I have a serial number and want to just 9 Pro on my new machine

    I downloaded the Adobe Pro 9 Setup program on a new mac and it says that it can not be installed because it comes from an unidentified developer. I have a serial number and want to just 9 Pro on my new machine

    How to open third-party applications to developers not identified in Mac OS X "Mac tips.

  • I just downloaded photoshop elements 7.0 to a new box, and he said that my serial number is not valid.  the adobe support team indicates the number is valid, but that they cannot help me

    I just downloaded photoshop elements 7.0 to a new box, and he said that my serial number is not valid. the adobe support team indicates the number is valid, but that they cannot help me

    who cancel. Ugh... it was one of the other programs in the bundle of bamboo that was having a problem.  Thanks again for responding, I think I'm now covered for photoshop elements.

  • For each object, create a new layer and rename it

    Hello!

    I want to export an Illustrator file to DWG, and I have many things I want to keep the name. But to keep this info in AutoCAD, I need to transfer them as layer names (DWG/DXF export does not record the name of the object, but the name of the first level layer) and put all these layers as layers of level first (DWG/DXF export maintains just first layers of level).

    So I would like to make or find a capable script something like this:

    in my file,.

    for each object,.

    see if there is a layer with the name of the object

    If there is any layer with the same name

    then

    Create a layer,

    give the name of the object to the layer

    endif

    Place the object in this layer

    Is there someone who can help me?

    Thank you!

    You can select your layer, then use "Release to layers", which will create a sublayer for each object that you have, and then a script can rename these layers based on the named object it contains... so you can drag them all out of their layer sublayers parent so that they become the main layers... everything that is explained here, including the script

    Selected lap HAVE sublayers in top-level layers?

  • I backed up by old ipad to icloud. I tried transfer back up to my new ipad and he says that he has no available backup.

    My old ipad is stored in icloud. I bought a new ipad and tried to restore back to the top of my old ipad to it. He said there is no way back up available to use.   What should I do?

    Welcome to the Apple community.

    The operating system on the new device is at least as new as the old device.

  • my computer broke down I try restoring lightroom on my new computer and it said that I had to actactivate

    my computer broke down I try restoring lightroom on my new computer and it said I activate computer old Bill...

    Serial number and activation support (non - CC) https://forums.adobe.com/thread/2041990 to adjust the number of activations

    If the cat person sends you back to this open forum, you are out of luck... only Adobe can help, nobody here can access the activation server

  • I tried to install Itunes on my new computer and it says that Itunes can not be installed because it does not work on this computer help!

    I just bought a gaming pc and tried to install Itunes... He said that he could not install because this software will not work on this computer... Contact software publisher for a compatible version or something like that...

    Operating system: Windows 10

    Manufacturer: Cyberpowerpc

    : Processor AMD FX (tm) - 4300 image 3.8 GHz

    Installed memory (RAM): 8 GB

    System type: 64-bit, x 64 processor operating system

    ROM: 1 TB

    Graphics card: Nvidia GeForce 730 GT 2 GB RAM

    Can someone tell me please how to get ITunes to my new computer?

    Thank you very much

    Shiz13

    Visit the section more information for troubleshooting problems with iTunes for Windows updates and make sure you download the correct version. Look at the rest of the tip of the user if needed.

    TT2

  • OEM Windows installed on a new system and being told that my key is invalid.

    Product key problem

    A year ago, I bought a version of XP SP3 OEM and installed on a computer (clean install).  No problems.  A few months later, I had to wipe the drive and reinstall.  Once again, no problem.  Now I got a new computer, but when I try to install with the same disk (clean install) and the same product key, I like that is not valid.  Some things that are not a factor:

    Damaged drive.  The disc is impeccable.
    Error in the Enter key.
    Key is not not the disc.
    I don't see how something other than the computer, the key and installation disc could play a role.  I hope that Microsoft does not know what I do in my room.  I even traded keyboards, that someone suggested that this could be a factor (speaking with an accent keyboard?).
    My next step is to wipe the drive and start over, but I think I'll meet the same problem, because players will be the same.
    Any ideas?

    After the activation of Windows XP on the older PC, having to reactivate Windows XP is not so rare that are several hardware changes within a short time, not to mention the motherboard.

    Change the motherboard is a reactivation guaranteed event.  Just change all the RAM, PSU, CPU and made it a videocard in a few weeks.  "Activate Windows" more on wikipedia lists the 8 areas checked.

    The OEM Windows disk from the manufacturer-, Dell, HP etc. get of course do this even in the BIOS.  Dell OEM Windows on a non Dell motherboard, which I thought would do, would lead to shop for an another Windows Installer.

    This is how Windows mysteriously know material changes without connection to Microsoft.com - the BIOS chip.

    Beware of sellers on ebay with a still sealed OEM disc, but with a touch of product USED or not.   OEM disc will work as it clearly says right on it:

    "Relocation... CD '. Don't use this software to reinstall the operating system on a computer (mfgr)... For distribution only with a new computer (mfgr). »

  • I am trying to download Photoshop on my new computer and it says that I have a plan and I had to update payment information. I did and now I'm stuck... What do I do now?

    I used to have Photoshop and Illustrator on my old computer. I stopped using this computer and bought a new one. I logged into my Adobe account and tried to download the Plan you have for $39.99, which gets you all the programs, but it took me to a page that says that I have an account and I need to update my payment method. I've updated my payment method and now I want to download Photoshop on my new computer. What should I do now?

    Hello

    You will need to contact support by calling/chat for this request.

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    Kind regards

    Sheena

  • I'm getting a new computer and I see that the speed Grade requires an i5 ~ i7, so is possible to use a processor AMD FX?

    I would use an AMD processor based computer. I see the requirements for the SG is an i5 ~ i7. So the only option?

    Thank you

    It is a frustrating situation. It is not so much that you need an Intel chip, but... you really need a nVidia graphics card. The entire video suite Adobe is much more 'compatible' with internal nVidia as AMD/Radeon. You can build the opposite... my Builder tried as he SO aware video incredibly fast & performance robust prices many modest AMD/Radeon video cards when used in more complex video games out there. They MUST just side with Rprp/Sg, right?

    UH... they are not really used much or... almost all... within the suite Adobe. Best advice: go to the forum hardware (found through the page "presentation" of the forum PrPro, list of other forums on the right) and find the Page Tweakers... many pages of tips & test results very specific.

    Neil

  • I bought a new computer and told me that I get a free upgrade to windows 7, do I have to do for me to get

    How to install this

    See: Frequently asked questions - Upgrade Options
    http://www.Microsoft.com/Australia/Windows/buy/offers/upgrade-FAQ.aspx

    TaurArian [MVP] 2005-2010 - Update Services

  • Impossible to color in the new layer * new user *.

    1.PNG

    What I wanted to do was draw/color the hands separately so I used the Lasso tool and describes the hands at Base of layer 1. I used "Layer by copying" to separate the hands.

    2.PNG

    When I tried to color in it, I can only color in the previous layer [layer 1 Base] under him as you can see from the layer panel on the right side.3.PNG

    So I tried to block the Base of 1 layer and 'Hide' by pressing on the "eye" icon. And when I wanted to color, this popup came.

    Is there a technique I use to separate just the hands or any part of the image?

    It seems to me, on the layer 1, you can paint the area around the copied area. What will happen if you make a selection of the segment on layer 1, then select > Inverse. You did a selection on layer 1. Did you reverse and Cmd + H to hide this selection?

    I suggest you choose the Base Layer, make your selection, then Cmd + J. He will place the segment on a new layer in a transparent skin and automatically place you on this layer, ready for painting.

Maybe you are looking for