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 );
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 !
Copy link to clipboard
Copied
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...
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 !
Copy link to clipboard
Copied
Ah, I was testing with CMYK conversions, which would explain why we had different values.