HELP: PHOTOSHOP SCRIPT : how I retrive the 3DLUT Path from the colorlookup layer properties ?
Hello,
I'd like to name the color lookup adjustment layer after the name of the 3dlut I have applied.
The script logic is quite simple: if the active layer is a color lookup adjustement layer, then retrive the full path from its properties, extract the base name, and rename the active layer using it.
#target Photoshop
if (app.activeDocument.activeLayer.kind == LayerKind.COLORLOOKUP) {
var id = app.activeDocument.activeLayer.id;
// how I retrive the 3DLUT Path from the colorlookup layer properties ?
var lutPath = 'D:\\MyLUTs/Film Emulation\\kodak ektar 100.cube';
lutPath = lutPath.replace(/\\/g, '/');
var lutName = lutPath.substring(lutPath.lastIndexOf('/')+1, lutPath.lastIndexOf('.'));
app.activeDocument.activeLayer.name = lutName;
}
else {
alert("Please select a Color Lookup layer!")
}Can someone to explains me how to retrive the path properties of a color lookup adjustement layer ?
Thank you very much.
