pixel resolution of an image file

Hi everybody,

By using maxscript how can I get pixel resolution (width and height) of an image file which is used as texture.

thx for your time
ny

Comments

Comment viewing options

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

Thanks, this is exactly what

Thanks, this is exactly what I am looking for.

Anubis's picture

Shortly, using

Shortly, using ".bitmap.width" and ".bitmap.height", ie if for example your material is in 1st ME slot and the texture map is assigned to the diffuse then:

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

my recent MAXScripts RSS (archive here)

Comment viewing options

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