I wrote a little wrapper using the API that does this.  You can see the 
code on my wiki 
<http://mayamel.tiddlyspot.com/#%5B%5BHow%20can%20I%20find%20the%20resolution%20of%20a%20texture%20from%20within%20Maya%3F%5D%5D>
.
Last I checked I couldn't find any direct command calls that do this, but 
maybe PyMel has some undiscovered magic.

Optionally if you have the texture assigned to a file node:

string $xSize = `getAttr "file1.outSizeX"`;


On Sunday, January 11, 2015 at 2:07:07 PM UTC-8, miarmy wrote:
>
> hi...how quary the size of a image?(width and height?)(by python or mel)
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/c9558a9f-abcb-4a12-9034-36adeb5737db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to