Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe Photoshop Photoshop CS3 Scripting – Smart Object?

  • Photoshop CS3 Scripting – Smart Object?

    Posted by Matthew Joal on January 4, 2008 at 7:30 am

    I am hoping someone can help me with a problem I am having. I am opening a photoshop document and maniputing the layers and exporting them via script. The only thing I am having a problem with is opening my Smart Object. Is there a way to open the smart object via script without double clicking on the little icon?

    I can’t find this documented anywhere. The reason I need to do this is because I am adding images and making different layers visible in my smart object to change the look. This process is going to be working on a large scale, otherwise I would just do it manually.

    Any help would be appreciated! Thanks.

    Matthew Joal replied 18 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Ekim Wahs

    January 4, 2008 at 6:26 pm

    here is a function created from Script Listener to edit a Smart Object. Don’t forget to save and close the opened smart object to get the changes back to your original doc.

    EditSmartObject()

    // =======================================================
    function EditSmartObject(){
    var id6 = stringIDToTypeID( “placedLayerEditContents” );
    var desc3 = new ActionDescriptor();
    executeAction( id6, desc3, DialogModes.NO );
    }

    Mike Shaw
    Photoshop QE

  • Matthew Joal

    January 5, 2008 at 6:52 am

    Great – that worked – Thanks!

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy