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

Convert to Profile ( code from ScriptListener )

Participant ,
Oct 30, 2024 Oct 30, 2024

Copy link to clipboard

Copied

Hi,

Does someone know with what does "swdM" (= "shadowMode" ) tally ?

 

var idconvertToProfile = stringIDToTypeID( "convertToProfile" );
    var desc1 = new ActionDescriptor();
    var idnull = charIDToTypeID( "null" );
        var ref1 = new ActionReference();
        var idDcmn = charIDToTypeID( "Dcmn" );
        var idOrdn = charIDToTypeID( "Ordn" );
        var idTrgt = charIDToTypeID( "Trgt" );
        ref1.putEnumerated( idDcmn, idOrdn, idTrgt );
    desc1.putReference( idnull, ref1 );
    var idT = charIDToTypeID( "T   " );
    desc1.putString( idT, """ProPhoto RGB""" );
    var idInte = charIDToTypeID( "Inte" );
    var idInte = charIDToTypeID( "Inte" );
    var idClrm = charIDToTypeID( "Clrm" );
    desc1.putEnumerated( idInte, idInte, idClrm );
    var idMpBl = charIDToTypeID( "MpBl" );
    desc1.putBoolean( idMpBl, true );
    var idsdwM = charIDToTypeID( "sdwM" );
    desc1.putInteger( idsdwM, 2 );
executeAction( idconvertToProfile, desc1, DialogModes.NO );

TOPICS
Actions and scripting

Views

198

Translate

Translate

Report

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

correct answers 1 Correct answer

Participant , Oct 31, 2024 Oct 31, 2024

I have found the answer.

It tallies with the choice of the Destination Space ( RadioButtons for Gray, RGB, LAB ...).

Strange that i have never notice it before !

Votes

Translate

Translate
Adobe
Community Expert ,
Oct 30, 2024 Oct 30, 2024

Copy link to clipboard

Copied

@Panchromatic 

 

It's a mystery to me.

 

It's not related to rendering intent or BPC.

 

What does it mean and why do you get a "shadowMode" of 2? I always get a value of 4...

Votes

Translate

Translate

Report

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
Participant ,
Oct 31, 2024 Oct 31, 2024

Copy link to clipboard

Copied

I have found the answer.

It tallies with the choice of the Destination Space ( RadioButtons for Gray, RGB, LAB ...).

Strange that i have never notice it before !

Votes

Translate

Translate

Report

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 ,
Oct 31, 2024 Oct 31, 2024

Copy link to clipboard

Copied

LATEST

Ah, I was testing with CMYK conversions, which would explain why we had different values.

Votes

Translate

Translate

Report

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