PDA

View Full Version : Querying Res of bitmap in a material


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

Mattrne
01-26-2009, 02:29 PM
Scratch that I just found it.

I think my brain was asleep on Friday afternoon ;)

CGTalk Moderation
01-26-2009, 02:29 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.