Open as smart object bound

Hello

IAM looking for a solution to open the files in a folder

and then copy into a document.

His good work, but I need the files linked smart object.

Someone knows a solution?

Here is my Code so far:

See line 33. Convert to smart object:?

var file = new File('C:/User_MY PATH.PSD'),
docRef = open(file);




// Use the path to the application and append the samples folder
var samplesFolder = Folder('C:/USERS_MY FOLDER');


//Get all the files in the folder
var fileList = samplesFolder.getFiles()


  // open each file
  for (var i = 0; i < fileList.length; i++)
  {
  // The fileList is folders and files so open only files
  if (fileList[i]instanceof File)
  {


  open(fileList[i])


  // use the document name for the layer name in the merged document
  var activeDocName = app.activeDocument.name;
  var targetDocName = activeDocName.substring(0, activeDocName.lastIndexOf("."));


  // Copy the Document
  app.activeDocument.selection.selectAll()
  //convertToSmartObject(); THIS ISNT WORKING - CONVERT IT ?


  app.activeDocument.selection.copy()


  // don’t save anything we did
  app.activeDocument.close(SaveOptions.DONOTSAVECHANGES)


  //Select specific layer to paste the copy, this is to make sure the layers are in a specific position
  var doc = app.activeDocument;
  doc.activeLayer = doc.artLayers.getByName("bgr");


  //Paste Document
  app.activeDocument.paste()
  app.activeDocument.activeLayer.name = targetDocName


  }
  };

Scriptlistener of use:

var idPlc = charIDToTypeID( "Plc " );
    var desc2 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
    desc2.putPath( idnull, new File( "C:\\Photos\\myPhoto.psd" ) );
    var idLnkd = charIDToTypeID( "Lnkd" );
    desc2.putBoolean( idLnkd, true );
    var idFTcs = charIDToTypeID( "FTcs" );
    var idQCSt = charIDToTypeID( "QCSt" );
    var idQcsa = charIDToTypeID( "Qcsa" );
    desc2.putEnumerated( idFTcs, idQCSt, idQcsa );
    var idOfst = charIDToTypeID( "Ofst" );
        var desc3 = new ActionDescriptor();
        var idHrzn = charIDToTypeID( "Hrzn" );
        var idPxl = charIDToTypeID( "#Pxl" );
        desc3.putUnitDouble( idHrzn, idPxl, 0.000000 );
        var idVrtc = charIDToTypeID( "Vrtc" );
        var idPxl = charIDToTypeID( "#Pxl" );
        desc3.putUnitDouble( idVrtc, idPxl, 0.000000 );
    var idOfst = charIDToTypeID( "Ofst" );
    desc2.putObject( idOfst, idOfst, desc3 );
executeAction( idPlc, desc2, DialogModes.NO );

Tags: Photoshop

Similar Questions

  • LR4.1: 'Edit In' &gt; 'open as Smart Object in Photoshop... "function. "does not work with 32-bit

    Hello

    I am running LR4.1/CS5/ACR6.7 on a Win7 64 bit system.

    The function 'Edit-In' > 'open as Smart Object in Photoshop... '. "works Ok with raw files (.) (NEF).

    However, when I try to use the same functionality with 32-bit. TIFF files (which came out of the LR4.1 'Edit' > 'Merge to HDR Pro in Photoshop...) ("another feature), nothing happened (the Photoshop windows application opens but out of the picture I have just chosen).

    I used engines research and Adobe online help to see if there was any limitation preventing the use of this feature with 32-bit. TIF files but could not see this note.

    Thanks for your help!

    Albert

    Have you tried convert your 32-bit Tiff in a DNG (could save first...)?

    The new DNG specification is supposed to manage higher-bit images. Maybe the DNG format you will get beyond the issue.

  • Camera Raw open as smart object is not re-opening Camera Raw on double click!

    I can't get the Camera Raw dialog to reappear after I open an image as a smart object in Photoshop.

    Note that I'm opening Photoshop CS6, no bridge or Lightroom. I use Open as... (Shift-Ctrl-Alt-O), then select Camera Raw in the file Type drop-down list to open a standard PSD file. It happens in the Camera Raw dialog box. After that making edits (and savings as a preset) I SHIFT-click on the CR Open button to change to Open ACE Object.

    It happens in Photoshop with the changes. The thumbnail of the layer shows the small icon of the smart object to this topic. But when I double-click on top the dialogue came not from Camera Raw. Instead, Photoshop opens what appears to be a copy built of the original image with no editing. It carries the extension .psd, not the usual .psb extension. In addition, any changes to this document and save it has bizarre results on the original image.

    I swear to you that I managed to do work once earlier today, but now he does this again and I don't know what I'm doing wrong. I thought that maybe that's a small problem, but rebooting did not help.

    Thanks if you can understand this a ton!

    Since I realized this file to open a JPG or PNG (and probably a RAW) as Camera Raw works very well. In other words, I can edit in Camera Raw, and then shift-click to Open the Object and the smart object works fine in Photoshop. It's only when I try to open a PSD file type by using the file > open as... (File type: Camera Raw) I get the weird behavior when I opened CR mods as a smart object. Someone know why it works with a JPG or PNG format, but does not work with a PSD file?

    AFTER THAT I have the JPG or PNG opened as a smart object, I can then save it as a PSD and smart objects work fine.

  • Cannot open as smart object of ACR in Ps

    Hello

    The current use of ACR:

    Adobe Photoshop Version: 14.2.1 (14.2.1 20140207.r.570 2014/02 / 07:23:00:00) x 64

    Operating system: Mac OS 10.9.3

    When I got my Nikon raw file, and I open it in ACR, if I hit the SHIFT key, the button does not change to allow me to open it as a smart object. When I hit OK, it obviously does not like a dynamic object.

    Any ideas?

    Thank you

    j

    It can matter.  There is another way to get into Camera Raw, and it is with file - open in Photoshop itself.

    I don't use bridge or another tool myself, just Photoshop, and with Camera Raw 8.5 starts by File - Open, shift changes the button [Open Object] for me.

    Some people have reported the connection of an external application for Photoshop CC (2014) is not right with their facilities, and that completely uninstalling Photoshop and put it back, fixed the link.  This is second hand info (I did have to go through there myself), but if you exhaust your options it's a thought.  This can help you with that: use of the cleaning tool CC to resolve installation problems. CC, CS3 - CS6

    -Christmas

  • the a linked smart object bounding box is larger than the file

    I met an annoying problem, in which the framework encompassing the linked file is bigger than its content while in scaling

    Someone knows how to fix this?

    Screenshot Example < < -.

    It's a work plan, "Plan Working Group...". ", I studied this a little further, it seems that the plans of work and paintings are not 'limit' content in the same way (by limiting the work area). even if you have a work plan, it will include the default spacing between work under the file plans.

    Now, it's a bug or a feature, probably a bug, because the idea was that put a file will place all work plans in it (including spacing), but when you have a work plan you don't need spacing.  My hypothesis is that some developers attached Adobe spacing of the artboard in the wrong point of the chain, causing spacing to be always present, even for a work plan.

  • Cannot open photo in lightroom 5.7 as a smart object in items 13

    Tried to reinstall and update of lightroom and elements without success (using Windows 10); online search found messages with the similar problem, but no real solution.

    You must have version FULL of Photoshop to use the command 'open as Smart Object in Photoshop... ».  This does not work with the elements.

  • How to open and copy the smart object

    Hello

    I read some topics on smart objects, but I have not found a solution to my problem.

    1. I need open the smart object layer

    2 copy all the layers of the smart object to another file

    Thank you

    Let's say you have two open documents. The first open doc is the one you want to fool the layer to the second doc is active and the layer you want to dupe is the activeLayer.

    app.activeDocument.activeLayer.duplicate(app.documents[0]);
    

    Of course, you can change the document references and layer as needed. However the layer not fool must be in the activeDocument.

  • Linked smart objects nested within the smart object, not automatically update

    I notice that if I have a smart object bound or smart, group with other layers in a new smart object feature updates of content updated the stops working and has to be done manually.

    This would be the creation of a mobile application by saying where I need the same key throughout all my 10 files.

    Say I have a button throughout several documents and would like to be able to easily change the color in all documents. I'd create an object bound and intelligent color sample. Then in my paper, I put this object linked above my shape of button and create a clipping mask. Then create a dynamic object out of these 2 layers.  I place this same button in all my documents. In my mind, I would always open the object bound and smart (color chart), change the color and it should be updated for the buttons in all of my open documents.

    This is not updated in the document all. Need to go in the dynamic button object and update updated content.

    Using Photoshop | Working with dynamic objects

    The link above

    Note:

    While the detection of changes to the linked smart objects or update a linked Smart object, Photoshop examines the immediate linked file. Links embedded within dynamic objects are not updated.

  • Change of image when converting to smart object

    Well, that's a new one on me.

    I have a simple image with a layer and layers of setting three on top.

    Mixer - with blue layer refused to 0%

    Posterize - 3 levels

    Black and white - no changes to the default values

    It gives me a black and white posterized picture-as I expect. All blending modes are normal and without layer effects are applied and there is no other layers on.

    However, when I change to a dynamic object - level poster borders move (see example cut the corner of the picture below)

    If I open the smart object - everything is as before, if I close (save the object) and discovers the smart object in the main image, change the posterization.

    I work in 16-bit and image and the dynamic object are in Adobe RGB. I get the same effect with the GPU acceleration on or off

    I am at a loss to explain why I see a change while creating a dynamic object.

    Dave

    Just to be sure: to view > actual Pixels?

  • Is it possible to combine smart objects related with layers?

    I create in my compositions of another linked smart object layer. Now, I want to show them in my psd file main, as different States (showing the different States of the header of a Web site).  Always when I try to change the status of the dynamic object bound to the title of the Properties window, there is always change for all layers.

    Why I want to do? I want to use the smart object bound to different files.

    But duplicates of the CG with the corresponding layers applied can be used (shown and hidden) in the layers of the container document.

  • where can I find smart object in photoshop? Not the button but the actual location of the file.

    Could someone tell me where to find the file saved to the dynamic object? I need to change my mac and all move to the new machine. I want to make sure I have everything, I'm missing all the PSB to smart object files. Where is he? and please don't tell me that I need to copy one by one to the temp folder that appear ONLY when I open the smart object.

    Unless the dynamic object is a dynamic object-related, they are stored in the master file. There is no separate file. When you double-click and edit the file SO, it opens the PSB file in the OS temp directory and deletes this file once the main file is closed, unless you save it in another location.

  • Transform will not work on a smart object in Photoshop CC 2015

    I can't to scale the smart object. I take the transformation handles and pull it where I want, but when I let go of the handle the transformation box disappears and the image returns to its original size. He will not keep the transformation.

    It's been a while, but I know that I've done it before. A suggestion that I read was to rasterize the smart object. Who does not use the transformation, but it removes the ability to open the smart object and make adjustments in Camera Raw. When I'm compositing, I want to use the smart object to quickly set things like the color temperature.

    Anyone know the solution?

    Try to reset your preferences: ctrl/cmd-alt/opt-shift at the start of the PS.

  • Smart object editing: move the tool doesn't work does not correctly

    If I use Photoshop via 'open as smart object in Photoshop' in Lightroom, make a selection (using the magnetic lasso) then try to move the selection, the whole image moves (and not only the selection).

    But if I edit the image via "Edit in Photoshop" I can make a selection and move it properly. What I'm doing wrong with the function "smart object"?

    Hi quilkin,.

    This is an expected behavior for a dynamic object. When you 'Open as smart object,' Lightroom going on your original (usually raw image) source file to PS and PS places in a wrapper (the dynamic object) and returns a flattened image of the result.

    When you double-click the thumbnail of the dynamic object, you can change the contents of the dynamic object. If your original data is a raw file, this will open in Camera Raw.

    If you want to select an area and make changes, you must do one of two things:

    1. Rasterize the smart object (which defeats the purpose of having a dynamic object), or
    2. Make a rasterized copy on a top layer (create a new layer above the smart object, and then press Ctrl-Alt-Shift-E or Cmd-Opt-shift-E to "Merge visible layers". Make your changes on the new copy of layer, keeping the original data in the smart object.

    Dynamic objects offer a wealth of versatility, if make you use of their right of way. If you want to learn more about smart objects in Photoshop, check out my series of tutorials on this topic: working with objects in dynamic in Photoshop - a Compilation of tutorial - Mike Hoffman

    I hope this helps!

    Mike

  • Each smart filter separately on a single smart object masking

    1. is there a way to mask each smart filter separately on one single smart object... other than the nesting of a dynamic object in the other?

    2. is there a way to remove the dynamic object created previously?

    I mean, let's say I have a dynamic object that contains four layers. Can I remove dynamic object of these layers?

    Thank you...

    1 #, nesting is the only way.

    2. Yes. Open the smart object. Drag the layers in the original document. Now you can remove the layer containing the smart object.

  • How to edit smart objects?

    Hello:

    I searched on Youtube, etc. manual Adobe for tutorials, information and basically how to as Smart Objects.

    First of all, I would like to know how to change a smart object. I read that you can change them if so far I could not find anything that will teach me exactly how I go on a smart object editing and how and then reinsert it into the work.

    I made a calendar icon where a single layer is a dynamic object. Later, I wanted to change the color of the layer. Then, I clicked on the smart object layer and it opened in another window but when I chose a new color and tried to fill it out I was unabel to do.

    So, if you are already aware of a place where I can learn more I'd greatly appreciate links that you may have.

    I'm still not very good with key words to find what I need, but I'm learning.

    As always, thank you for your time

    In photoshop, double-click the thumbnail in the layers panel. It will open the smart object, so you can change it. Be sure to save to update. More info on photoshop, feel free to create a new post to the thread in the forum of photoshop, this c.pfaffenbichler kindly posted for you.

Maybe you are looking for