Article View: adobe.photoshop.scripting
Article #497Re: Load Transparency from a layer?
From: Paul_R
Date: Thu, 05 Feb 2009 20:08
Date: Thu, 05 Feb 2009 20:08
32 lines
1295 bytes
1295 bytes
Here is a variation on X's code
The layer must be the active one...
selectTransparency();
function selectTransparency() {
function cTID(s) { return app.charIDToTypeID(s); };
function sTID(s) { return app.stringIDToTypeID(s); };
var desc27 = new ActionDescriptor();
var ref3 = new ActionReference();
ref3.putProperty( cTID('Chnl'), cTID('fsel') );
desc27.putReference( cTID('null'), ref3 );
var ref4 = new ActionReference();
ref4.putEnumerated( cTID('Chnl'), cTID('Chnl'), cTID('Trsp') );
desc27.putReference( cTID('T '), ref4 );
executeAction( cTID('setd'), desc27, DialogModes.NO );
};
Technical Details
Message-ID:
<59b7655e.3@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b7655e.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,f5c3946836c3aa35 X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Paul_R@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Re: Load Transparency from a layer? Message-ID: <59b7655e.3@webcrossing.la2eafNXanI> Date: Thu, 5 Feb 2009 12:08:24 -0800 References: <59b7655e.-1@webcrossing.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit