FORUMS: list search recent posts

Photoshop CS3 Scripting - Smart Object?

COW Forums : Adobe Photoshop

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Matthew Joal
Photoshop CS3 Scripting - Smart Object?
on Jan 4, 2008 at 7:30: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.


Return to posts index

ekim wahs
Re: Photoshop CS3 Scripting - Smart Object?
on Jan 4, 2008 at 6:26:47 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


Return to posts index

Matthew Joal
Re: Photoshop CS3 Scripting - Smart Object?
on Jan 5, 2008 at 6:52:15 am

Great - that worked - Thanks!



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]