Skip to main content
Participant
October 5, 2020
Question

Spot channels convert to rgb mode

  • October 5, 2020
  • 1 reply
  • 383 views

Hello everyone, I want to convert the document containing spot channels to RGB mode. I need a script for this.

This topic has been closed for replies.

1 reply

c.pfaffenbichler
Community Expert
Community Expert
October 5, 2020

Is »Merge Spot Channels« good enough? 

 

»I need a script for this.«

So what is the problem? 

AhkcAuthor
Participant
October 5, 2020
var doc = app.activeDocument;
MergeSpotChannels();
function MergeSpotChannels(){
    var spotChannels = [];
    for(var channelIndex = 0; channelIndex<doc.channels.length;channelIndex++){
        if(doc.channels[channelIndex].kind == ChannelType.SPOTCOLOR){
            spotChannels.push(doc.channels[channelIndex]);
        }
    }
    doc.activeChannels = spotChannels;
    executeAction( charIDToTypeID('MSpt'), undefined, DialogModes.NO );
};

This script works on documents containing Rgb + Spot channels. I just need a script that converts documents containing spot channels to rgb.  my english is not good I'm sorry :))

c.pfaffenbichler
Community Expert
Community Expert
October 5, 2020

Please elaborate on the images you are talking about? 

Are they Multichannel, CMYK, …?