image size?

30 views
Skip to first unread message

miarmy

unread,
Jan 11, 2015, 5:07:07 PM1/11/15
to python_in...@googlegroups.com
hi...how quary the size of a image?(width and height?)(by python or mel)

AK Eric

unread,
Jan 11, 2015, 5:22:50 PM1/11/15
to python_in...@googlegroups.com
I wrote a little wrapper using the API that does this.  You can see the code on my wiki.
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"`;
Reply all
Reply to author
Forward
0 new messages