Forum Groups
  All forums
    Help & Feedback
      Questions
      Work in progress
      Finished Art
      Non-Max related
    Community
      Offtopic
      News
    Hardware
    Photography



Maxunderground news unavailable

Maxscript: check if bitmap has an alpha channel
show user profile  3joez
Does maxscript have a function to know wether a bitmap has an alpha channel or not?

Never mind. I've found it:


$.material.diffuseMap.bitmap.hasAlpha
Photobucket

read 534 times
8/26/2014 5:31:35 PM (last edit: 8/26/2014 5:48:30 PM)
show user profile  3joez
Ok let me hijack my own post, now I have another problem.

I want to compare pixel values from an image's alpha channel(so that if they are all white I execute an action). I can't seem to access the alpha channel data with getpixels openbitmap or whatever.

Is that even possible?
Photobucket

read 506 times
8/27/2014 11:45:10 AM (last edit: 8/27/2014 11:45:10 AM)
#Maxforums IRC
Open chat window


Support Maxforums.org