Open as linked smart object

Hello,
iam looking for a solution to open files in a folder
and copy then into a document.
Its working good, but i need the files to be linked smart object.
Anyone knows a solution ?
Here my Code so far:
See in 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

Use scriptlistener:
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 );

Similar Messages

  • Linked Smart Objects

    When you send a PS file which has a linked Smart Object to a print vendor, will you need to send the linked Smart Object file as well?

    That's what I was afraid of. As a print vendor AND a designer I'm concerned that word has not gotten out that linked objects will need to accompany the file and we will end up dead in the water when we need to open up a photoshop file with a linked smart object. This is a relatively new problem for Photoshop, although InDesign and even many Illustrator users know that links need to be sent. In fact, we're seeing the opposite trend in InDesign, where artists are embedding artwork in their InDesign file rather than linking, which has both pluses and minuses.
    Thanks!

  • How do i open my multiple smart objects in my psd in one illustrator vector file?

    HELLO
    I have created a psd.
    It contains multiple smart objects which when double clicked link you to illustrator.
    I would like to open all the vector images from this file in one illustrator file.
    Is this possible?

    I guess it might be (almost) possible with Scripting in principle but probably not practically.
    To elaborate:
    One could open all the Smart Objects with a Script and with BridgeTalk it should be possible to have Illustrator perform tasks on those.
    But one can not, as far as I know, directly access scale, rotation, skew of a placed Smart Object with a Script, so that information would have to be determined with work-arounds or (partially) neglected.
    If you need vector output why did you make the arrangement in Photoshop?

  • PS CC 14.2: Linked Smart Objects workflow

    I like the idea of the Linked smart objects. Just a question about possible workflow.
    I work with large layered docs in the 2+GB range. It can get slow, particularly saving and opening.
    Idea 1) I use textures on seperate layers. Just by lining the PLACE My file size will be smaller. I'm guessing saving will be faster.
    Idea 2) Would it be possible. To work on a lower resolution "proxy" (example final version are images 10,000 x 10,000). Use all layers as SO, downsampled to 2k x 2k.
    Everything will be much faster. But all my changes (Blend modes, Opacity, Smart filters) are on the Proxy images.
    Now I want to generate my 10K version, could I swop out those 2k images in a folder for the High res?
    Have PS "update?"
    Maybe It would be required to change the image size to the 10K resolution, then update the Linked SO?
    I'm just thinking if this could be possible.
    Would save a ton of HD space, Make everything run quicker up until the final step.
    What do you guys think?
    Maxi
    Linked Smart Objects

    I've done a test.
    Swopping a high res for the low res image does work, but PS does not respect the scale. So the image comes in very large.But if I reveal all. I can get the full image to appear. And Smart Plug ins like NIK Analog Efex do rerender at the full res.

  • Script to load multiple linked smart objects to stack

    Hi
    we have a workflow where we work with exr images, and load about 15 of them at a time into a stack, then from there convert them into smart objects.
    As the linked smart objects is out this means we can replace a folder full of images and update them which would save opening up the psd and having to replace conent on all smart objects.
    but can't seem to find a way to load multiple smart linked objects in with out having to do 1 by 1.
    Is there a simple script to do this?
    Thanks

    I had asked Adobe about a modified script to do this, but at this time, they didn't seem interested in developing it.  Perhaps if more people ask for it they would add this feature, which would be extremely handy.  Don't know if anyone has come up with their own script for this yet, but I'm sure someone will.

  • Layer Comps should capture changes to a Linked Smart Object's Layer Comp

    Normally, I can move things around or change visibility, and use Layer Comps in my master doc to capture these changes.
    However, changing which Layer Comp displays from a Linked Smart Object cannot be captured by Layer Comps in my master doc.
    Slightly more information: Sorry it's a little convoluted. I have several Linked Smart Objects inside a master doc, and these Smart Objects contain different Layer Comps. It's awesome that I can easily change which Layer Comp each Smart Object displays. But when I make a change, it cascades across the Layer Comps in my master doc. So my master doc's Layer Comps cannot effectively capture a state.
    It would be awesome if Layer Comps were able to capture state changes for the display of Linked Smart Object's Layer Comps. #featurerequest

    Photoshop Feature Requests should be posted over at
    Photoshop Family Customer Community
    But before posting one look around whether one exists already on this issue and add your +1 if it does.

  • Can you replace embedded smart object with linked smart object?

    Hi,
    I'd like to update some document to reflet the new workflow that linked smart object provide. I have made some transformation on those embedded smart object and would like to not have to redo all those so is there anyway way to replace those SO with the linked version of the same SO?
    TIA
    Jeff

    Hi,
    I'd like to update some document to reflet the new workflow that linked smart object provide. I have made some transformation on those embedded smart object and would like to not have to redo all those so is there anyway way to replace those SO with the linked version of the same SO?
    TIA
    Jeff

  • Convert an embedded smart object to a linked smart object

    Hey guys,
    love the new "linked smart object" functionality. However, I can not figure out how I can convert (or export) an existing embedded smart object to a linked smart object.
    I have a huge photoshop file with several embedded smart objects that I would like to break down into a lightweigt photoshop with with links to the varios smart object photoshop files.
    Is there any way to do this?
    Thanks,
    Philipp

    Thanks a lot guys.
    I am just now putting a document together with linked smart objects and I'm noticing that the file size of the PSD file still increases quite a bit. I thought the hole point of this was to have lightweigh psd files?
    I currently have 11 1920x1080 linked smart object files in the PSD and the file size is already at 140MB. Any ideas why this is happening?

  • Scripting layer comp property of linked smart object

    How can I through script set the layer comp property of a linked smart object?
    More generally, how can I access a smart object and manipulate it as a document?  I know that I get smart object layers by looking at the kind property, but I don't know what to do with them once I get them.  I'd like to be able to cast the layer to a document object I guess.  Thoughts, anyone?

    Photoshop Feature Requests should be posted over at
    Photoshop Family Customer Community
    But before posting one look around whether one exists already on this issue and add your +1 if it does.

  • How do I disable linked smart-object auto-update/refresh?

    Working in the CC3D features, I am constantly making changes to my bump map. Every time I step-backwards, or make a significant change to the bump texture (smart object?), CC auto-saves the layer. This specific file is a very very large document (3 gigs in the bump texture layer alone), and the 3D layer has lots of lights and is very complex. This auto-refresh/update really bogs down the time that it would take me to make my changes. I have a very fast machine (I know it's fast, I dont need to list my specs), and I have all shadows disabled.
    How do I disable linked smart-object auto-update/refresh?

    If you do not like a feature like smart objects there is nothing forcing you to use it. Use some other features to do what you want. Please don't ask Adobe to introduce bug into smart object support.
    You could work on your bump maps textures in external files. When your done some time in the future you could edit your project with the smart object layer and use replace smart object. Only then will all smart filters be applied to the smart layer with the replaced smart object.
    Or if by CC Auto save Layer you referring to CC Generate feature you can disable that feature.
    I have no idea what your referring to when you write "CC auto-saves the layer" being a feature. I know CC Generate will write layers out as web files but that more a Web feature then a 3d feature.  Where do you see your layer being saved?

  • Linked Smart Object:  Allowed File Type and Editor

    Please forgive my lack of knowledge.  I'm evaluating PS CC 2014, own PS 5.1 and am a hair shy of being a novice.  Presently I'm doing Photomerge Focus Stacking.  What I'm hoping is that DNG files can be Linked Smart Objects and that I can modify the merged photo by editing the DNG files in Adobe Camera Raw.  Is this possible?  The Adobe Help article has a rather cryptic "You can’t perform operations that alter pixel data", that leads me to believe no but, I don't understand that fully.
    Thanks.

    Currently you can not use any of the merge options: pano, hdr, or focus stacking with a smart object. So you would not be able to do that with dng files and retain the ability to edit them in Camera Raw. It would be nice though!

  • Linked Smart Object breaks a PSD after sync with Creative Cloud

    After using a linked Smart Object inside a PSD and sync with Creative Cloud, the online version of file does not preview and does not work with any online feature, like Extract, Layers, or Anything else.
    Any suggestion? Thanks in advance.

    Thanks for the example Deryck,
    The preview seemed broken on the comments tab but the image was appearing for me under the Extract one. When I downloaded the original it looked like the linking was preserved. The online version didn't seem to denote in any way that the Cecinas layer contained a Linked Smart Object, which might be helpful, but it did have the preview. Here are some screenshots of what I was seeing. Thanks for posting about it. I'll pass it on to our engineering department.

  • Linked Smart Objects from Photoshop CC

    Hi
    I have a Photoshop file which makes use of the new Linked Smart Objects (introduced in the last major CC update). If I create a Reflow Project out of this .PSD the Linked Smart Objects are not being converted.
    Am I doing something wrong or is it simply not implemented yet?
    Cheers

    If that's the case then keep the main grid container at 100% and then just add two boxes inside it. The outer one also stretch to 100% and have the inner one stop on column on either side and set the max-width on that. You could also just have the inner one strech to 100% with a max-width and have the underneath one show on the side only when it get really wide. I know it feels a little akward to use the grid like that, but we only have one container that the grid is on right now so this is what we can do. Here's an example using yellow for the outer container and red for the inner.
    Hope that helps and thanks again for using Reflow!
    Chris

  • Linked Smart Objects - File Size Question

    Hey guys,
    first time using linked smart objects and I was pretty excited about it at first. I have a large photoshop file with 1920x1080 image assets. The file size is about 1GB and everytime I make a minor change the entire file has to be re-uploaded to my Dropbox.
    So I figured that I could make all these image assets linked smart objects so that I can keep the master file down in file size since most of the actual assets don't change. However, even the PSD that contains nothing by linked smart layer objects is already 400MB large. And that's in addition to the external PSD's it is now linking to.
    Even if I duplicate a linked smart layer object in this PSD file it increased the file size by an additional 10MB per duplicate. Is this supposed to happen? Why does it take so much space to just link to external objects? I was super excited about using linked smart layer objects but this doesn't look like it would be helping much to decrease file size.
    Any thoughts would be much appreciated!
    Thanks,
    Philipp

    Hey Chris,
    thanks again! I guess I just had different expectations. In my mind I was going to see a parent file around 10MB or something with all of the content being dynamically loaded from the linked smart objects.
    Maybe that could be a feature requests for future versions.

  • Linking smart objects with it's layer mask

    ther must be a way to link smart objects with it's layer mask without having to rasterize....isn't there?

    You're pre-CS4 right?
    1) Upgrade to CS4
    2) Put SO in a group, link mask to group
    3) ...
    4) Profit!

Maybe you are looking for

  • STRUSTSS02 - No file format option for import

    Hi Experts, I am trying to import portal certificate into ECC 6.0 EHP7 system for SSO set up. But I dont see the file format option ( Binary and Base) in STRUSTSS02 and If I import without it I am getting an error "cannot analyze certificate" what co

  • Don't see my scanners after installing Elements 11

    In the previous versions, I would do a File|Import and then would see my scanners. I would have two options to scan them in, either via the TWAIN driver or WIA support. Now I only see Frame From Video or WIA and WIA takes me to Windows Explorer. I se

  • Error Itunes -9812: help please

    Hi everyone, I've read a lot about the error 9812 when trying to create an itunes account but still cannot find a solution. I'm now desesperated! My computer says Designed for Windows XP and underneath Windows Vista capable. Is this why my itunes sto

  • Air app limitations . . . ?

    Hi there. Two questions. Is there a file size limit to an Air application and is it possible to add around 12,000 audio files in one go? On the Air Application and installer setting you can only add included files one by one. Is there any way to sele

  • Is Encore not in the Creative Cloud trial?

    Or is it not in the Creatve Cloud pack at all?  I see it in one screen of the CC offer but when I open the trial window it's not there. There are things I want to be able to do specifically with Encore and I don't know if I can.