Copy link to clipboard
Copied
I'm trying to convert the document mode from RGB 16 bit to a 32 bit by using:
doc.bitsPerChannel = BitsPerChannelType.THIRTYTWO;
I want to make this conversion WITHOUT merging the layers. Is there a way I can accomplish this.
Thanks!
Copy link to clipboard
Copied
Have you tried recording the Action Manger code for this with ScriptingListener.plugin?
Copy link to clipboard
Copied
I have the Script Listener plugin however I'm not entirely sure what you mean about recording the action manager code.
Copy link to clipboard
Copied
covertTo32Bit();
function covertTo32Bit() {
var desc6 = new ActionDescriptor();
desc6.putInteger( charIDToTypeID('Dpth'), 32 );
desc6.putBoolean( charIDToTypeID('Mrge'), false );
desc6.putBoolean( charIDToTypeID('Rstr'), false );
executeAction( charIDToTypeID('CnvM'), desc6, DialogModes.NO );
};
Find more inspiration, events, and resources on the new Adobe Community
Explore Now