SimplyMaya Forums

Welcome to the forum, feel free to ask questions here.


SM Forums / Maya Questions / Programming / Getting info about file texture node

Programming MEL Scripts, Expressions & Programming Related Topics

Join the conversation. Reply to post
 
Thread Tools
10-11-2002, 06:53 PM   #1
kbrown
Moderator
 
kbrown's Avatar
 
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?

This is a part of a bigger script. I'll post it here if I get it working
__________________
Kari
- My Website
- My IMDB

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

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!
  Reply with quote
10-11-2002, 08:20 PM   #3
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
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
__________________
-Mike
www.mtmckinley.net
The Maya Toolbelt
  Reply with quote
10-11-2002, 08:28 PM   #4
kbrown
Moderator
 
kbrown's Avatar
 
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

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

__________________
Kari
- My Website
- My IMDB

Do a lot, Fail a lot and Learn a lot!
  Reply with quote
10-11-2002, 11:08 PM   #5
undo
Registered User
 
Join Date: Sep 2002
Location: wonderland
Posts: 66
nice kbrown, looking forward to try it out
__________________
/ ctrl-z
  Reply with quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get Convert to File Texture (Maya Software) to work? madwh Maya Materials & Textures 14 21-11-2014 11:00 PM
Problems Rendering Volume Lights in Mental Ray Connor Lee Lighting & Rendering 3 16-04-2013 02:43 PM
no Rigid Bodies with Mental Ray batch pherax Lighting & Rendering 10 23-03-2011 11:35 AM
sampler info node nspiratn Lighting & Rendering 1 10-03-2004 01:13 PM
Texture file importing errors NitroLiq Maya Materials & Textures 4 14-02-2004 07:22 PM