🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.photoshop.scripting
Article #214

Why can't I do "layer.kind = LayerKind.SMARTOBJECT;"?

#214
From: Luis_Morcillo
Date: Fri, 20 Mar 2009 09:47
5 lines
1126 bytes
I want to save each image layer from a PSD separately, and if the image has an effect OR its opacity is < 100%, it needs to be converted to an SmartObject layer and then rasterized (so it becomes a "LayerKind.NORMAL" layer with its effect, rasterized).

I can do it in two clicks, but when I try to do it by scripting, I get an alert saying something like "ArtLayers can't be converted to SmartObjects". I think that makes no sense, because you can do it by right-clicking a layer a selecting "Create smartObject", but whatever...

Is there a workaround for this?
Technical Details
Message-ID: <59b85b78.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,891f8834363aa50a,start
X-Google-Attributes: gidf5839,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Luis_Morcillo@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.photoshop.scripting
Subject: Why can't I do "layer.kind = LayerKind.SMARTOBJECT;"?
Message-ID: <59b85b78.-1@webcrossing.la2eafNXanI>
Date: Fri, 20 Mar 2009 02:47:09 -0700
Lines: 11
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit