Notifications
Clear all

[Closed] Querying Res of bitmap in a material

I’ve been having a hunt through the maxscript help file to see if i can figure out how to query the resolution of a texture on a material. Does anyone know if this is something that is exposed or can I only access the file location?

I was thinking I would be able to do something along the lines of

r = selection[1].material.diffuseMap.bitmap.resolution

unfortunately,this doesn’t work and I can’t seem to find anything about finding the resolution of the texture.

My aim here is to write a checking tool that will go through assets created offsite that will look at predefined objects and check their assigned texture maps to make sure they are the correct resolution.

1 Reply

Scratch that I just found it.

I think my brain was asleep on Friday afternoon