Skip to main content
Participating Frequently
September 14, 2016
Question

Change Document Mode to RGB 32 bit Without Merge

  • September 14, 2016
  • 1 reply
  • 988 views

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!

This topic has been closed for replies.

1 reply

c.pfaffenbichler
Community Expert
Community Expert
September 15, 2016

Have you tried recording the Action Manger code for this with ScriptingListener.plugin?

Participating Frequently
September 15, 2016

I have the Script Listener plugin however I'm not entirely sure what you mean about recording the action manager code.

SuperMerlin
Inspiring
September 15, 2016

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

};