CS5 feedback needed

Anyone, especially newbies, asking for help with Photoshop Scripting and Photoshop Automation - as opposed to those contributing to discussion about an aspect of Photoshop Scripting

Moderators: Tom, Kukurykus

Mike Hale

CS5 feedback needed

Post by Mike Hale »

Would someone test this in CS5? I have been told it doesn't work in that version and no longer have that version installed. Test with a document open and a non-background layer selected. It should bring up the blending option/layer effects dialog. Thanks.
Code: Select alllayerEffectsDialog();
function layerEffectsDialog() {
    var desc1 = new ActionDescriptor();
    var ref1 = new ActionReference();
    ref1.putEnumerated(app.charIDToTypeID('Lyr '), app.charIDToTypeID('Ordn'), app.charIDToTypeID('Trgt'));
    desc1.putReference(app.charIDToTypeID('null'), ref1);
    var desc2 = new ActionDescriptor();
    var desc3 = new ActionDescriptor();
    desc2.putObject(app.charIDToTypeID('Lefx'), app.charIDToTypeID('Lefx'), desc3);
    desc1.putObject(app.charIDToTypeID('T   '), app.charIDToTypeID('Lyr '), desc2);
    try{
        executeAction(app.charIDToTypeID('setd'), desc1, DialogModes.ALL);
    }catch(e){}
};

Professional AI Audio Generation within Adobe Premiere Pro - Download Free Plugin here

pfaffenbichler

CS5 feedback needed

Post by pfaffenbichler »

Works for me on Photoshop 12.0.4.
txuku

CS5 feedback needed

Post by txuku »

Bonjour

It works well!

I have tested several types of layers : no problem
Mike Hale

CS5 feedback needed

Post by Mike Hale »

Thanks for the feedback. I think the reason it's not working for the person who reported it to me is he is using it with the background or locked layer active.
txuku

CS5 feedback needed

Post by txuku »

BackgroundLayer :





and LockedLayer :