New Layer Via Copy from Extension

Hello everybody,
I'm trying to create a new layer using the Layer > New > Layer Via Copy functionality... and I did scan the code using the Scripting Plug-in with this result:
var idCpTL = charIDToTypeID( "CpTL" );
executeAction( idCpTL, undefined, DialogModes.NO );
Then I did convert it to:
var application:com.adobe.photoshop.Application = Photoshop.app;
var idCpTL:Number = application.charIDToTypeID( "CpTL" );
application.executeAction( idCpTL, undefined, DialogModes.NO );
But this code raises this exception:
Error: NULL pointer was encountered
          at flash.external::HostObject/__call()
          at com.adobe.csawlib::CSHostObject/hostCall()
          at com.adobe.photoshop::Application/executeAction()
I've tried to change "undefined" for "null" or any other idea... but with no luck. What am I doing wrong here?
Thanks a lot!

Reselect is way too flaky to rely on, and is not going to survive long at the best of times.  I find the whole saving selections thing too time consuming and an annoying interruption of workflow — even if you right click and save an alpha channel.  So I nearly always copy the selected pixels to a new layer, because it works on so many levels.  You can ctrl click the layer to reload the selection; use layer styles, create shadows under the layer…
Best practice is to add the Alt (Opt) key to Ctrl j so you remember to name it.

Similar Messages

  • Layer Via Copy ??

    Help and my apologies for the absurd detail in this question!  Recently in a class I saw a Layer (or more usually a Selection) created by an 'unusual' Layer Via Copy method.  I've been unable to duplicate what happened.
    Here's what I saw - From a background layer (with selection), create a new (blank) layer.  Create a SECOND new Layer containing (!!) the 'outline' of the background layer/selection, somehow make the selection/layer appear in this layer and make the blank new layer disappear. 
    Yes, really. 
    Here are the steps I've created to get PART of the way.  Explanations and Corrections welcome, please, really, pretty please and thank you very much!
    Open an image.
    Make a (partial) selection.  (Helps you see what will happen.)
    Using Layer Menu, Create a new layer (Single Left Click [SLC] on the rectangle in rectangle next to the garbage can).
    This is Layer 1.
    From Layer 1 (!) CMND + SLC Create A New Layer.  (Layer 2)
    This new Layer (Layer 2) contains the 'marching ants' outline of the Background Layer.
    PROBLEM:  How do I make the selection - not just the marching ants - appear in Layer 2?
    You can create a solid (black) fill of the selection in Layer 2 with Option + SLC Layers Mask (white circle in gray square in Layers Menu) but though I saw this step, I think it may/might/could have occurred after merging the blank layer 1 with the (at least partially) 'filled' layer 2.
    ALSO; fyi, you can - from the background layer (with selection active)
    create new layer
    return to background layer/selection
    cmnd + create new layer
    and then if (still on L2), option + new layer mask, you get the same black fill as above but the selection disappears from the background layer.
    Thank you very much.

    Yes!  I am confused too!  But, no, I am positive of the approach as I saw it in use.  Can you read a .psd image from an e-mail?  (I'm really stupid about most things.)  If yes, then I can send each step - otherwise...
    Do these steps and watch the result.
    Open an image.
    Make a selection.
    New layer via copy from the Layers Menu Icon (L1 - blank)
    ON LAYER 1 !!!
    CMND + New Layer Via Copy (creates ...)
       L2 and it will have the marching ants outline of/from Background. 
    (Option+Layer Mask and the selection appears in solid black in the layer mask box)
    NOTE:  You don't have to create that blank L1 - you can 'just' from Background/selection CMND+New Layer and get the outline copied to L1(in this case).  What I saw involved first creating a blank layer as above - really.  The next steps, make the selection in L2 appear and the L1 disappear (deleting is cheating...)
    Wish I had a clue
    Is what I've done - so far - right?
    How to make the layer/selection appear in L2.
    Thanks.
    chris pantaleoni
    Pantaleoni Photographer
    2690 Historic Decatur Road, Suite 201
    San Diego, California 92106
    619-857-7280  e-mail:  [email protected]

  • Layer Via Copy vs Duplicate Layer

    In CS4, what is the practical difference between:
    Layer via Copy (Layer > New > Layer via Copy - or Ctrl/J)
    and
    Duplicate layer (Layer > Duplicate Layer).
    Asked another way: when are they NOT interchangeable.

    If you want to duplicate a layer to another document, they are not interchangeable. Otherwise, I'm pretty sure they are.
    With smart objects, new layer via copy tears off the smart object from other duplicates, so edits made to smart object A do not get copied to smart object B. If you just make a duplicate smart object, then when you edit A you edit B as well.

  • Layer via Copy, Free Transform, Multiple Layers, Doesnt work?

    Hello,
    I am using Adobe Photoshop CS6, latest version as of 05/25/12
    I have 19 layers, each has a 1200x1200px texture. These are of course overlapped, so setting them all to visible will only show the top layer.
    All layers are rasterized, and contain 1200x1200px:
    1) I select all 19 layers using shift+click, all are highlighted (in the layer pane).
    2) I select a region using the selection tool, in this case a rectangular region that is 172px high and 35px wide.
    3) I right click the selection, and then select: layer via copy. (Note, Layer via cut is disabled for some reason)
    4) *problem* It creates 19 new layers with the full image from the selected layers and not the selection which is what I wanted to place in the new layers.
    5) *problem* when I right click the selection and select "Free Transform", the transform box surrounds the entire canvas and not the selection.
    6) *problem* when I skew, it skews the entire image and not just the selection.
    7) *problem* Previously, I have been able to select a layer from the layer pane, go to image menu, select adjustments, brightness/contrast, and adjust the brightness/contrast for just that layer. Now it wont let me.
    8) *related problem* If I have 3 layers (background, 1, and 2) on a 1200x1200 canvas, with the image in layer 1 being 150px, and the image in layer 2 being 150x, each rasterized, and then stack the images on 1 and 2 over eachother, then select both layers, then select a region inside the stacked images, then select free transform, the free transform selection embodies all pixels inside the canvas (not the entire canvas this time) and performs the transform on these pixels and not the original selection.
    If I do it making all the layers visible as well as selected, it behaves the same.
    What appears to be happening is Photoshop is ignoring the selection and for some reason is using a pixel region (or if pixels cover the entire canvas, the whole image) when performing actions intended for the selection.
    What's strange is when I made these textures, I started out with 19 150x150 pictures, I set the canvas size to 1200x1200, selected all the layers in the layer pane, selected the 150x150 image in the middle, and was able to move all 19 textures to the top right corner, able to switch to transform on all 19 pictures, able to rotate 180 degrees all 19 pictures, was able to flip horizontal all 19 pictures, then able to copy all 19 pictures to new layers, move the 19 pictures all at the same time to the right 150 pixels, rinse and repeat, to eventually come out with 19 1200x1200 textures tiled from the 150px pictures. In other words, I did exactly what I am attempting to do with the 1200x1200 pictures with the 150x150 pixtures and it worked like a champ.
    Something has changed, maybe an option somewhere got clicked, something. I don't know.
    The end goal of course is to take a selection of all 19 of the 1200x1200 pictures, transform, then skew that image to make a collage of images applied to an added background. Performing this on all 19 textures and getting the same exact skew, etc would take days considering I need to do about 15 of different portions of the tile.
    Need some help here... is there an option somewhere that makes photoshop ignore the selection and perform the actions on all the images?
    Best regards,
    Dustin

    Just ran into this problem today Dustin. You can only create new layers via copy from one layer. What I ended up having to do is copy all of my images that were on different layers. Then I merged them. Select all the images you copied>Layer>Merge. So now I have two copies of artwork on the same canvas. One that is all different layers and one that is now one layer.  Then I was able to select the portions of the new merged layer I wanted and create new layers via copy. Then I erased the extra, merged layer.
    You don't have to copy your initial images. I just did in case I wanted to edit them separately later.
    I hope I understood your first problem correctly.

  • Resolving Layer via Copy or Layer via Cut - Grayed Out

    There are many times you will "place" a picture file inside your photoshop document, and want to resize it, put it in a different layer, or crop the image inside photoshop - but you may find a simple error message or grayed out layer via copy/cut prevents you from doing so.
    To do this, you will most often do this one of three ways:
    1) Select the Marquee tool and outline the area of the image you want to copy or cut
    2) Go to Layer > New > Layer via Cut/Copy
    3) Click Ctrl+J
    Many times, you will find none of these selections work. All options will be greyed out. You may be tempted to create a new layer, and then use one of these options in the new layer. In this case, you will get the error message "Could not make a new layer from the selection because the selected area is empty."  All these errors are a result of photoshop not identifying pixels that you are trying to cut/copy.
    There is a simple solution to this problem.  Go over to the "Layers" box, and click on the layer listing for the layer where your newly placed image resides. Make sure your image is the only item in this layer, if not relocate the image into a new layer by itself.  Right-click on the layer where your photo is located in the "layers" box and click on "Rasterize Layer".
    Once you do this you will now be able to follow one of the steps above to Layer Via Copy or Layer Via Cut.
    Good luck.

    you will get the error message "Could not make a new layer from the selection because the selected area is empty." All these errors are a result of photoshop not identifying pixels that you are trying to cut/copy.
    I would say they are the result of the active Layer not being a pixel layer or being empty in the selected region, judging from the remedy you describe.
    And what you seem to call »box« goes by the name of »Panel«.

  • Photoshop CS6 Layer via Copy Question

    Hi,
    I've noticed that when a selection is Layer via Copyed in Photoshop CS6, it appears brighter and slightly more saturated in color than the original selection it came from. Currently I manually make lighting and color adjustments to match it back to the original, but is there a way to prevent this altogether? There are no masks or adjustment layers or any other tools being used when this happens -- just a simple Layer via Copy.
    I'm not sure if there is a setting that will help cut out that time consuming manual step of retouching to match the original selection, but any suggestions would be helpful. Thanks!

    There shouldn't be any difference if it's just layer via copy in the same document.
    What operating system are you using?
    Is photoshop cs6 up to date?
    (Help>Updates from within photoshop cs6)
    Could you post a screenshot(s) showing the difference and your layers panel?

  • Problems/limitations of Layer Via Copy (Cmd+J)

    Some results of Layer Via Copy (Cmd+J) when pixel layers are targeted seem unusual to me. Depending on initial conditions, the result can be entire layers being duplicated instead of just the selection, masks not being duplicated, and the selection being lost plus Select > Reselect being unavailable. It's not difficult to devise workarounds but I think something may be amiss.
    The following table shows my expected and actual results for CS6 on OS X 10.6.8. Results which I find strange are in red triple caps.

    PECourtejoie wrote:
    JJ, line 4 works in CS3. are you sure the layer is targeted?
    It may be available in CS3.  The second machine I had CS3 crashed a while back, so I can no longer install CS3 without calling Adobe for I did nod deactivate it.
    I may have to do that for CS3 is the version of Photoshop that does not have bugs that affect what I use in Photoshop.
    The only versions of Photoshop I can test these days are CS2 CS5 and CS6.
    CS6 is so buggy I don't use it.
    With CS2 row 4 is available, however the new layer created is not correct for the targeted layer layer mask does not affect the creation of the new layer. I retested CS5 and though it looked like I had targeted the layer, the actual target was the layer's layer mask. When I targeted the layers contents the command was available like in CS2; the created layer did not reflect the transparency caused by the layer's layer mask.
    CS6 is still an other story: while cs6 works the same when the layer layer contents is the target, the command is available when the layer mask is the actual target, and the result is that the layer is duplicated and the selection is not honored.
    Here are some screen captures
    CS5 with layer contents targeted
    Results
    CS6 with Layer Mask being the target
    results
    In any case row 4 does not work the way I expected it too.
    I never ran into this problem for normally I use stamp visible layers to create the new layers I want.
    Shift+Alt+Ctrl+N   Shift+Alt+Ctrl+E  or simply Shift+Alt+Ctrl+N+E
    Stamp visible layers does not honor an active selection but leaves it active, so you can add it as a layer mask by just clicking the add layer mask icon in the layers palette after stamping visible layers.....

  • How to create a new view by copying from standard view in IC webclient?

    Hello, expert,
    I need to enhance a sap standard component (BP_Factsheet), inside it I need to create a new view by copying from an existing standard view (Acitivities). However when I try to make a copy, I was asked for destination BSP application, I entered the Z-Application which I used when defining enhancement for the component. After the copy, I don't see the new view.
    Then I tried the destination BP_factsheet, instead of the z-application, then after the copy, I can see the new view. However since it's in SAP application, it seems like it's a MOD, not enhancemnet, and inside the new view, the classes (for context, context nodes, etc.) are not in custom namespace (not starting with Z).
    So please let me know how can I make a copy of sap standar view in custom namespace.
    Thanks in advance.
    Jayson

    When copying you can put any BSP name..normally the practice is to prefix the standard name with a Z.
    Secondly when you want to make changes to the individual classes and methods you need to right click and say enhance. Then the AZ class names etc would be generated. The view should appear in the component wherein you copied the original view from.
    I hope this helps.
    The cookbook should have details on this. Otherwise also its quite intuitive.
    Award points if it helps.
    Thanks.

  • Creating A/R Credit Memo via copying from A/R Invoice

    Hi all,
    I have a problem creating A/R CREDIT MEMO via copying from AR invoice. there are no list of invoice appear eventhough the Customer im trying to add in credit memo are exists in ar invoice.
    thanks
    vin

    Hi Melvin....
    First of all welcome to SAP Forum.
    Let me tell you its a wrong forum where you posted your query.
    You should post your query in SAP Business One Core Forum.
    Now for your doubt I guess You are trying to copy Service Type AR Invoice in Item Type Credit Memo.
    Just check your Document Type (Item or Service) must be same for both Target and Base Doc while Copy......
    Regards,
    Rahul

  • The command "Layer Via Copy" not currently available

    When I use some purchased actions in CS4, I sometimes get "the command 'layer via copy' not currently available."  Does anyone know why?

    No-one will be able to tell you without seeing the Actions. There have been changes to Photoshops layering structure over the years, meaning that some older Actions recorded on older versions will encounter problems.
    "Layer via copy' not currently available" suggests that either a group or nothing is selected in the layers panel. 

  • My playlist didn't show up on new laptop after copying from the old laptop

    What can I do when my playlists didn't show up on new laptop after copying from the old one?

    abombaci wrote:
    I just simply copy only the whole iTunes music folder to my external hard drive, that's it and it goes good. That way if you just copy the whole iTunes folder it also carries along with it all it's subfolders. If subfolders aren't carried over you may end up with a library with missing album arwork. Album artwork, iTunes media folder, itunes previous libraries, itunes XML folders etc., etc. You get the picture.
    Yes.
    This is much better way than changing the media folder location.
    Keep everything in the same iTunes folder.
    However, when I do it this simple way as compared to the Apple way it doesn't save my play counts or ratings.
    Since it is exactly the same library, everything should be the same.
    Then just go to external drive click on iTunes folder and then in iTunes add folder to library and all your songs load up. This isn't moving the library but just backing it up.
    You don't need to add anything.
    Hold Option and launch iTunes.
    Select Choose library... and select the iTunes folder you copied to the external.
    You can delete then /Music/iTunes/ folder as this same folder was copied to the external and this is now your iTunes library.
    You can also do this top make a backup of the iTunes library (thoug you should be making a backup (Time Machine or some other backup program) of yoru entire computer.

  • Copy/Paste Frames in New Layer Un-Synching from Guide

    I recently upgraded to CS4 from Flash MX 2004, and I'm experiencing a problem with something I've literally been doing for years in Flash. What I do is copy/paste keyframed animation from one layer into a new empty layer. I then trim the animation as necessary, insert a new key frame, and repeat this action over many layers. In all my previous Flash version experience (think back to Flash 4 I've been doing this), the animation pastes perfectly into the new empty layer. This allows me to fill a street map of roads with arrows down a stretch of road that repeat perfectly over a 8 frame animation.
    What's different is in CS4, once I paste in the animation into the new layer, it un-synchs from the motion guide. I then have to manually re-synch, or attach, it to the guide.
    I need for this NOT to happen. Is there a setting or preference some where I am not seeing that prevents the un-synching from happening? I don't understand why CS4 would be different in this regard to the previous versions of Flash I've had experience with.
    Thanks for your time.

    A friend who has worked for me in Flash doing what I do and is now in school has informed me that guides in CS4 are no longer used, that they want you to use motion tweens instead, so the guides are difficult to use now, and as she put it "They found a better way to do motion so they want you to use the new way". She also informed me that this not the case in CS3, and that you can save your CS4 file as a CS3 file and use the guides normally without buggy behavior.
    She also confirmed that what I do in Flash can't be done, or rather is just grossly ineffective and time consuming, with motion tweens.
    If Adobe is reading this, I for one would sincerely appreciate it if you un-did the buggy behavior of guides, and reinstate the code in CS4 to allow us to continue using guides normally.
    Thank you.

  • CS6 - Can't drag object to new layer via dot

    I can't seem to drag a selected object to a different layer via the colored dot in the Layers palette in CS6.
    I've been doing that since I can remember. Is there some new CS6 default setting I'm missing?

    It is everything to do with compound paths - all other objects, as long as they do not contain a "partial compound path" will copy or move between layers, just fine, using the click and dragging of the small square icon in the layers palette.
    I have this issue - and it looks like no resolution is forthcoming from Adobe (the issue is over a year old on this forum). I called their tech support but am told that because we use 3rd party fonts and 3rd party plugins (Esko prepress system) they will not offer support for the product (call me crazy - but every printer on the planet is using 3rd party fonts - crazy as that may sound!!! - Wacky printers).
    This is not a 3rd party issue however - it is a change from CS5 to CS6 in how the software handles copying between layers in the layers palette or how compound paths in general are now addressed in CS6. They cannot tell me if a change exists. I sort of just would like to know...
    For now, I will need to select the partial compound path - copy the object - deselect the object  - move to my target layer - paste in place, to accomplish the same end result.
    NEXT VERSION WISH: make it selectable how this behaves - lock partially selected compound paths - or allow partial compound paths to be moved/copied between layers. aarrgghhh.

  • New plan version - Copy from plan to plan

    Hello,
    I copied a new plan version X from plan version 0 with KP97. Now I realized that only planning primary costs were copied. Is it possible to copy also the secondary costs (resulting from assessments) to the new plan version. If not, is it possible to copy the plan assessment cycles from version 0 to version X. Or can the existing plan cycles (KSUB) can be used for both versions (hoever I could not find a selection field where I can choose the required plan version)?
    Thank you in advance for your feedback.
    Ali

    Hi,
    a plan assessment cycle contains CO-version information in its header date.
    You can use KSU7 to copy a plan assessment cycle from version A to version B, just enter CO-version B in the header data of the copied cycle and ensure that in "sender values" the version is initial (thus the header data CO-version takes place).
    BR Christian

  • I created a new layer and copied the contents of another layer into the new layer. Now whenever I ed

    I have a template that I am editing. I have created new layers by duplicating an existing layer. The problem I am having is that anytime I make a change to a duplicated layer it changes the original as well. ie if I attempt to edit the action script on the new layer it changes the action script on the original? It seems as though they are linked and I can not find a way to unlink them??

    You should be able to edit the immediately present contents of different layers without affecting other layers, but if you are editing anything at a level below the layer, such as doubleclicking to edit an object in that timeline, you are changing it anywhere it is used.

Maybe you are looking for

  • How to fix applepushservice.dll issues for downloading iTunes on Windows 7 64 bit

    I recently had iTunes crash on my home PC, Windows 7 64-bit.  I have tried several attempts to uninstall and reinstall the program and it still does not work and I receive error messages.  The latest:  The program can't start because ApplePushService

  • Making disabled links appear like textview

    Hi there, I have to display a combination of links and textviews in the same column within a table.  Because I cannot intermix cell editor types in the same column, I have to disable the links in order to achieve this.  The issue then is, my disabled

  • Error loading Indesign CS4 Debug plug-in. Sxs trace attached

    When I try to open Indesign Debug after placing my plugins in the plug in folder, I get the following Sxs trace: INFO: Parsing Manifest File C:\Program Files\Adobe\Adobe InDesign CS4 Debug\Plug-ins\IPG3EXPORTER.PLN.     INFO: Manifest Definition Iden

  • IWeb results in processer spiking

    Hi I own a MacBook core duo 1,83 ghz. The Macbook was purchased in september 2006. I've had absolutely NO problems with it, until recently. Whenever I launch iWeb (regardless of the number of other programs running) after a few minutes the program do

  • Image preview does not appear anymore

    For a while now every time I click on an image in the Google image result page it doesn't open the image previewer anymore, but instead takes me directly to the website where the image is from and there I have to actually search for said image. Somet