Author Topic: How do I get alg.mapexport.save( ) to output RGB instead of INDEX color  (Read 2905 times)

REPOST : original in wrong forum.

I am using a stripped down version of photoshop.js in order to send data directly to a Python callback and ultimately save out.  This is working great however the artists are using L8 and L32 as settings on the channels.  These channels are being output directly to .tga files, however, they are considered INDEX'd by Photoshop and I want to set them to sRGB or RGB8 before the save happens.  Is there a setting that can be flipped just before the .save( ) happens and restored post-save?


The function alg.texturesets.editChannel() is what you are looking for. It's a recent API addition however, you may need to update.
Don't forget your log file. It can be exported from the Help menu of the software.
-----------
Fabrice Piquet aka Froyok. Product Manager, Technical Artist and Documentation at Adobe.