Get alpha from Psd file?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

Thread Tools Search this Thread Display Modes
  12 December 2008
Get alpha from Psd file?

Im trying to get the alpha channel from psd files but it's not working.
I use:

display (BitmapLayerManager.LoadLayer bitPath 2 true)
And then I click on the alpha buttin in the viewer.

What I'm getting here is the transparency (if you erase your image in Photoshop the bitmap will become transparent), but Im after the alpha channel since that is where we store our information for our opacity in the games. If I try
theBitmap.channels I get #() as a reply.

Does anyone know if this is possible?
Rare - Lead VFX Artist
  12 December 2008
I only have limited experience with the PSD file bits, but are you perhaps just looking for
display (openBitmap bitPath)

  12 December 2008
No that will only show the bitmap. But I'm looking for the bitmap channel of a bitmap and and when I import from Photoshop the alpha is just empty because its reading the transparency instead...

Rare - Lead VFX Artist
  12 December 2008
Hi Andreas

As far as i know, alpha channel from PSD hasn't worked ever in Max. It doesn't matter if you save in PSD compatibility mode or have one or multiple alphas (whatever it's called), alpha channel is always white...

My solution has been to use tiff, (it also saves all photoshop layers, which is nice for work-in-progress stuff) alpha channel reads ok.

EDIT: This is just based on loading textures manually.. but i guess it's same for scripts.
- S-S

Last edited by S-S : 12 December 2008 at 04:37 PM.
  12 December 2008
Ahh, that is too bad, but not unexpected I guess.

Mmmm, maybe I will do do a MaxScript extension but from what Im seeing psd files are not that much fun to read.
Rare - Lead VFX Artist
  12 December 2008
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
Thread Closed share thread

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Society of Digital Artists

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump

All times are GMT. The time now is 08:11 AM.

Powered by vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.