Add a New Layer As a Last Layer

Hi Friends,
How to  Add a New Layer As a Last Layer in indesign scripting.
If the Document has 5 layers in the sense,the newly added Layer should be the 6th Layer.
Please Give ideas.

JesRoberts wrote:
.. If the Document has 5 layers in the sense,the newly added Layer should be the 6th Layer.
Please Give ideas.
Adding a layer to a set of five will automatically make this the 6th. I cannot see any other way.

Similar Messages

  • CS4 - New layer won't show added color overlay, gradient, patterns?

    I'm using CS4 Extended for a few years... its been working fine but all of a sudden my layers are blank? I've tried Google but can't find a solution. Started a new graphic for a label using a 300dpi resolution, 23.250" inches wide and 2.500" high. Filled it with Black, then attempted to create a new layer to create a semi-transparent pattern above the black. It shows up in the layers column but the actual new layer doesn't show up on the artwork workspace. I can add text in color as a new layer, but the pattern layer doesn't show. Went and tried using an existing file... old layers work fine, but try to add any new layer other than text and it doesn't show. I know this is something dumb that I somehow clicked on and I'll kick myself when somebody tells me to check.... whatever LOL.
    Thanks in advance and don't laugh.

    Does the ext directory have the php_oci8.dll? In the original steps the PHP dir is renamed. In the given php.in the extension_dir looks like it has been updated correctly. Since PHP distributes php_oci8.dll by default I reckon there would be a very good chance that the problem was somewhere else. Since this is an old thread I don't think we'll get much value from speculation.
    -- cj

  • Create new layer after active layer

    Using scriptlistener I can create a new layer called "newlayer" after the active layer. So far so good.
      var id197 = charIDToTypeID( "Mk  " );
      var desc49 = new ActionDescriptor();
      var id198 = charIDToTypeID( "null" );
      var ref41 = new ActionReference();
      var id199 = charIDToTypeID( "Lyr " );
      ref41.putClass( id199 );
      desc49.putReference( id198, ref41 );
      var id200 = charIDToTypeID( "Usng" );
      var desc50 = new ActionDescriptor();
      var id201 = charIDToTypeID( "Nm  " );
      desc50.putString( id201, "newlayer" );
      var id202 = charIDToTypeID( "Lyr " );
      desc49.putObject( id200, id202, desc50 );
      executeAction( id197, desc49, DialogModes.NO );
    However, without the script listener we have
      var layerRef = app.activeDocument.artLayers.add()
      layerRef.name = newlayername
      layerRef.blendMode = BlendMode.NORMAL
      // Move the new layer after the current layer
      layerRef.moveAfter(app.activeDocument.artLayers[layerIndex])
    The moveAfter command needs an index, which would mean looping though all the layers till to find the active layer (since we can't access that throughthe DOM). This seems a bit long winded to me. Or am I missing a trick here?

    Well I would just use the scriptlistener code but if you don't want to for some reason you should make a reference to the activeLayer before add the new layer. Then use that reference as the moveAfter argument. The moveAfter method needs a layer object not a layer index. You need the index only because you are trying to supply that layer object by index.
    layerRef.moveAfter(someLayerRef);
    Also ( not that it really matters ) when scripting was first added there were several methods for moving a layer, moveAfter() was one of those. Those methods were combined into one method and the old methods are no longer documented in the javascript reference. So below is the documented way to move the layer.
    layerRef.move(someLayerRef, ElementPlacement.PLACEAFTER);

  • New layer for each artboard

    Hi,
    I've just recently started learning Illustrator and have used photoshop for a long time.  I have been getting on OK and yesterday had a file open with about 4 different artboards (was making wedding invitations) and went to start a 5th one and decided to add a new layer to this artboard and it then struck me that all the artboards had exactly the same layer!  Now as a photoshop user this bamboozled me and the photoshop part of me gets annoyed, because I would like every artboard to have a different set of layers so that they are always separate.  Can anyone tell me if I'm just not grasping how illustrator does things or is there a way to set up illustrator to have a new set of layers for every artboard?  Is it just a case that I have to create a new layer for each artboard manually?
    Sorry if this is a basic question, but I've searched for this answer but couldn't find it.
    Cheers in advance.
    Oh and just in case, I'm using CS5 on an iMac.

    and the photoshop part of me gets annoyed
    You need to "turn off" the photoshop part of you when working in Illustrator. Two entirely different worlds, and rightly so.
    because I would like every artboard to have a different set of layers so that they are always separate.
    If that's what you want, there are other programs in Illustrator's category which provide that. Corel Draw X3 is one example. In real use, though, page-specific layers is not the panacea you may think. It has resulted in much tedium and confusion and consternation in the Draw community.
    If you insist on working that way, there's no reason you can't set up your file with top-level Layers coresponding to each Artborad. But you'll probably soon find it more cumbersome and tedious than actually practical.
    Forget trying to think of Illustrator Layers and Photoshop Layers as similar things. They are not. Two entirely different constructs. That's a good thing. They should not be made to "work alike." If anything, Photoshop just needs to change the name from "Layers" to "Films" or "Overlays" or something like that, to help stop this widespread misconception among newcommers.
    JET

  • New Layer on top of a Mask Layer causes problems

    I have a mask layer that shows/loads an imported flv inside of it.
    the masked layer has a blank keyframe with the following code in it.......
    var myLoader:Loader = new Loader();
    addChild(myLoader);
    var url:URLRequest = new URLRequest("mymovie.swf");
    myLoader.load(url);
    What happens is when i add a new layer to my main flash movie, right above the mask layer, it messes up the movie. Instead of it loading in the mask, it loads on top of everything. Why does this occur?

    I created an empty movie clip and placed my two mask layers and it worked fine.
    Thanks!

  • Using Adobe PhotoShop CS4, I cannot add text to a new layer. It was always a snap with previous versions of OS 10. Has anyone else noticed issues with CS4 and Lion? Many thanks in advance. Pete Hendricks

    Using Adobe PhotoShop CS4, I cannot add text to a new layer. It was always a snap with previous versions of OS 10. Has anyone else noticed issues with CS4 and Lion? Many thanks in advance. Pete Hendricks

    Happy to report that iTunes Match has returned to working like normal on iTunes 10.7 on my computer today. If any iTunes engineers read this thread, I really appreciate the fix.
    Has it returned to normal for you?

  • Add option to new layer setting to narrative photo.

    What the problem is, when i want add new layer image. The view selecting gallery shown local image. Can i setting to narrative photo browser when i want add layer? Its just difficult to add layer coz "the local" arrange by old date images first. Thanks.

    There is a special forum for feature requests where you might want to post your request: http://feedback.photoshop.com/photoshop_family

  • Motion tween adds new layer

    I'm rather belatedly getting to grips with the new tweening system introduced in CS4.  To be quite honest it's been a nightmare, but I'm starting to see its good points now.
    One thing that still drives me crazy is when you create a new tween and Flash creates a new layer for you and puts the tween into it.  Why?  And how do I stop it?  Over the course of a 10 min animation with a lot of tweens I could end up with hundreds of layers!
    Thx.

    It only creates a new layer when you don't have everything selected. This is because you cannot have the tweened and non-tweened element on the same frame (you can have non-tweened elements on the same layer, just not the shared frame - as with any tween).
    If you don't want it to create a new layer, make sure that everything is selected on that frame and it will create it on the same layer.
    Jen.
    PS: This guide may help: http://www.adobe.com/devnet/flash/articles/motion_migration_guide.html

  • Is it possible to add a logo layer to an H264 video

    I just found out the following Adobe FAQ :
    quote:
    Q: Does the H.264 implementation in Flash Player support
    alpha channel?
    A: No. Our first implementation does not support alpha
    channels using H.264...
    Would that means that it is not possible to add a logo layer
    to an MPEG4/h264 video

    Unfortunately, fading out at the end and fading in at the beginning does not create a seamless loop, since there are a few moments when the clip alpha is 0% and everything is completely black.This might be ok for some situations. But for creating a seamless loop, I need to have something, well, more seamless.
    Actually, I think I may have come up with a possible workaround to simulate a true seamless loop of an embedded video (at least get closer to it) by placing a still image (which has been converted into a movie clip) of the first frame on a new layer at the last frame, and then copying that keyframe and pasting it about 25 frames before the end, then alpha fading from the first keyframe to the final frame.
    It is not perfect, but it's something.
    Perhaps someone else might have a better solution?

  • Installing new layer styles in PSE 7

    What is the correct way to install new layer styles into pse 7? ( I use Vista)
    Do I move my extracted style file into the layer styles folder by following this pathway: program data>adobe>photoshop elements>7.0>photo creations>layer styles.
    Do I need to create a metafile too?
    Thank you for helping me, I have about a dozen styles I need to add, but I am unsure how to get it done properly.

    Hello,
    You need to create a metadata.xml file too to view it in a specific category of your choioce.
    You need to paste the two things :
    1) .asl file.
    2) metadata.xml,
    to the following location:
    C:\ProgramData\Adobe\Photoshop Elements\8.0\Photo Creations\layer styles.
    Here you need to add the two files and relaunch PSE. This will show you the presets in the layer styles category with.
    While creating the metadat.xml file you need to take care of two things:
    1) Add a new category name so that you can easily find them.
    2) You need to verify that Type value is set "Style  as mentioned :  <type value="style" />
    Hope this helps you.

  • Javascript: copy an object to a new layer and tracing it

    Hello everybody:
    I'm using Illustrator CS5 on Mac. I need to copy an objecto to a new layer and tracing it. I'm trying to execute the script above. There is no problem with the copy to a new layer, but Illustrator returns the error "newItem.trace is not a function". Sorry because this is my first script and i'm lost.
    Thank you in advance.
        var myDoc = app.activeDocument;
        var sel = myDoc.selection[0];
      if ( myDoc.selection.length > 0 ) {
        var newLayer = myDoc.layers.add();
        var newItem = sel.duplicate( newLayer, ElementPlacement.PLACEATEND );
        var myTrace = newitem.trace();
        var myOpts = myTrace.tracing.tracingOptions;
        myOpts.tracingModeType = 'TRACINGMODEBLACKANDWHITE';
        app.redraw();
        myTrace.tracing.expandTracing();

    Hi Jose, if your selection is other than PlacedItems or RasterItems, you have to rasterize it first.

  • I built an ad using layers saved it and then converted it to a jpeg. Now when I go into elements 11 to do anything else it will not allow to copy and paste to create a new layer. What am I missing?

    I built an ad using layers saved it and then converted it to a jpeg. Now when I go into elements 11 to do anything else it will not allow to copy and paste to create a new layer. What am I missing?

    You know that you lost the layers when you saved it as a jpeg, right? But you're saying you can't add layers to the jpeg now when it's open in the editor? Go to Image>mode and be sure it's RGB, for starters. Are all the commands in the Layer menu grayed out?

  • Can't drag image onto stage in new layer, from the library?

    For a text book assignment we have to make a new layer and then drag a image from the library panel onto the stage but it won't let me? The new layer doesn't look the same as the rest in the timeline panel too.

    Hi,
    Thank you for your advice, but sadly it isn't locked. I can drag an image onto a layer already there just not a new layer for some reason. I'm behind in class because of this issue but I'm at a loss. I know how to take a screen shot but how do I add it to here, I pasted it in microsoft word but it wouldn't allow me to upload it as a image...

  • Why, when I paste my selection in a new layer, is it 10 times larger than when I copied it?

    Why, when I paste my selection in a new layer, is it 10 times larger than when I copied it?

    Kevin If you don't understand don't try to take the discussion offline via private message.  Other that have the same problem will not benefit if taken offline here is you PM.
    Hi,
    Thanks for your response to my question. What is the best way to adjust to match resloutions of pictures/photos, etc in PSE 12. I am trying to layer photos and selections from photos but when I cut and paste, sometimes I get this HUGE image that doesn't even come close to fitting on the screen.
    Thanks!
    Kevin
    Kevin
    You need to understand pixels better know what is going on when you do things.  All pixels are not created equal.  Some have better quality the others.
    When you have a camera that take captures  3000x2000 px for an image and you have a good lens and exposure setting you wing up with 6,000,000 quality pixels for your image.
    If you resample that image  for the web to fit within 300x200 pixels you wind up with a 60,000 high quality web size image. Or a high quality image that will fit on your display at its resolution. The images resoultion setting is meanless for displays use their resolutuin they do not support image print DPI resolution setting.  And Displays do not hava a 72DPI resolution. 
    So when your post processing think about Pixels DPI is meaningless except when you use a unit based on DPI like inches.  However also remember Displays do no support the images print dpi resolution.  The only time 1" on display equal 1" in print is when the images print resolution is the same as the display you are using. All displays do not  have the same resolution/ Most desktop displaye are around 100DPI that is changing and Laptop and tablets can have resolution above 300DPI. So what will nor fit on your displat may well fix on a laptop or tablet.
    DPI is actual pixel size 100DPI pixels a 1/100" x 1/100" = 10,000 per square inch  300DIP 1/300"x 1/300"  90,000 px per sq inch.
    The same number on pixels image on a 300dpi display is 9 time larger on a 100Dpi display. What may not fit one your low resolution display may fit on the same size high resolution display for the display  displays more pixels then your display can.
    If you resample that 300x200 web size image to back to a 3000x2000 pixel image for print you wind up with 6,0000,000 lower quality pixels. 
    Though the 300X200 pixels image was a high quality web size image much of the original 6,000,000 image quality was reduced in the 300x200 px image. Much of the detail you had in the original 6,000,000 pixels image was discarded in the process.  The new 6,000,000 pixels image was made only from a 60,000pixel image they were not captures using a camera exposure.  The camera had the actual real detail in front of it to capture.  All the computer had were 300x200 pixels it has to add details for the larger image and it does by interpolating the 300x200px image.
    Preserve the pixel you get from your cameras. They are the highest quality pixels you will ever have for your images.  Every time you resample an image up or down in number of pixels you loose some image quality.   Not one of the original pixels remain intact you wind up with a totally new image created by interpolating the old image.  Do not save the new image over the old image and loose your good high quality pixels. 

  • Getting pixelation when I add a camera layer to my imported .mov.  Even more pixelation when rendere

    I've created a composition with animation in After Effects.  Because of the complexity of the composition and its many layers, adding a 3D camera layer to it spawned a whole lot of issues with the wipe effects I had on the pre-existing layers and movement of my layers.  So I rendered the composition without the camera layer, nested the .mov into a new comp and added a camera layer.  The animation works great but I'm getting a lot of pixelation.  Highest HD settings, full resolution, preserving quality of layers when nesting and not sure what's happening.  Any ideas?  Thanks!

    Ok, so here is a screenshot of the original composition.  There is no camera layer added here and as you can see the resolution is very clear with little or no pixelation.
    Next, is a screenshot of the above composition, after it has been rendered and imported as a .mov in the second composition.  Here is where I added the camera layer.  The reason I did this is because when I added the camera layer to the first composition (pre-render) my layers would move or resize and my initial animations with the doors opening would be thrown off and my wipes wouldn't work correctly.  It became so time consuming to do it this way and have to go back and adjust everything, so I decided to go the quicker route and export then nest the .mov and then add the camera layer. As you can see it becomes more pixelated and as Andrew says "soft" around the edges.
    Here is a screenshot from the above rendered comp's .mov file.  In the .move it seems even more pixelated and the color is not as sharp either.  It looks faded.  While it's not too bad, it differs from the rest of the composition I have it combined with in my final composition, so it stands out.  This section is my most complication and it should stand out in a good way, and we don't want the quality to distract the viewer from message and fun animation.
    So if Andrew is correct, then do I have to go back and add the camera layer to the original composition and if so, is there a way to do so that won't alter the layers and animations?

Maybe you are looking for

  • Batch determination in SD

    Hi, Batch determination setup for SD in spro: 1 - At SalesAreaTie to Batch Determination Schema LG=>BatchMgmt=>BatchDetermination&BatchCheck=>BatchSearchProcedureAllocation&CheckActivation=>AllocateSDSearchProcedure/ActivateCheck. 2 - At Sales Item C

  • Letter of Credit treatment in liquidity forecast FF7B

    Hi there, My client has a requirement to display letter of credit for import purchase in the liquidity forecast report. My original thought is to treat the L/C as the the noted item using a special G/L indicator, so it can be captured in FF7B. Howeve

  • Strange heavy memory loss (storage) when saving pdf dokument in Preview

    This is already taking all of my day and I still havent got closer to a solution, so I really need some help!! I am currently editing lots of pdfs and other files for notes. There is one particular big file, ca. 300 MB (part of a book). When I edit t

  • HHHEELLLPPP!!! My Powerbook is falling apart!

    Hi - Please help. I was online today and my mac hung for about 10 minutes and ever since, I can't open iTunes, software update, iMovie, all of my widgets have disappeared from my dashboard and I can't install anything. What's going on? I'm starting a

  • Dum or take more time to execute this query

    SELECT AFPOAMEIN AFPOAUFNR AFPOMATNR AFPOPSMNG AFPO~PWERK        AFPOWEMNG AUFMAUFNR AUFMBUDAT AUFMBWART AUFM~CHARG        AUFMDMBTR AUFMERFME AUFMERFMG AUFMMATNR AUFM~MEINS        AUFMMENGE AUFMSHKZG AUFMWAERS AUFMWERKS MARA~MATKL        MARAMATNR M