Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   Getting info about file texture node (https://simplymaya.com/forum/showthread.php?t=2027)

kbrown 10-11-2002 06:53 PM

Getting info about file texture node
 
I need a way to get the width and height of an existing file texture node in pixels using MEL. Anyone? ;)

This is a part of a bigger script. I'll post it here if I get it working :)

kbrown 10-11-2002 08:15 PM

Found it. Wasn't too hard after finding out where to look :)

Here it is:
Code:

getAttr MyFileTextureNode.outSizeX;
getAttr MyFileTextureNode.outSizeY;


mtmckinley 10-11-2002 08:20 PM

cool. It looks like we need more MEL guys around here. Afraid that's one area of Maya I know zilch about. lol

kbrown 10-11-2002 08:28 PM

I'm working on a script that speeds up the reference image plane setup. I'm almost ready to release the first alpha version :)

[bugwarning]
be aware, this is my first "real" mel script :)
[/bugwarning]

:beer:

undo 10-11-2002 11:08 PM

nice kbrown, looking forward to try it out :)


All times are GMT. The time now is 12:00 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018