Question
Javascript can't access legacyContentData of adjustment layer.
Hey
I'm a little lost, this function used to work great to get the "internal" data of different adjustment layers. But now I just get null? What happen ? Old PS is not working either any more, I'm lost 😕😕
function getAdjLayOpts (id)
{
try{
var ref = new ActionReference();
if (id == undefined)
ref.putEnumerated( charIDToTypeID("AdjL"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
else
ref.putIndex( charIDToTypeID( "Lyr " ), id );
var desc = executeActionGet(ref);
return desc.getList(stringIDToTypeID("adjustment")).getObjectValue(0).getData(stringIDToTypeID("legacyContentData"));
}catch(e)
{
$.writeln(e)
return undefined;
}
}
Post from past that I used to learn it I think > https://community.adobe.com/t5/photoshop-ecosystem-discussions/how-to-access-and-change-any-adjustment-layer-properties-after-created/m-p/9953993
