How to make HSL Adjustment Layer and load a preset file?

Hi folks!

I wonder how the following scenario could be achieved using a Vanilla UXP script :

I’d like to create an HSL Adjustment Layer (no problem so far…), and then load up a preset file “myPreset.ahu” that would be living in [Plugin Root Folder] > lib > presets

Many thanks in advance!

You might need to binary parse the file preset and then convert data into setter action.

https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/#50577411_pgfId-1056863

Or perhaps try luck by changing presetKind and adding using path (token) into setter action. I mean merging it kind of together.


image

Would I need to use Manifest v5 for this option?

Maybe not. I am not sure.

Nope. Works also with manifest v4.