PDA

View Full Version : Look Up Texture Resolution


Mrguy
01-23-2013, 08:31 PM
So I'm working on some scenes that use 4 planes/quads (S, M, L, XL) each plane corresponds to a texture (64, 128, 256, 512) How can I get Maya to look up the texture size and apply it to the corresponding geo? I'm just getting so drained at how many scenes I have to create and really need a MEL solution.

gmask
01-23-2013, 08:39 PM
Offhand I'd say that you would need an external command to get that kind of info but there a python module that handles images that might be of use

http://www.pythonware.com/products/pil/index.htm

rgkovach123
01-23-2013, 08:48 PM
you can ask the fileNode for ".outSizeX" and ".outSizeY".
of course, the file node must be pointing to a texture file for this to work.

gmask
01-23-2013, 08:56 PM
you can ask the fileNode for ".outSizeX" and ".outSizeY".
of course, the file node must be pointing to a texture file for this to work.

ahh.. nice one

Mrguy
01-23-2013, 09:08 PM
Awesome looking into that now!

CGTalk Moderation
01-23-2013, 09:08 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.