Mattrne
01-26-2009, 01:27 PM
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.
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.
