Invoking script using smart object layer - fails in Windows

I have recently encountered in what seems to be a bug in Configurator in Windows. The same example works on a Mac.
The scenario is the following: a document with a smart object layer on top.
A configurator button executes the script app.activeDocument.activeLayer.resize(133.33333, 133.33333, AnchorPosition.MIDDLECENTER);
This causes an error message as below:
If I instead invoke the script manually, using File > Scripts > Browse... it works fine.
The button works fine if the smart object is rasterized.
I'm running Configurator 2 (052610), CS5 and Windows XP. Any help is greatly appreciated!

In sure if this is all you need to correct the error but the function below will return the active smart object contents type.
// returns either "vectorData" ( AI ) or "rasterizeContent" ( PS or ACR ) if smart cbject layer
// or undefined if not smart object layer
function getSmartObjectType(){
    var ref = new ActionReference();
    ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
    var desc = executeActionGet(ref);
    if(desc.hasKey(stringIDToTypeID('smartObject'))){// is smart object?
        var desc = executeActionGet(ref).getObjectValue(stringIDToTypeID('smartObject')).getEnumerationValue(stringIDToTypeID('placed'));
        return typeIDToStringID(desc);

Similar Messages

  • 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.

  • Extracting an .xmp sidecar from an ACR-edited RAW smart object layer...

    Hello all.  Given the following situation:
    Several thousand TIFF files, each containing two RAW files embedded into separate Smart Object layers.  The RAW files were named with sequential numbers prior to being composited into the TIFF files via a script, and the TIFF filenames correspond to those of the embedded RAW files.  The RAWs have subsequently been edited in ACR from within the TIFF files.
    I've done a little digging, but I can't seem to turn up answers to several related questions:
    A) Should I wish to re-extract the RAW files from the smart object layers with the edits that have been applied, is there a method of PerLayerMetdata that can be used to extract a complete .xmp sidecar that will be recognized by ACR and associated with the exported RAW?
    B) Should I wish to change the sequential-naming of the parent TIFF files, is there any method to correspondingly change the filenames of the embedded RAWs directly within the smart object layer?  In other words, using PerLayerMetdata, can the filenames of the RAWs be changed without exporting the RAWs using a different filename and then replacing the contents of the smart object layer?
    C) I would ultimately like to be able to save the embedded RAWs as DNGs with their ACR edits applied, if necessaray.  Given a way to accomplish A), above, it would be a fairly simple to export the RAWs and associated .xmp files and then run the DNG converter on the lot.  However, does anyone know of a way to save a DNG directly from the smart object layer?
    Any ideas or pointers to existing documentation are much appreciated.

    Thank you kindly, Michael.  I see now that the example I was viewing had done exactly what you describe, writing ACR settings into the SO layer's metadata at the time of embedding.  I was only looking at the portion which later accessed those settings using PerLayerMetadata, and I had mistakenly assumed that CS5 was automatically embedding xmp data in this manner, now, when opening or placing a RAW file as a SO.
    I don't see a direct way to get at the ACR settings of a camera raw file embedded in a smart object.
    This is sort of what I was afraid of.  They're in there, somewhere, but I'm having no luck figuring out how to access them.
    If the ACR settings for a RAW smart object are, indeed, not exposed to automation in some manner, I think I must change my workflow such that either: A) No edits are performed in ACR after object embedding; or B) the RAWs are converted to DNGs prior to smart-object embedding so that the ACR settings can be exposed in the exported file.

  • Photoshop smart object layer will not open in ACR when I double click

    I have a raw file opened up in photoshop, duplicated it, made them smart objects, when I click the smart object icon on the file, i get another copy of the file in photoshop, the file doesn't open up in acr, is there a setting i'm missing?
    Message was edited by: Rodwf

    If you dupe that smart object layer you still have one smart object change one the other also changes.  If you want two smart object for the save image so you cab have two versions of raw conversions you need to use menu Layers>smart Object>New smart object via copy..

  • Photoshop CS6: Pros and Cons of Using Smart Objects

    I haven't had Photoshop CS6 for that long, and have only just got past feeling uncomfortable with using Curves, now I've learnt how to use them properly.
    My concern is - I am currently learning about Smart Objects. The concept, at first, seemed like 'the best thing since sliced bread', being able to non-destructively use filters, Shadows/Highlights command, Unsharp Mask, endlessly scale using Free-Transform etc etc, without harming pixels at all.
    However, the more articles I read about their use in Photoshop, the more I am afraid to start using them in my workflow.
    I understand that when you convert to a Smart Object, this process is non-destructive, i.e. I can perform as many readjustments to a filter, for example, and Photoshop will always work from the embedded container file (which has had no filter adjustment made to it) to adjust the filter to your most recently adjusted settings. If you later decide you don't want to use a filter at all, and rasterize the Smart Object back into a regular layer again, is this process non-destructive as well?
    Then there is this article, which I struggle to understand properly:
    http://bjango.com/articles/smartobjects/
    Please see the part 'Smart Objects Created in Photoshop'. It seems to say I can't scale with a Smart Object without causing interpolation and blurry edges. Please can somebody clarify what the writer of this article is trying to get across, because it is well documented that Smart Objects can be endlessly rescaled non-destructively.
    Please understand I use Photoshop primarily for editing photographs.

    There is much modern focus on "non-destructive" editing, but keep in mind if you don't overwrite or destroy the original file there is no destruction at the highest level.  Put in layman's terms, you could always start over with the raw file.
    That thought segways into my next one:  Non-destructive editing makes sense if you need to use the same information for a variety of somewhat related purposes, or if the work product may need to change (e.g., to suit the whims of a fickle client).
    But at another extreme, if you're editing for a particular purpose - say creating the best possible print from an exposure - sprinting right for the finish line by changing pixel values directly and being done with it can be an extremely effective approach.  This requires that you get things right the first time, and that takes practice.
    Some folks do their Photoshop work by building up layer after layer and using smart objects, smart filters, etc., and this can be effective but no computer has yet been built that can composite all that stuff in real time with a big image.  So there IS a cost to doing it.  What you might gain by being able to re-do things, you might not have needed to gain if your control responses were instantaneous and you could tweak the intermediate result at every step very easily.  Note the number of posts about how slow Photoshop CS6 is/was at editing deep documents, some by people using 2012 computers.
    As with most things, it's horses for courses.  It's good that Photoshop gives us rich tools and choices for how to work.
    Regarding your specific question, bear in mind that what's communicated to the parent document from each of its embedded Smart Objects is a flat, rasterized image.  Think of the embedded smart object kind of like going off and opening another document, making the changes you want, saving the document, then flattening it and pasting the pixels into your parent document.
    In the very first example in the linked article, they show how the smart-object-rasterized image of a vector circle, subsequently scaled by resampling the parent document in which the Smart Object is used, becomes fuzzy as it is scaled up.  Once you understand this you realize that of course you could scale up the smart object itself, e.g., to a size equal to or larger than what's ultimately needed by the parent document, and then it could be crisp in the parent document where it's used.
    Of course, having all your smart objects at a size larger than you need takes up even more resources.
    -Noel

  • Using Smart objects between documents

    I know how to make smart objects within a single document, but Is it possible to use Smart objects between separate psd files?
    I would like to create a master background file and have any changes made to this updated throughout all the other psd documents that contain this.
    I cant find any info on this...Can it be done?
    thanks
    Jeff

    No a smart object layer contains a copy of the original in the layer.  If you then change the orignal the copy in the smart object layer is not updated and if you change the copy in the smart object layer the original is not changed. Smart Object are independant from the original.  It is posible to have multipal smart object layers that contain the same smart object in a single document. You can change the single smart object from any of the layers that its in.  You can also have independant smart object layers of the same image. That the difference between dupeing a smart object layer and using menu layers>smart objects>new smart object via copy. 

  • Why use smart objects

    Been away from photoshop since early days of CS6. At that time I did not use smart objects. Now I see many tutorials using smart objects and smart filters. Is the use of smart objects in the mainstream now? Reasons for and against using them.

    Smart Objects are a very good thing!
    Photoshop Help | Work with Smart Objects
    "Smart Object are layers that contain image data from raster or vector images, such as Photoshop or Illustrator files. Smart Objects preserve an image’s source content with all its original characteristics, enabling you to perform nondestructive editing to the layer."
    I can't think of reasons NOT to use them.
    Nancy O.

  • Smart object layer format

    Hi,
    in previous discussion you helped me open a smart object. It works, but I have another problem.
    Script throws "general photoshop error", because smart object layer format can not be opened in photoshop.
    So I want to ask how to get a Smart object layer format??
    Thank you Domaneni

    In sure if this is all you need to correct the error but the function below will return the active smart object contents type.
    // returns either "vectorData" ( AI ) or "rasterizeContent" ( PS or ACR ) if smart cbject layer
    // or undefined if not smart object layer
    function getSmartObjectType(){
        var ref = new ActionReference();
        ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
        var desc = executeActionGet(ref);
        if(desc.hasKey(stringIDToTypeID('smartObject'))){// is smart object?
            var desc = executeActionGet(ref).getObjectValue(stringIDToTypeID('smartObject')).getEnumerationValue(stringIDToTypeID('placed'));
            return typeIDToStringID(desc);

  • Transforming a Smart Object Layer

    Plain ordinary photograph.....  Start with a background layer.  Add a layer for doing non-destructive cloning.  Add a couple layers for adjusting curves and hue/saturation.
    Then do a merge visible to create a new layer from all the underlying layers and still keep all the underlying layers.
    Convert this layer to a smart object and apply Smart Sharpening.
    All the above works fine.........................
    Now I want to do a transform - free, scaling, whatever.....  I can select the marged layer but all the transforms are grayed out.
    How do I do a transform on a smart object layer?

    Hi Noel.  Your questions are valid...  This isn't my normal post-processing. 
    NORMALLY, I have a couple layers for dodging and burning, probably something for other fiddling, my normal adjustment layers for curves and hue/saturation, then a "stamp visible".  Depending on whether or not I wind up converting to b&w I may have a couple other layers for that....  Then I save the psd, and afterward crop and sharpen as needed.  Generally,
    my sharpening is to use the Smart Sharpen on my merged layer, OR to duplicate thelayer and do a high-pass sharpening.
    Recently, I've seen two presentations by well-regarded Photoshop experts extolling the virtues of doing as much as possible in non-destructive ways.  For sharpening, as I understand it, this means either opening the original image as a smart object, or converting to a smart object prior to sharpening.  SO, I've been trying this on some images, just to see if there are some real advantages, or if it's just a big pain-in-the-neck way to do something that's pretty standard....  Frankly, I"m still not sure.
    In THIS particular case, I had an image that had been edited, and the sharpening applied through the smart filter PRIOR to cropping.  My wife requested a non-standard resizing, not a crop, that meant using a transform to change the aspect ratio of the image.  That's when I found that the transforms wouldn't work on my smart object..
    Unfortunately, as it turns out, I was right - it was an error on my part.  I SELECTED part of the image on the layer with the marque tool...  Had i NOT done the selection, the transform would have worked fine.....
    So, the bottom line is yes, I agree that it's easy to get caught up in trying to make everything non-destructive and flexible, but sometimes it's more trouble than it's worth.

  • 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

  • Using Smart Objects with Aperture

    I want to start using smart objects in Photoshop, but I really like Aperture as my main platform. If I use Photoshop as an external editor in Aperture, can I then use my plug-ins inside of Photoshop, returning flattened images to Aperture? Or will I have to convert to Photoshop as my main platform?

    To the best of my knowledge , Aperture saves the PSD file created when you open an Image with PS as an external editor with layers — and, because PS Smart Object are contained in layers — and Smart Objects intact as a new Original.  (Here in the Apple Aperture support forum we have followed Ernie's helpful distinction and call these "Quasi-Originals".)  Don't rely on my word, though — this is easy to test for yourself.
    Note, though, that flattening a file that is open in PS _always_ eliminates all layers, including layers that contain Smart Objects.
    In my workflow, I _always_ flatten PS files prior to closing the file in PS.  That workflow works for me (I don't value being able to undo/redo changes I make in PS).  I do this with a macro (using Keyboard Maestro).
    Decide what works for you.  Afaik, the choice of whether to save layers (and Smart Objects) is independent of your use of Aperture to catalog and adjust your Images.

  • How do i drag and drop onto a smart object layer in Photoshop CS 5.5

    I recently bought a 3d mock up Photoshop file as I want to mock up my designs such as business cards and other 3d items. The file notes said With a simple drag and drop on the smart object layer your design will be presented in a realistic and striking way.
    Can you tell me how I do what they are telling me to do as I have played around with the file till the cows come home and can't work out how to do it. Do I need to do the old fashioned mock up way by skewing the image to fit or is there an easier way such as the drag and drop...?
    Any help will be gratefully received,
    Thanks

    Hi here is the template PSD and then I want to put my business card design over and it says you can drag and drop as per my previous message ...

  • Created Vector Smart Object layer from Ad Illust. to PS, can't see it, why?

    I am creating a postcard for mail out and I am new to the CS5 group of products.  I followed tutorial to drag an Adobe Illustrator file into Photoshop creating a vector smart object layer of my logo and saved it.  I closed the file and re-opened it thinking I would see my logo where I placed it but all I can see is the "X" box that allows you to adjust the size of the object.  Could anybody tell me the step to get the object to appear in my Photoshop file?  When I click on the vector layer it takes me back to AI so I believe they are connected the way they are supposed to be.  Thank  you in advance for the help.  If I am way off could you explain how?

    I want to thank you for your responses and help. 
    I inadvertently figured out what I was doing wrong while talking with a friend.  I didn't understand what layers really were and that they stacked on top of each other.  When I placed the vector smart object I left it's position under another layer which was blocking it or my logo so that even though the resize box was showing up the logo or vector smart image was under the other layer.  Once I clicked and dragged it's layer to the top of the layers the image was visable and the postcard done.  Yeah!
    Thanks again.

  • Want to apply poster edges to a smart object layer, but Filter Gallery is greyed out?

    Working a Photoshop tutorial on an image.  I want to apply poster edges to a smart object layer, but Filter Gallery is greyed out.  Filter Gallery is also greyed out for all other layers in this project.  (PhotoShop CC)

    Hi Filter Gallery,
    Please click on the image tab at the top and choose mode from 16bits/channel to 8bits/channel.
    Then check if the filter gallery is still grayed out.
    Thank you for posting on Adobe Forums.

  • Using Smart Objects in large scale documents.

    I'm creating a large scale banner (12' by 8') which includes a photographic background image with vector based logo elements and typography on top of it.  I am creating the document in photoshop, and wanted to know if using Smart Objects is the best solution for placing the logo elements and typography, but I don't know how they will be affected when the image is scaled for printing. 

    In that case a Vector Smart Object (File > Place or pasting the Illustrator content) should work fairly well.
    One thing to keep in mind is that in Illustrator Raster Effects (Drop Shadows, Filters, Color Meshes, …) have a resolution determined under Effect > Document Raster Effect Settings.
    If that resolution is low upscaling on Photoshop may reveal noticeable pixels.

Maybe you are looking for

  • New xfi2 firmware issue

    since i installed the new xfi2 firmaware my computer only recognizes my player for about 0 seconds before it closes it.

  • How to check the date is initial in the calculated keyfigure

    Hi, While calculating the difference between the two dates , i need to check the date is having the values or not in the calucluated key figures .how to achieve this . number of days = delviered date -  creation date All the dates are key figures Reg

  • Break out to Mono question

    Hey all.. I've got a wierd one here... When i break out a clip to mono, there's two extra .wav files that get created. When i put these two wave files on the timeline, they are abutted one against the other, rather than dropped down on separate mono

  • Cannot install solaris 8 for intel

    i boot a machine which has a AIC 7899 card using install CD, then choose add driver using a floppy made by downloaded ultra160 driver floppy image. the SCSI card and a hard drive thus can be found and i make two partitions,about 1G and 5G respectivel

  • Problems going through a Linux gateway

    Greetings, I am using a Linux box at home to drive my DSL connection, and share it with all other machines (using Netfilter's built-in NAT abilities). It's an Ubuntu Dapper running kernel 2.6.15. My Windows box has no problem at all and can access an