Actions & Smart Objects

If an image is opened from ACR normally, the base layer will be named "Background".  If an image is opened as a Smart Object, the base layer will be named as the filename of the image.
If an action is programmed that creates new layers on top of the Smart Object then selects the base layer, the step in the action will be 'Select _MG_1234' or whatever the name of the image file is.  If you try to run that action on a different image file, an error message will pop up at the step where the base layer is selected indicating that the file is not available because the action is pointing to a specific image file name. 
How does one go about making an action with smart objects generic so that it will run on any image file?
Thanks.

One way if your action always adds the same amount of layers is to use a keyboard shortcut while recording the action to select the smart object layer.
Layer keyboard shortcuts:
http://help.adobe.com/en_US/photoshop/cs/using/WSD578BD7D-07BC-46f6-AAC2-6E491E8AD818a.htm l#WS7D245964-27B4-403e-82D5-DDD1CB19A82Ba

Similar Messages

  • Action for Replacing Contents of a Smart Object

    I am using CS5/PS to create a collage created of several images (smart object layers) that I have positioned using individual clipping masks.
    I would like to be able to replace the contents of the images, which I can do via Layer>Smart Objects>Replace Contents...,   but I'd like to have an action for a "one-click" process instead of three clicks.  Problem is, when I try to record the action, it requires me to complete the replacement, and then the action gets hard-wired to replace the image used in the action "record", and therefore doesn't allow me to select which image I'd like to use.
    This functionality is available in PS Elements, so I believe it can be done.  I'm sure I'm missing something pretty basic, I just don't know what!!
    Thanks in advance,
      Brian

    »The separate Photoshop Windows and Macintosh forums will become Read Only on Tuesday, January 3rd.«
    Have you checked the »Toggle dialog on/off«-checkbox beside the item in the Actions Panel?

  • Smart Object And Action Question

    I have a smart object layer in one document and I want to drag it over to another document and record this in an action. If I just drag it over, the action records it as select previous document. Copy and paste doesn't transfer the layer as a smart object.
    Is there any way to do this in an action?
    Thanks!

    The place suggestion worked. It's too bad that it has to be so wasteful on space though. It looks like placing a file makes it a smart object which then contains the original smart object I wanted to transfer over.
    Thanks!

  • Smart object layer from PS to AI. how to use??

    I successfully work AI vector objects as placed objects into PS by copy pasting or file/place into a smart object layer in PS, I find value in making changes to my vector object dimensions in AI and seeing them updated in PS,
    but I don`t know how to do it the other way, meaning a PS jpeg on a layer to AI as smart object, I choose an image on its own layer in PSCS4 and convert to smart object, I (right click) export the contents as jpeg smart object, and then back in AI go file/place the smartobject jpeg, when I make changes to the PSsmartobject in PS like colour shift or dimensions change nothing happens in AI,
    I would like to have an image pasted from PS into AI whereby I can change colours and dimensions or add pixels like paint on that smartobject layer in PS and then have it update in AI...

    To my knowledge Illustrator does not support smart objects. However it does support image linking. Which means if you update a image in photoshop, Illustrator will know the file has changed.
    When placing the file, you will see a checkbox at the bottom of the open dialog box for link, make sure it is checked. When you update the file when Illustrator is running with that file opened, you will get a promt telling you the file has changed and asked you if you want to update the image.
    If you choose not to update the image at that time, you can click on the linked file text in the top tool bar and update the image from there.
    If the file is not open or Illustrator is not running then the file will update the next time you open the file.
    Also you will find a edit original button in the top tool bar to take you back to what ever image editor is assigned to that file format.
    To assign a file format to photoshop:
    For this example we will use jpeg extention
    1) Open windows explorer
    2) Menu options tools>folder options>File types tab>scroll to jpeg and click on it
    3) Click the advanced tab
    4) see what actions are listed odds are only open and printo are listed
    5) If Edit is not listed, click on the new button
    6) For the action type EDIT
    7) For the application used to perform action click the browse button
    8) Browse for photoshop.exe
    9) The following should now be in the application used to perform action box:
    "C:\Program Files\Adobe\Adobe Photoshop CS3\Photoshop.exe" %1
    The above file location is assuming you have CS3 and you used the default installation edit original button in Illustrator and the right mouse button menu in windows explorer will take you to photoshop to edit the file.
    10) After you click OK you will see the new EDIT action in the list
    11) Click OK  and then click close to get out of all the dialog boxes
    The action can be removed at any time or edited to use another application.

  • Smart object in template: saving off each layer as a png.

    I know someone must have asked for this before, however, I'm not sure how to phase it perfectly. I have provided many images to help me convey what I want, and I hope that helps. I make many mockups for smart phones and the like. Most of the time, when I present my work, my employer wants to see it "in the device".
    I have a template of a phone (I grabbed an iphone just for the sake of mockups), and I load all my mockups into the smart object that makes up the phone's screen in the template. However, saving out each mockup can become very time consuming. Is there a script out there what will save out each screen once I have added all my content to the smart object? (In my example, the final result would be 3 pngs of the phone displaying one of the 3 screens)
    Thanks!

    It there is no perspective distortion need like iPhone example a straight on perspective.  That would be a snap to do with a Photo Collage Template PSD and a batch script.  The template  could be as simpla as a background image of your iPhone shot straight on and an alpha channel the maps to the iPhone display. For example BatchOneImageCollage.jsx However that script would save a set of PSD files would contain a background layer. If you want a set of files the template would need two layers a plain white background layer a layer above it a cutout of your iPhone with the screen also cutout an missing., and the mapping alpha channel.  The saved PSD file would the need to be processed with the Image Processor Pro script the save PNG for the PSD and include an action that deletes the background layer or turns off its visibility.
    Photo Collage Toolkit UPDATED Made Rotate for Best Fit an option in PasteImageRoll.jsx Edit to customize your default settings.
    Photoshop scripting is powerful and I believe this package demonstrates this.
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    Documentation and Examples
           There are twelve scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    PCTpreferences.jsx - Edit This File to Customize Collage Populating scripts default setting and add your own Layer styles.
    Four Rules Templates need to follow:
    Size the photo collage templates for the print size you want - width, height and print DPI resolution.
    Photo collage templates must have a Photoshop background layer. The contents of this layer can be anything.
    Photo collage templates must have alpha channels named "Image 1", "Image 2", ... "Image n".
    Photo collage templates layers above the background layers must provide transparent areas to let the images that will be placed below them show through.
    Example:

  • How open and copy smart object

    Hi,
    I read topics about smart objects but i not found solution on my problem.
    1. I need open smart object layer
    2. copy all layers from the smart object to another file
    Thanks

    I think you may be better off just copying the smart object layer from the source document into the target document.  There may be several different resolutions involved and other complexities.  Within a smart object layer there is a copy of the original object. So how the smart object layer was created determines what the imbedded object is.  A smart object may be many thing. Could be a copy of a raw file, a copy of a layered file, contain a group of layers created from within the source document. There is a transform associated with smart object layers.  When you open a smart layer into Photoshop so you can edit the embedded smart object it opens at the resolution and size of the object which may be different then the document its  a layer in. The transform is only associated the layer not the object. Once open into Photoshop you can of course dupe the layers into the target document.  It may be a bit complex for some layers may have layer mask and perhaps other layers clipped to it or be within a group then there is the layers visibility state. If you have both the source document and target document open in Photoshop it is easy co copy a layer from the source document to the target document. If the source layer is a smart object the associated transform will also be copied to the target document however it easy re transform the smart object layer in the target document.  In the source document target the smart object layer the use menu Layers>Duplicate Layer... in the Duplicate Layer dialog in the destination section use the pull down menu to select the target document You can use the scriptlistener plugin to capture the action manager code to do that.
    // =======================================================
    var idDplc = charIDToTypeID( "Dplc" );
        var desc24 = new ActionDescriptor();
        var idnull = charIDToTypeID( "null" );
            var ref14 = new ActionReference();
            var idLyr = charIDToTypeID( "Lyr " );
            var idOrdn = charIDToTypeID( "Ordn" );
            var idTrgt = charIDToTypeID( "Trgt" );
            ref14.putEnumerated( idLyr, idOrdn, idTrgt );
        desc24.putReference( idnull, ref14 );
        var idT = charIDToTypeID( "T   " );
            var ref15 = new ActionReference();
            var idDcmn = charIDToTypeID( "Dcmn" );
            ref15.putName( idDcmn, "Untitled-2" ); <====================================== target document
        desc24.putReference( idT, ref15 );
        var idVrsn = charIDToTypeID( "Vrsn" );
        desc24.putInteger( idVrsn, 5 );
    executeAction( idDplc, desc24, DialogModes.NO );

  • Original filename for Smart Objects in CS6

    After processing a camera raw image in ACR, I want to open the image in CS6 as a Smart Object.
    Then I want to run a java script that depends on the original filename.  Where in the metadata can I find the original filename?
    Background:  I have a script that executes very well if the file is opened in CS6 as a regular layer.  However, when I open a file as a Smart Object, the script fails, complaining about an invalid filename.
    The problem is associated with my favorite time-saving script and I am very keen to resolve the problem.   :-(
    Thank you for your assistance.
    BA

    rj acton wrote:
    After processing a camera raw image in ACR, I want to open the image in CS6 as a Smart Object.
    Then I want to run a java script that depends on the original filename.  Where in the metadata can I find the original filename?
    Background:  I have a script that executes very well if the file is opened in CS6 as a regular layer.  However, when I open a file as a Smart Object, the script fails, complaining about an invalid filename.
    I think the the only reason it works when you open them as a regular layer is because of your work-flow and habits. Try opening it twice as a normal layer an see if it works.
    When you open a RAW file through ACR as a normal layer and as a smart object layer there is no backing file associated with the open document yet.   I feel you problem is you script is using something like the document name.   If you look at the title in the image floating window or tab you will see that Photoshop has assigned a name the first time you open it as a normal layer you will see something like filename.cr2 @ 25% (RGB16) the second time you will see filename-2 @ 25% (RGB16) when you open as Object you will see filename as smart object-1 (filename, RGB16). These title will change when you save the document to a image file type the title will change to the associated backing file you just saved.
    I you look at Photoshop File info you can see all the image metadata and you can find the RAWFileName you want here a text file I wrote using a  Photoshop script
    It is enev in small jpef file saved from raw conversions if you don't strip mete data
    <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.3-c011 66.145661, 2012/02/06-14:56:27        ">
       <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
          <rdf:Description rdf:about=""
                xmlns:xmp="http://ns.adobe.com/xap/1.0/">
             <xmp:ModifyDate>2010-08-16T22:47:35-04:00</xmp:ModifyDate>
             <xmp:CreateDate>2009-04-25T15:20:46</xmp:CreateDate>
             <xmp:Rating>0</xmp:Rating>
             <xmp:MetadataDate>2010-08-16T22:47:35-04:00</xmp:MetadataDate>
             <xmp:CreatorTool>Adobe Photoshop CS5 Windows</xmp:CreatorTool>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:dc="http://purl.org/dc/elements/1.1/">
             <dc:format>image/jpeg</dc:format>
             <dc:creator>
                <rdf:Seq>
                   <rdf:li>McAssey</rdf:li>
                </rdf:Seq>
             </dc:creator>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:aux="http://ns.adobe.com/exif/1.0/aux/">
             <aux:SerialNumber>237498</aux:SerialNumber>
             <aux:LensInfo>300/1 300/1 0/0 0/0</aux:LensInfo>
             <aux:Lens>300.0 mm</aux:Lens>
             <aux:LensID>142</aux:LensID>
             <aux:ImageNumber>48302</aux:ImageNumber>
             <aux:FlashCompensation>0/1</aux:FlashCompensation>
             <aux:OwnerName>McAssey</aux:OwnerName>
             <aux:Firmware>1.2.3</aux:Firmware>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/">
             <crs:RawFileName>LO2G5037.CR2</crs:RawFileName>
             <crs:Version>6.1</crs:Version>
             <crs:ProcessVersion>5.7</crs:ProcessVersion>
             <crs:WhiteBalance>Custom</crs:WhiteBalance>
             <crs:Temperature>5350</crs:Temperature>
             <crs:Tint>-22</crs:Tint>
             <crs:Exposure>0.00</crs:Exposure>
             <crs:Shadows>5</crs:Shadows>
             <crs:Brightness>+65</crs:Brightness>
             <crs:Contrast>+25</crs:Contrast>
             <crs:Saturation>0</crs:Saturation>
             <crs:Sharpness>25</crs:Sharpness>
             <crs:LuminanceSmoothing>0</crs:LuminanceSmoothing>
             <crs:ColorNoiseReduction>0</crs:ColorNoiseReduction>
             <crs:ChromaticAberrationR>0</crs:ChromaticAberrationR>
             <crs:ChromaticAberrationB>0</crs:ChromaticAberrationB>
             <crs:VignetteAmount>0</crs:VignetteAmount>
             <crs:ShadowTint>0</crs:ShadowTint>
             <crs:RedHue>0</crs:RedHue>
             <crs:RedSaturation>0</crs:RedSaturation>
             <crs:GreenHue>0</crs:GreenHue>
             <crs:GreenSaturation>0</crs:GreenSaturation>
             <crs:BlueHue>0</crs:BlueHue>
             <crs:BlueSaturation>0</crs:BlueSaturation>
             <crs:FillLight>0</crs:FillLight>
             <crs:Vibrance>+21</crs:Vibrance>
             <crs:HighlightRecovery>0</crs:HighlightRecovery>
             <crs:Clarity>0</crs:Clarity>
             <crs:Defringe>0</crs:Defringe>
             <crs:HueAdjustmentRed>0</crs:HueAdjustmentRed>
             <crs:HueAdjustmentOrange>0</crs:HueAdjustmentOrange>
             <crs:HueAdjustmentYellow>0</crs:HueAdjustmentYellow>
             <crs:HueAdjustmentGreen>0</crs:HueAdjustmentGreen>
             <crs:HueAdjustmentAqua>0</crs:HueAdjustmentAqua>
             <crs:HueAdjustmentBlue>0</crs:HueAdjustmentBlue>
             <crs:HueAdjustmentPurple>0</crs:HueAdjustmentPurple>
             <crs:HueAdjustmentMagenta>0</crs:HueAdjustmentMagenta>
             <crs:SaturationAdjustmentRed>0</crs:SaturationAdjustmentRed>
             <crs:SaturationAdjustmentOrange>0</crs:SaturationAdjustmentOrange>
             <crs:SaturationAdjustmentYellow>0</crs:SaturationAdjustmentYellow>
             <crs:SaturationAdjustmentGreen>0</crs:SaturationAdjustmentGreen>
             <crs:SaturationAdjustmentAqua>0</crs:SaturationAdjustmentAqua>
             <crs:SaturationAdjustmentBlue>0</crs:SaturationAdjustmentBlue>
             <crs:SaturationAdjustmentPurple>0</crs:SaturationAdjustmentPurple>
             <crs:SaturationAdjustmentMagenta>0</crs:SaturationAdjustmentMagenta>
             <crs:LuminanceAdjustmentRed>0</crs:LuminanceAdjustmentRed>
             <crs:LuminanceAdjustmentOrange>0</crs:LuminanceAdjustmentOrange>
             <crs:LuminanceAdjustmentYellow>0</crs:LuminanceAdjustmentYellow>
             <crs:LuminanceAdjustmentGreen>0</crs:LuminanceAdjustmentGreen>
             <crs:LuminanceAdjustmentAqua>0</crs:LuminanceAdjustmentAqua>
             <crs:LuminanceAdjustmentBlue>0</crs:LuminanceAdjustmentBlue>
             <crs:LuminanceAdjustmentPurple>0</crs:LuminanceAdjustmentPurple>
             <crs:LuminanceAdjustmentMagenta>0</crs:LuminanceAdjustmentMagenta>
             <crs:SplitToningShadowHue>0</crs:SplitToningShadowHue>
             <crs:SplitToningShadowSaturation>0</crs:SplitToningShadowSaturation>
             <crs:SplitToningHighlightHue>0</crs:SplitToningHighlightHue>
             <crs:SplitToningHighlightSaturation>0</crs:SplitToningHighlightSaturation>
             <crs:SplitToningBalance>0</crs:SplitToningBalance>
             <crs:ParametricShadows>-25</crs:ParametricShadows>
             <crs:ParametricDarks>-13</crs:ParametricDarks>
             <crs:ParametricLights>+13</crs:ParametricLights>
             <crs:ParametricHighlights>+25</crs:ParametricHighlights>
             <crs:ParametricShadowSplit>25</crs:ParametricShadowSplit>
             <crs:ParametricMidtoneSplit>50</crs:ParametricMidtoneSplit>
             <crs:ParametricHighlightSplit>75</crs:ParametricHighlightSplit>
             <crs:SharpenRadius>+1.1</crs:SharpenRadius>
             <crs:SharpenDetail>25</crs:SharpenDetail>
             <crs:SharpenEdgeMasking>27</crs:SharpenEdgeMasking>
             <crs:PostCropVignetteAmount>0</crs:PostCropVignetteAmount>
             <crs:GrainAmount>0</crs:GrainAmount>
             <crs:LensProfileEnable>0</crs:LensProfileEnable>
             <crs:LensManualDistortionAmount>0</crs:LensManualDistortionAmount>
             <crs:PerspectiveVertical>0</crs:PerspectiveVertical>
             <crs:PerspectiveHorizontal>0</crs:PerspectiveHorizontal>
             <crs:PerspectiveRotate>0.0</crs:PerspectiveRotate>
             <crs:PerspectiveScale>100</crs:PerspectiveScale>
             <crs:ConvertToGrayscale>False</crs:ConvertToGrayscale>
             <crs:ToneCurveName>Strong Contrast</crs:ToneCurveName>
             <crs:CameraProfile>Camera Faithful</crs:CameraProfile>
             <crs:CameraProfileDigest>07AA307EAF63019A907C3A103EC361D0</crs:CameraProfileDigest>
             <crs:LensProfileSetup>LensDefaults</crs:LensProfileSetup>
             <crs:HasSettings>True</crs:HasSettings>
             <crs:HasCrop>False</crs:HasCrop>
             <crs:AlreadyApplied>True</crs:AlreadyApplied>
             <crs:ToneCurve>
                <rdf:Seq>
                   <rdf:li>0, 0</rdf:li>
                   <rdf:li>32, 16</rdf:li>
                   <rdf:li>64, 50</rdf:li>
                   <rdf:li>128, 128</rdf:li>
                   <rdf:li>192, 202</rdf:li>
                   <rdf:li>255, 255</rdf:li>
                </rdf:Seq>
             </crs:ToneCurve>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/">
             <photoshop:DateCreated>2009-04-25T15:20:46</photoshop:DateCreated>
             <photoshop:LegacyIPTCDigest>C919DE8C578CC777664AB2BCEBAFE2ED</photoshop:LegacyIPTCDigest>
             <photoshop:ColorMode>3</photoshop:ColorMode>
             <photoshop:ICCProfile>sRGB IEC61966-2.1</photoshop:ICCProfile>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
                xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#"
                xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#">
             <xmpMM:InstanceID>xmp.iid:53B401F530A9DF11A629E42CB0F33EB0</xmpMM:InstanceID>
             <xmpMM:DocumentID>xmp.did:E719AF78E386DF1185EABAB6DC507A64</xmpMM:DocumentID>
             <xmpMM:OriginalDocumentID>xmp.did:E719AF78E386DF1185EABAB6DC507A64</xmpMM:OriginalDocumentID>
             <xmpMM:History>
                <rdf:Seq>
                   <rdf:li rdf:parseType="Resource">
                      <stEvt:action>saved</stEvt:action>
                      <stEvt:instanceID>xmp.iid:E719AF78E386DF1185EABAB6DC507A64</stEvt:instanceID>
                      <stEvt:when>2010-07-03T16:42:18-04:00</stEvt:when>
                      <stEvt:softwareAgent>Adobe Photoshop CS5 Windows</stEvt:softwareAgent>
                      <stEvt:changed>/</stEvt:changed>
                   </rdf:li>
                   <rdf:li rdf:parseType="Resource">
                      <stEvt:action>converted</stEvt:action>
                      <stEvt:parameters>from image/tiff to image/jpeg</stEvt:parameters>
                   </rdf:li>
                   <rdf:li rdf:parseType="Resource">
                      <stEvt:action>derived</stEvt:action>
                      <stEvt:parameters>converted from image/tiff to image/jpeg</stEvt:parameters>
                   </rdf:li>
                   <rdf:li rdf:parseType="Resource">
                      <stEvt:action>saved</stEvt:action>
                      <stEvt:instanceID>xmp.iid:E819AF78E386DF1185EABAB6DC507A64</stEvt:instanceID>
                      <stEvt:when>2010-07-03T16:42:18-04:00</stEvt:when>
                      <stEvt:softwareAgent>Adobe Photoshop CS5 Windows</stEvt:softwareAgent>
                      <stEvt:changed>/</stEvt:changed>
                   </rdf:li>
                   <rdf:li rdf:parseType="Resource">
                      <stEvt:action>saved</stEvt:action>
                      <stEvt:instanceID>xmp.iid:52B401F530A9DF11A629E42CB0F33EB0</stEvt:instanceID>
                      <stEvt:when>2010-08-16T22:47:35-04:00</stEvt:when>
                      <stEvt:softwareAgent>Adobe Photoshop CS5 Windows</stEvt:softwareAgent>
                      <stEvt:changed>/</stEvt:changed>
                   </rdf:li>
                   <rdf:li rdf:parseType="Resource">
                      <stEvt:action>saved</stEvt:action>
                      <stEvt:instanceID>xmp.iid:53B401F530A9DF11A629E42CB0F33EB0</stEvt:instanceID>
                      <stEvt:when>2010-08-16T22:47:35-04:00</stEvt:when>
                      <stEvt:softwareAgent>Adobe Photoshop CS5 Windows</stEvt:softwareAgent>
                      <stEvt:changed>/</stEvt:changed>
                   </rdf:li>
                </rdf:Seq>
             </xmpMM:History>
             <xmpMM:DerivedFrom rdf:parseType="Resource">
                <stRef:instanceID>xmp.iid:E719AF78E386DF1185EABAB6DC507A64</stRef:instanceID>
                <stRef:documentID>xmp.did:E719AF78E386DF1185EABAB6DC507A64</stRef:documentID>
                <stRef:originalDocumentID>xmp.did:E719AF78E386DF1185EABAB6DC507A64</stRef:originalDocumentID>
             </xmpMM:DerivedFrom>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:tiff="http://ns.adobe.com/tiff/1.0/">
             <tiff:ImageWidth>2336</tiff:ImageWidth>
             <tiff:ImageLength>3504</tiff:ImageLength>
             <tiff:BitsPerSample>
                <rdf:Seq>
                   <rdf:li>8</rdf:li>
                   <rdf:li>8</rdf:li>
                   <rdf:li>8</rdf:li>
                </rdf:Seq>
             </tiff:BitsPerSample>
             <tiff:PhotometricInterpretation>2</tiff:PhotometricInterpretation>
             <tiff:Orientation>1</tiff:Orientation>
             <tiff:SamplesPerPixel>3</tiff:SamplesPerPixel>
             <tiff:XResolution>2400000/10000</tiff:XResolution>
             <tiff:YResolution>2400000/10000</tiff:YResolution>
             <tiff:ResolutionUnit>2</tiff:ResolutionUnit>
             <tiff:Make>Canon</tiff:Make>
             <tiff:Model>Canon EOS-1D Mark II</tiff:Model>
          </rdf:Description>
          <rdf:Description rdf:about=""
                xmlns:exif="http://ns.adobe.com/exif/1.0/">
             <exif:ExifVersion>0221</exif:ExifVersion>
             <exif:ColorSpace>1</exif:ColorSpace>
             <exif:PixelXDimension>400</exif:PixelXDimension>
             <exif:PixelYDimension>600</exif:PixelYDimension>
             <exif:DateTimeOriginal>2009-04-25T15:20:46</exif:DateTimeOriginal>
             <exif:ExposureTime>1/1000</exif:ExposureTime>
             <exif:FNumber>56/10</exif:FNumber>
             <exif:ExposureProgram>2</exif:ExposureProgram>
             <exif:ISOSpeedRatings>
                <rdf:Seq>
                   <rdf:li>800</rdf:li>
                </rdf:Seq>
             </exif:ISOSpeedRatings>
             <exif:ShutterSpeedValue>9965784/1000000</exif:ShutterSpeedValue>
             <exif:ApertureValue>4970854/1000000</exif:ApertureValue>
             <exif:ExposureBiasValue>0/1</exif:ExposureBiasValue>
             <exif:MaxApertureValue>3/1</exif:MaxApertureValue>
             <exif:MeteringMode>5</exif:MeteringMode>
             <exif:Flash rdf:parseType="Resource">
                <exif:Fired>False</exif:Fired>
                <exif:Return>0</exif:Return>
                <exif:Mode>2</exif:Mode>
                <exif:Function>False</exif:Function>
                <exif:RedEyeMode>False</exif:RedEyeMode>
             </exif:Flash>
             <exif:FocalLength>300/1</exif:FocalLength>
             <exif:FocalPlaneXResolution>3520000/1136</exif:FocalPlaneXResolution>
             <exif:FocalPlaneYResolution>2342000/756</exif:FocalPlaneYResolution>
             <exif:FocalPlaneResolutionUnit>2</exif:FocalPlaneResolutionUnit>
             <exif:CustomRendered>0</exif:CustomRendered>
             <exif:ExposureMode>0</exif:ExposureMode>
             <exif:WhiteBalance>0</exif:WhiteBalance>
             <exif:SceneCaptureType>0</exif:SceneCaptureType>
          </rdf:Description>
       </rdf:RDF>
    </x:xmpmeta>

  • Getting the filename of a placed image inside a smart object

    Hi
    I'm wondering if I can get any help with a problem I'm trying to overcome for a friend of mine.
    My friend is a photographer who does a lot of schhols work (pupil portraits) and wants to create a little document similar to this (very simplified) version:
    I'm trying to help him to create a batch process so that he can make this take up much less of his time!
    Here's where I've got to so far. I've created the layout above which is essentially a smart object (from an external file) manipulated in a couple of ways.
    The workflow as I see it at the moment (although I'm wide open to suggestions, and I'm having a bit of Friday brain) is this: I generate an action that replaces the content of the external file with the contents of (each file in his incoming list, sequentially).
    That file then comes back into the layout above and a new (flattened) copy is saved out from there.
    Rinse and rerpeat through the list of incoming files.
    I can just about make that bit happen using actions, but here's what I can't get - the filename of the incoming file (the one that's placed in the smart object). Can I can use a modified version of the AddFileName script to generate a text layer based on the filename of the placed contents in the smart object? Does any of that make sense? I'm reading this back to myself and even I'm not sure! ho ho.
    My lack of logic/coherent sentence structure here is what probably holds me back in any eforts I have made in getting into scripting.
    I'd appreciate any help that could be offered.
    Thanks.
    Fenton

    Ah - alas it sems not to be. I think I am going to have to come up with a different workflow and by extension, solution. My current thinking is that I need to have an input folder for the images to be used in the layout, and an output folder for the results to be saved into, along with the layout.psd (as above) all housed in the same folder. Then I need (help) to write a script that does the following:
    Checks that the layout document is open (that bit is easy enough)
    if(documents.length==0){
       alert("You need to have your layout template open (-layout.psd-)")
    }else{
        // Do next bit here - and what I'm trying to do is described below.
        // Hopefully by typing it out I might start to get it straight in my head
        // Any help with any part of this process is greatluy appreciated
        // I'm trying to learn!
    Then what I think the script needs to do is tocheck the contents of the input folder and find out how many files are in it then set this as a variable, to set the length of a loop, maybe? Or should it load the filenames as an array and work through them sequentially?
    Once that information is established, there is a smart object on the first layer that needs to be updated with the contents of the first file - my thinking s that this is done by the script opening each image, and then copy/pasting into the smart object, merging down (so I don't end up with an enormous multi-layered file). My reason for thinking this would be a good idea would be that I could just run a quick check to make sure that no landscape pics have sneaked in there and if they have, rotate them (which again, is pretty easy as even I could do that bit, too).
    doc = activeDocument;
                if (doc.height < doc.width) {
                  doc.rotateCanvas(90);
                } else {
                  // Carry on
    This will update all of the smart object instances throughout the layout template.
    Then the text underneath the main image needs to be updated with the filename of the file that has been pasted in the smart object, and after that a [flattened] copy saved out to an output folder.
    Rinse and repeat for the remaining images in the input folder.
    Any thoughts?
    Thanks
    Fenton

  • Automating RAW file conversion to Photoshop with Smart Object Layer

    Hi
    Can anyone tell me if it is possible to automate an action (and the steps) to open a series of photos from their raw file state to a Photoshop file with a smart object layer. I have tried **** this... recording an action without success... it ends up creating a photoshop file with a background layer, no smart object layer.
    Am i missing something obvious? Thanks for your help!
    Regards bruce

    Hi
    Can anyone tell me if it is possible to automate an action (and the steps) to open a series of photos from their raw file state to a Photoshop file with a smart object layer. I have tried **** this... recording an action without success... it ends up creating a photoshop file with a background layer, no smart object layer.
    Am i missing something obvious? Thanks for your help!
    Regards bruce

  • Camera Raw / smart object ?

    Using CS3 / CR / Bridge
    Scenario:
    I've shot 500 wedding images, sorted & edited them in Bridge. Now I'll look at each one in camera raw (in Bridge) and make any needed adjustments. I use CR and adjust / sync as many similar files as I can; zipping thru the 500 images quickly and save without opening, then in Bridge > Tools > Photoshop > Image Processor, I use the image processor to process all the 500 images (while I sleep), and save as tiff or psd. I set the CR options to process as a Smart Object. But the files don't process a SO.
    Question:
    Is there a way to process /batch process the 500 images and  have them saved so later when I open them, they open as smart objects. I only fine tune the client "Picks" as they don't order all the 500 images shot. Now if I want to alter the color balance, exposure, etc., I can double click the smart object, go back into camera raw and make any adjustments/ refinements, click OK and it updates the file. This mantain's a higher integrity of the file.
    In CR I know I can check the box "open as a smart object", but that only seems to apply if I immediately open the file (or files) and then save them. It is not practical or feasible to select 500 files, open and save them at one time. If I save the Raw file(s) to open later, (as in my above workflow) then it will not open as a smart object.
    Another way to ask this question:
    Why can't I use the Image Processor in Bridge / CR to process my 500 CR files as Smart Objects?
    When in CR I can set the options to process as a SO, but that only will process the open file(s) in CR as SO. Not practical to process 500 files.
    I checked on the Adobe Exchange but did not find any scripts or actions that would facilitate this.
    Does anyone know if what I'm trying to do is possible and how?
    Thanks,
    JeffN

    In an effort to keep this question / answer current, (this question is on listed on two forums) here is an answer from Jeff Schewe from the Photoshop > Mac forum.
    31. Jul 29, 2010 3:58 PM in response to: Jeff_N
    Re: Camera Raw / smart object ?
    Jeff_N wrote:
    Jeff S
    Any thoughts, suggestions, or can this not be done.
    I'm pretty sure it's a bug....when recording the action in CS5, if you change the Workflow Options to open as a Smart Object, ALL the settings are hardcoded into the recorded Open action step. This is wrong...if you open an image and change the Workflow OPtions but DON'T try to open as a Smart Object, the Open action is recorded correctly–only the Workflow Options are recorded and when processed the files properly retain their individual original settings. So, the act of changing the Workflow Options to make a Smart Object is incorrectly hard coding the settings in.

  • How to place raster images as smart objects?

    I'm trying to duplicate Photoshop's File:Place menu functionality and I'm experiencing something that I can't figure out. (I've added my code to the end of this message.)
    I have a variety of test EPS images that I can run through the File:Place menu. They all appear on the document as "Smart Objects". That is I can then do a bunch of transforms to the image (like rotate, move, deform) before committing to the image to the document.
    The important point here is that some images, when opened by Photoshop, first ask that I "Rasterize EPS Format" while others just open up without comment.
    While doing these File:Place actions, I've been using the Listener plugin that comes with the SDK to generate code dumps of my actions. From these I've then generated my own code for placing images onto a document. I've had to re-arrange the code a bit to work in Objective-C so there's a good chance that I've done something wrong while translating.
    Now if you look at my code you notice a commented out section. If you uncomment those lines then you basically have what I got from the Listener plugin log. But the problem is that this code then doesn't act like the File:Place menu action. It creates a new layer, places the image on the page - but its gone one step too far and the image is no longer a "Smart Object". The image is committed to the layer.
    With a bit of experimenting I commented out the line that you can see commented out in my code. However, this does something odd. For all images you can see Photoshop put up a busy icon for a few seconds showing that it is process, but only images that Photoshop wants to "Rasterize EPS Format" actually appear on the page as Smart Objects. Trying to place the images that Photoshop doesn't rasterize results in nothing appearing.
    That's my problem. If I uncomment that line in my code then all images that I test with appear on the page - but not as Smart Objects. If I comment out the code then only images that Photoshop wants to rasterize appear - but those that do appear then appear as Smart Objects.
    So that's my goal: to place any image onto a document as a Smart Object just like Photoshop's File:Place menu command does. Any ideas where I'm going wrong?
    - (SPErr)photoshopPlayeventPlace:(char *)cPath
    PIActionDescriptor result = NULL;
    Auto_Desc descriptor;
    Auto_Desc offsetDetails;
    SPErr error = kSPNoError;
    Handle aliasValue = NULL;
    FullPathToAlias(cPath, aliasValue);
    do
    error = sPSActionDescriptor->PutAlias(descriptor.get(), keyNull, aliasValue);
    if (error) break;
    // error = sPSActionDescriptor->PutEnumerated(descriptor.get(), keyFreeTransformCenterState, typeQuadCenterState, enumQCSAverage);
    // if (error) break;
    error = sPSActionDescriptor->PutUnitFloat(offsetDetails.get(), keyHorizontal, unitDistance, 0);
    if (error) break;
    error = sPSActionDescriptor->PutUnitFloat(offsetDetails.get(), keyVertical, unitDistance, 0);
    if (error) break;
    error = sPSActionDescriptor->PutObject(descriptor.get(), keyOffset, classOffset, offsetDetails.get());
    if (error) break;
    error = sPSActionControl->Play(&result, eventPlace, descriptor.get(), plugInDialogSilent);
    if (error) break;
    while (false);
    if (result != NULL) sPSActionDescriptor->Free(result);
    if (aliasValue != NULL) sPSHandle->Dispose(aliasValue);
    return error;

    If you want to go with Batch I would recommend creating an Action of more or less these steps:
    • set the resolution to the same as the background image’s
    • change the image from Background Layer to regular Layer if necessary
    • convert it to a Smart Object
    • add a Drop Shadow Layer Style to the image (do not use Global Angle)
    • place the background image (File > Place …)
    • move it behind the image layer
    • Image > Reveal All
    • make Selection from that layer’s transparency (cmd-click its icon in the Layers Panel) and use Image > Crop
    • select and transform the image layer to fit the intended position
    This would naturally work out best if the images had the same size and proportions.
    For the reflection on the floor duplicate the image, flip it vertically, move it in position and reduce its opacity to maybe 10%.
    Realistically you may have to hide it partially behind the pillows, a Vector Mask would be an option.

  • Smart objects not updating.

    hi, i'm currently stuck with and issue that's ruining my workflow and slowing me down.
    the basic job is to photograph lamps and replace the background. (see hallmarklighting.com)
    i usually do so by editing the original photo and cut it out with the pen tool, ending up with several layers of adjustments and whatnot. i take those layers and insert them into a smart object of a template file i made for the background, from there it's just a matter of saving the various output files (print/web/psd).
    the issue is that just recently when i save the smart object, it doesn't update, the progress bar stops at about 75%. the program doesn't freeze nor does the computer. the layers are saved in the smart object, but it won't show up in the main file, preventing me from saving out the final image. it started last  week. i have discovered if i flatten the image of the smart object, it works as it should. I'd be fine with this solution if i wasn't constantly asked to rework files for advertising materials and whatnot.
    if anyone has a suggestion as to what could be causing this or how to fix it please let me know.
    system info:
    Adobe Photoshop Version: 12.0.4 (12.0.4x20110407 [20110407.r.1265 2011/04/07:02:00:00 cutoff; r branch]) x64
    Operating System: Mac OS 10.8.5
    System architecture: Intel CPU Family:6, Model:26, Stepping:5 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Physical processor count: 4
    Logical processor count: 8
    Processor speed: 2800 MHz
    Built-in memory: 10240 MB
    Free memory: 7966 MB
    Memory available to Photoshop: 9299 MB
    Memory used by Photoshop: 90 %
    Image tile size: 128K
    Image cache levels: 4

    Is using Layer > Smart Objects > Replace Contents not an option?
    Boilerplate-text:
    Are Photoshop and OS fully updated and have you performed the usual trouble-shooting routines (trashing prefs by pressing command-alt-shift/ctrl-alt-shift while starting Photoshop until the appropriate dialog appears after making sure all customized presets like Actions, Patterns, Brushes etc. have been saved and making a note of the Preferences you’ve changed, 3rd party plug-ins deactivation, system maintenance, cleaning caches, font validation, etc.)

  • Photoshop CS6, Free Transform & interpolation on Smart Objects

    Hi,
    I'm really frustrated with this, since in all the previous versions this problem was not present.
    When I try to scale down a Smart Object, by using the Free Transform tool, I get over-sharped edges. I suspect this is an interpolation issue. Mind you when I do the same on a raster layer I can overcome it since there is an option box where I can choose interpolation method.

    flamestudios wrote:
    That worked for me, even if I would prefer to be able to choose interpolation method when I transform Smart Object layers, just like you can on raster ones.
    That not an option and its never an option using DOM scripting code you need to retrieve the users interpolation method set the one you want to use and then restore the users preference.  Adobe even broke that in CS6. If you try the retrieve the user preference and it set to "Bicubic Automatic" which happens to be Adobe's default setting CS6 script encounters an internal error. If you catch the error and you can know the user setting is "Bicubic Automatic" If you change the setting your unable to restore the users setting for like you can not retrieve "Bicubic Automatic" using DOM code you can not set it with DOM code.  Perhaps you can with Action Manager scriptlistener code.  I'll give Adobe some more time to fix this before adding special code into my scripts to get around the CS6 problem.

  • Bug or feature: opacity and blend-if values wiped out when convert layer to smart object

    I had some unexpected results in an action I put together. As I was stepping through it, I found that conversion of a layer to a smart object reset the opacity to 100% and removed any blend-if adjustments, though the blending mode was retained. This is certainly an unexpected effect--is it a bug?

    Smart objects are always created at 100% and  will wipe any other blending, the blending still exists WITHIN the Object, itself. This is the most logical and sensible way for it to work - you will realise this if you think it through. Blend modes on the other hand are sometimes copied from the source layer or Group, this is possible and its a kind of shortcut.
    To get the original blending into the Smart Object layer -  Open the Smart Object, right click on the layer with the correct bending Choose "copy layer style". Now Back in your master document you can "paste layer style" into the Smart Object layer.

  • "New Smart Object via copy" via JavaScript?

    I'd like to know how to copy a smart object but, so every smart object is independent.
    I know you can copy layers via layer.duplicate() but that function just copies a instance of the object instead of creating a new object. So how would you do it?

    Install Scriptlisener Plugin and do menu layer>Smart Objects>New Smart Object via Copy
    javascript action manager code looks like this
    // =======================================================
    var idplacedLayerMakeCopy = stringIDToTypeID( "placedLayerMakeCopy" );
    executeAction( idplacedLayerMakeCopy, undefined, DialogModes.NO );
    Look quit a bit like Michael's above append one may execute faster the the other.

Maybe you are looking for