Skip to main content
Inspiring
October 30, 2024
Answered

Convert to Profile ( code from ScriptListener )

  • October 30, 2024
  • 1 reply
  • 427 views

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 );

This topic has been closed for replies.
Correct answer Panchromatic

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 !

1 reply

Stephen Marsh
Community Expert
Community Expert
October 30, 2024

@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...

PanchromaticAuthorCorrect answer
Inspiring
October 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 !

Stephen Marsh
Community Expert
Community Expert
October 31, 2024

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