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){}
};
CS5 feedback needed
-
txuku
CS5 feedback needed
Bonjour
It works well!
I have tested several types of layers : no problem
It works well!
I have tested several types of layers : no problem
-
Mike Hale
CS5 feedback needed
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.