Answered
Bits per channel photoshop scripts
Hello, please tell me how to indicate in the script the conditions "if the document is 8 bits then .... if 16 bits then ...".
Thank you.
Hello, please tell me how to indicate in the script the conditions "if the document is 8 bits then .... if 16 bits then ...".
Thank you.
var doc = activeDocument
if(doc.bitsPerChannel == 'BitsPerChannelType.EIGHT'){
//code here
}
else if(doc.bitsPerChannel == 'BitsPerChannelType.SIXTEEN'){
//code here
}
else{}//not 8 or 16 bitAlready have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.