Bitmap Sizes

Hi Everyone,
I was wondering how you could get the pixel width and Height of a diffuse/Base texture in maxscript? Is there anyway to access this information through scripting?

Thanks!

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
br0t's picture

sure! bm =

sure!

bm = meditMaterials[1].diffuseMap.bitmap
bm.height
bm.width

How you access the diffuse map depends on the material type, e.g. "diffuseMap" for Standard materials, "diff_color_map" for Arch&Design, "texmap_diffuse" for VrayMtl and so on. Your macro recorder can tell you the command when you turn it on and put a bitmap in a material slot.

Cheers

Never get low & slow & out of ideas

Dannat121's picture

Thanks Br0t! This is exactly

Thanks Br0t!

This is exactly what I needed!

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.