Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Javascript set lookup 3d lut file

Engaged ,
Jul 21, 2021 Jul 21, 2021

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

TOPICS
Actions and scripting , Windows
468
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
LEGEND ,
Jul 21, 2021 Jul 21, 2021

If the answer given in Check if artLayer has color in it ? thread you created was correct, please mark it so.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 21, 2021 Jul 21, 2021

Nope I'm afraid thats not it. Also wow, thats an old post 😄

I want to set this > 

Dariusz1989_0-1626863716777.png

The 3DLut file

Regards

Dariusz

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 21, 2021 Jul 21, 2021

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.

JJMack
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jul 21, 2021 Jul 21, 2021
LATEST

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!

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines