Copy link to clipboard
Copied
Hey
I'd like to set color lookup profile using script. How can I do it in PS? I'm lost, script listener does not really listen the command! :- (
TIA
Copy link to clipboard
Copied
If the answer given in Check if artLayer has color in it ? thread you created was correct, please mark it so.
Copy link to clipboard
Copied
Nope I'm afraid thats not it. Also wow, thats an old post 😄
I want to set this >
The 3DLut file
Regards
Dariusz
Copy link to clipboard
Copied
You should look at using action Manager script code to see if it is possible the retrieve that file's path. Not many know how to code Action Manager to retrieve information. Most just use Action manager that the scriptlistener recorded to perform Photoshop steps.
Copy link to clipboard
Copied
I'm 100% confused by your reply :- )
I've installed the script listener that gives me ScriptingListenerVB/ScriptingListenerJS files on desktop.
They are empty when I change the setting on lookup node.
Ok I did some more thinking... making adjustment layer and changing it setting gives me 0 result. BUT! going to Image > Adjustments > Colors Lookup actually worked!
It gave me >
```
var idcolorLookup = stringIDToTypeID( "colorLookup" );
var desc231 = new ActionDescriptor();
var idlookupType = stringIDToTypeID( "lookupType" );
var idcolorLookupType = stringIDToTypeID( "colorLookupType" );
var idthreeDLUT = stringIDToTypeID( "3DLUT" );
desc231.putEnumerated( idlookupType, idcolorLookupType, idthreeDLUT );
var idNm = charIDToTypeID( "Nm " );
desc231.putString( idNm, """S:\Surround.csp""" );
var idDthr = charIDToTypeID( "Dthr" );
desc231.putBoolean( idDthr, true );
var idprofile = stringIDToTypeID( "profile" );
desc231.putData( idprofile, String.fromCharCode(12,421,5,123,512,512,5,21)
```
Which is epic! But also scary. It looks like he "reads" the file and places its... what, byte array in String.fromCharCode? What ist hat thing ?
I would also like to perform that action and create an actual... adjustment node as layer with it applied as seyttings so we can control mask/opaicty/etc..
Any hints?
TIA!