Complex UV Layout in Maya
Over the last couple of years UV layout in Maya has changed for the better. In this course we're going to be taking a look at some of those changes as we UV map an entire character
# 1 10-11-2002 , 06:53 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198

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? user added image

This is a part of a bigger script. I'll post it here if I get it working user added image


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
# 2 10-11-2002 , 08:15 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Found it. Wasn't too hard after finding out where to look user added image

Here it is:
Code:
getAttr MyFileTextureNode.outSizeX;
getAttr MyFileTextureNode.outSizeY;


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
# 3 10-11-2002 , 08:20 PM
mtmckinley's Avatar
The Maya Mountain
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
cool. It looks like we need more MEL guys around here. Afraid that's one area of Maya I know zilch about. lol

# 4 10-11-2002 , 08:28 PM
kbrown's Avatar
Moderator
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
I'm working on a script that speeds up the reference image plane setup. I'm almost ready to release the first alpha version user added image

[bugwarning]
be aware, this is my first "real" mel script user added image
[/bugwarning]

user added image


Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
# 5 10-11-2002 , 11:08 PM
Registered User
Join Date: Sep 2002
Location: wonderland
Posts: 66
nice kbrown, looking forward to try it out user added image


/ ctrl-z
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads