SimplyMaya Forums

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

Home / forum / Animation / Mel Scripts & Programming / Getting info about file texture node
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 10-11-2002, 05:53 PM   #1
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default 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!
kbrown is offline   Reply With Quote
Old 10-11-2002, 07:15 PM   #2
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

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!
kbrown is offline   Reply With Quote
Old 10-11-2002, 07:20 PM   #3
mtmckinley
The Maya Mountain
 
mtmckinley's Avatar
 
Join Date: Aug 2002
Location: Seattle, WA
Posts: 8,245
Thanks: 1
Thanked 25 Times in 25 Posts
Default

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
mtmckinley is offline   Reply With Quote
Old 10-11-2002, 07:28 PM   #4
kbrown
Moderator
 
kbrown's Avatar
 
Join Date: Sep 2002
Location: London, UK
Posts: 3,198
Thanks: 0
Thanked 8 Times in 8 Posts
Default

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!
kbrown is offline   Reply With Quote
Old 10-11-2002, 10:08 PM   #5
undo
Registered User
 
Join Date: Sep 2002
Location: wonderland
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Default

nice kbrown, looking forward to try it out
__________________
/ ctrl-z
undo is offline   Reply With Quote
New Thread

« Previous Thread | Next Thread »

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Open a Lightwave file in Maya 2011 radiant777 Maya Basics & Newbie Lounge 2 04-12-2010 02:45 AM
where can i post info about 3D job openings? atadami Members Lounge 3 03-12-2010 09:51 AM

1 Month

$34

Month-to-month billing
$34/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
 
 

3 months

$87

Billing every 3 months
$29/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $5 per month or $15 in total compared to monthly billing with this package.

12 months

$288

Billing every 12 months
$24/month
Unlimited access to all videos
Project files to download
Easy to cancel at anytime
Save $10 per month or $120 in total compared to monthly billing with this package.

Your plan will automatically renew. You can cancel at any time via your PayPal account to avoid being charged again.

You can view the FAQ on our video plans here. You can contact us directly here. By clicking one of the buttons above, you agree to our Terms and Privacy Policy.