Change the layer containing

I want to change a layer containing for any given layer. More generally, the layers of N relative to a containing layer. How can I do this?

Hi Nik Ska,

do you mean something like this?

// LayersToSublayers.jsx

// https://forums.adobe.com/thread/1620567
// quick&dirty (but only for the first top level layer)
// use it on your own risk
// regards pixxxelschubser
var aDoc = app.activeDocument;
var theLayers = aDoc.layers;
var newTopLevel = aDoc.layers.add();
newTopLevel.name = "Top level"

var sublayer = newTopLevel.layers.add();
sublayer.name = theLayers[1].name;
theLayers[1].visible = true;
theLayers[1].locked = false;

pI = theLayers[1].pageItems;

for (k=pI.length-1; k>=0;k--) {
pI[k].visible = true;
pI[k].locked = false;
pI[k].move(sublayer, ElementPlacement.PLACEATBEGINNING);
}

// remove the empty layer
theLayers[1].remove();

Note: all page elements will be visible and unlocked

Have fun

(Otherwise the two screenshots of your palette layers please (before and after))

Tags: Illustrator

Similar Questions

  • What is this error represents "another user has changed the line containing oracle.jbo.Key [21 primary key]."

    Mr President.

    What is this error represents "another user has changed the line containing oracle.jbo.Key [21 primary key]."

    Concerning

    You get this exception quite often when you have a business in PL SQL layer, but you can safely ignore (suppress) it by substituting the lock() method in all implementation of your entity classes.

    /*** customizing locking management: 
    * Because attribute values can change 'outside' ADF standard life cycle, 
    * when optimistic locking executes, the exception "Another User Changed the Row" is thrown. 
    * In this case, we execute locking again, ignoring the exception 
    */ 
    public void lock() 
    { 
     try 
     { 
      super.lock(); 
     } catch (oracle.jbo.RowInconsistentException e) 
     { 
      if (e.getErrorCode().equals("25014")) 
      { 
      super.lock(); 
      } 
      else throw e; 
     } 
    }
    
  • the words "how much" in any sentence will change the information contained in the typed in the field when it is selected on

    help I created a pdf form that is sent to the few hundred people very few will accept something very strange is happening when people try to fill it.  If the words are together in any sentence the field will change the information contained in the typed in when it is clicked on. If the 7 is entered in the field once on it out of the chaanges filed for view '0'.  23 or 230 happens every time.   This does not happen when if the form is opened in Adobe reader or Adobe Pro, but it seems for the most part that it opens in the browser, which is where it is filled.

    Thank you for any assistance.

    Many browsers have their own PDF plugins now that are used by default, and are unfortunately very bugs, especially when it comes to scripts and form fields. There is nothing much we can do about it, except for sending complaints to the manufacturers of these plugins and ask your users to avoid their use by saving the file and open it in Adobe Reader (or Acrobat) directly instead of inside the browser window.

    PS. the same also applies to the application overview of Apple.

  • change the layer blending mode

    Im having real trouble, trying to change a layer by the linear burn blend mode.

    so far, ive got:

    var currentComp = app.project.item (i);

    var occLayer = currentComp.layer ("OliveOccLayer");

    currentComp.occLayer.BendingMode.LINEAR_BURN;

    Why this is not working, is anyone knows?

    Thanks, Sam

    Try changing the last line to this:

    occLayer.blendingMode = BendingMode.LINEAR_BURN;

    Dan

  • Photoshop CS5 x 64 crash when changing the layer styles

    Hey there,

    I searched and searched through the entire interweb, but almost no one seems to have never had such a problem, so I think it is the right place to ask and hope to be helped . Short version is: Photoshop CS5 (x 64) is constantly crashing when you change a layer style.

    Recently, I installed my CS5 Design Premium on a new laptop (Fujitsu Lifebook AH351) and I have serious problems with Photoshop CS5. On the first run, everything was fine, and he keep like this for a while. Now every time I try to edit a layer style Photoshop crashes immediately. I did not need to change anything, just open the layer style, press OK and Photoshop has disappeared. I can work around by resetting the preferences that works until the next reboot, no matter if I change anything on the settings or not. Tried this on the initial version of the PS and the last update (12.0.4). Once I have reset settings yet, I can work again on the layer styles. Any of you have a similar problem or an allusion to what I could look at?

    The Lifebook has of a decent feature which I think somehow the culprit in this case: it has an on-board graphics unit and a separate GPU (nVidia GForce GT 525 M) that can be added in on a program basis. Indeed, Photoshop recognizes and allows me to enable the OpenGL functions as well, so from there, it seems. The internal GPU cannot be disabled because connect you your monitors.

    Some data on my system:

    Fujitsu Lifebook AH531

    • Intel® Core™ i5 - 2410M
    • RAM: 8 GB DDR3 1333 MHz
    • 750 GB SATA HDD 5400 U/Min
    • Windows 7 Home Premium x 64 (updated)
    • NVIDIA® GeForce® GT 525M with 1 GB of VRAM

    Photoshop CS5 x 64

    • no plugins to use/install
    • any settings not changed, not even shortcuts

    Thanks in advance

    enoversum

    WindowBlinds was probably to blame.  It's a bad app that changes the window settings and made generally bad things for the environment of the user interface to achieve a different look.

    There may be more options for things you can do (bad) to Windows, such as the screws of the metric of the display with the software from StarDock, simply because Windows is more popular - but if you don't about frivolous things with your system it can be as clean and steady work as a Mac system , if not better.  Mac have many of their own problems.

    -Christmas

  • Change the layer mask: Alt + Shift + click does not work?

    I have PES 9 w/Mac OS X.  According to Adobe using for layer masks, "to display the mask in a mask color red, hold down the Alt + Shift and click on the thumbnail of the layer mask".  It is also stated by Missing Manual for elements.  I can't get this to work and can display the mask only in itself (in black and white).  I have uninstalled/reinstalled without success.  In other words, when I change the mask, I don't see where I'm editing.  Can someone help me?

    Exit the editor, then go in your username > library > Preferences and delete:

    com.adobe.PhotoshopElements.plist

    Adobe Photoshop Elements 9 paths

    Adobe Photoshop Elements 9 parameters

    Repair permissions, and then try again.

  • Merge images & draw the layer and change the layer of the image?

    Im working on a picture of a bird where I put a white square on a single layer (drawing layer) and an image on the layer below. Then, I deleted some parts of the white to make sure the image was the lineart, if that makes sense. Now, I want to use a different image as "coloring" for the wings of a bird, but I can't do that unless I am able to er parts an image layer or merge a draw and the layer of the image and it would end by like a drawing layer. How to be people?

    Hi KayjaD.

    Sorry, you can not bring draw as editable files .ai files. Currently they can only be brought as a Photo layer.

    Sue.

  • I can't change the layer names

    Even if I double click on the names. The layers are not locked. I never had this problem in cs5.

    Hello!

    You should be able to just double click and rename your layer, as shown below.

    Since you said it does not work for you: with the layer is highlighted, go to layer > layer rename. This will allow you to rename your layer.

    Please post if you have any questions,

    Janelle Flores

  • Change the layer group

    Hello
    I need to change several layers who are grouped.
    There is a way of Change them all together without merging or without turn to Dynamic objects?
    For example apply effects and mainly offset moves?
    Thank you!

    -----

    OLA,

    EU preciso editar vários layers that are agrupados.

    HA uma'm edita-los todos juntos mesclar sem or Shem transformar em Smart Objects?

    Por exemplo apply efeitos e principalmente deslocamentos lag?

    Obrigado!

    Hi Cello.25,

    Greetings!

    You can create a group of these layers and then make the change for the Group competition.

    Apply a clipping mask to show changes to this group in particular.

    concerning

    Jitendra

  • Keyboard shortcuts do not work after changing the blending mode to a layer

    There is a strange bug that I experienced with photoshop. Whenever I change the blending mode to a layer (for example by selecting "Multiply" in the menu drop-down blending mode), my keyboard shortcuts stop working until I have click on the canvas again. It's annoying because often, I'll be on the Brush tool and I did draw on the canvas and press ctrl + z to re - activate keyboard shortcuts. I'm curious to know if this problem occurs to someone else and if anyone has found a solution for this.

    Version of Photoshop: 20150722r.168 x 64

    Operating system: Windows 10

    It happens on Windows, because the drop-down list with blend modes remains highlighted or active (around the blue line). You can press ENTER to confirm and delete the highest point around blend mode dropdown or use keyboard shortcuts to change the layer blending mode. To change the layer blend mode, you must have selected layer and then press Shift + Alt + letter for the blend mode. This shortcut does not work in the case where the tool you are using have mode option in the blending Options bar.

  • How to change the existing settings of the source for the container system

    Hello

    Cannot change settings in the system container (Oracle 11.5.10) source source.

    Please guide me how to change the settings.

    Thank you and best regards,
    Partha.

    Partha, you should not change the current container. Create a new container by copying the existing container and make any changes required in the present.

  • Photoshop CS2 create the layer of circumvention of layer Style?

    In the new versions of Photoshop, I created a layer to a layer style if I could change the style of the layer directly.  Any way to do this in CS2? Workaround or equivalent?

    You can do the same thing in photoshop cs2

    Layer > layer Style > create layers

    Or right click on the fx to the right of the thumbnail of the layer containing the layer for the same options style

  • Another user has modified the line containing oracle.jbo.Key primary key

    Hello

    In jdev 12 c

    I have a jsf page in a BTF, and there is a display of master(A:readonly table)-detail(B1:readonly table)-detail(B2:editable form) this page

    The (readonly table) B1 and B2 (editable form) are created on the same data control. There is no other layout compicated or functions on this page.

    The B2 (editable form) was based on a VO whose id is a type of DBSequence, and the new value has been created by a database trigger.

    I put

    All the columns that are updated by a database trigger or a PL/SQL call, are enabled for "Refersh on Insert" (for the case of the insertion) or "Refresh update" (for the case of update) or both in the entity object xml file.

    But when I submit/validate the page (form B2), the error msg 'another user has changed the line containing oracle.jbo.Key primary key' was always held randonly.

    And after the error msg, I can commit the data successfully by press the button validate again.

    How can I solve this problem?

    Thank you.

    The problem is that you use the pl/sql code. It is run out of the box. When a change is made in a row in this way, the framework removes upward, neither knowing that the change was done rightly and throws an error message.

    The code (which I copied from the other thread for reference) intercepts the error and re executs the lock in the case of the specific error.

    /*** customizing locking management:

    * Because attribute values can change 'outside' ADF standard life cycle,

    * when optimistic locking executes, the exception "Another User Changed the Row" is thrown.

    * In this case, we execute locking again, ignoring the exception

    */

    public void lock()

    {

    try

    {

      super.lock();

    } catch (oracle.jbo.RowInconsistentException e)

    {

      if (e.getErrorCode().equals("25014"))

      {

      super.lock();

      }

      else throw e;

    }

    }


    Timo

  • How to change the color of button

    I can create a newBrush to change the backgroundColor container, but I want to know how to change the color of the button?

    I posted here an example on how to change the color of the button here:

    Re: ScriptUI resource string: EditText: color

  • How can I change the parts of an object in motion?

    I have a character who is running, and I would change her outfit at some point without redoing the keyframing. I have two outfits made in illustrator and tried alt-do drag the 2nd outfit on a duplicate of the 1st precomp animation but instead of sticking up stick everywhere wherever he wants in the framework.

    I'm looking for this exact purpose:

    Abhishek Shankar - HCL (Cup Director) on Vimeo

    Which layer you are trying to replace?

    Simply slide the replacement layer to the timeline above the existing animation layer. The value of ICT for the beginning of the animation, select the replacement layer, hold down the SHIFT key and the parent of the new layer to the original. If you need to change the pants and shirt, then you will need to do the same thing with both of these elements. Now the SHIFT key when parenting blew up the child, the replacement layer, at the current position of the layer parent so no programming should be required. If you start the scale or rotation then either you adjust the scale and rotation of game or you will need to use the duplicate layer I want to replace the thing and then replace the images with the new layer. This can cause problems if there are things related to the duplicated layer, you may need to be a little creative. I can't say that if I see the layer that you want to replace by it all changed properties revealed in the first keyframe in the animation of this layer. For example, if you want to replace the torso layer then select this layer, press twice the key U, then show me a screenshot which includes all the properties that are modified for this layer.

    All this may be easier if you simply duplicate the composition in the project Panel, and then change the layer source footage in the double. Then you can just put the two compositions in a master model and make a transition between them.

Maybe you are looking for