SimplyMaya Forums

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

Home / forum / Lounges / Maya Basics & Newbie Lounge / selecting faces that are assigned by a shaader through mel
Register FAQ Members List Calendar Mark Forums Read

New Thread
 
Thread Tools
Old 23-11-2010, 03:55 PM   #1
junkyBob
Subscriber
 
Join Date: Dec 2004
Posts: 203
Thanks: 0
Thanked 3 Times in 3 Posts
Exclamation selecting faces that are assigned by a shaader through mel

Hi
It has been awile since Iast visited, but I have question. I know it is possible to select the faces of an object that are assigned to a shader group in the hypershade window, but how do you do it in MEL? I tried looking at the script window, but it writes this....

select -cl; select -r polySurface.f[5:9]

which does not help me, because in my script it does not know which faces should be selected. My script is based on knowing the name of the assigned shader. Also, I tried googling it and found one person, on a different forum, and he mentioned to use hyperShade -smn (name of shader). I tried doing that and nothing happens.

Does anybody else have an idea how this is done?
junkyBob is offline   Reply With Quote
Old 24-11-2010, 01:40 AM   #2
bullet1968
Lifetime Member
 
bullet1968's Avatar
 
Join Date: Feb 2010
Location: Australia
Posts: 4,255
Thanks: 158
Thanked 651 Times in 621 Posts
Default

I know NOTHING about MEL mate but I tried this...made a simple cube and assigned different colours to the faces...and experimented whilst watching the script window and came up with this...and it worked....dunno why you want to use the script editor though mate??


select -r pCube1 lambert4SG;

so I assume pCube1 is the model and then I just typed in lambert4SG and it highlighted those relavent colours...hope this helps

cheers bullet
__________________
bullet1968

"A Darkness at Sethanon", a book I aspire to model some of the charcters and scenes
bullet1968 is offline   Reply With Quote
Old 27-10-2014, 12:03 PM   #3
AlexSudnikov
Subscriber
 
Join Date: Apr 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey thanks for the tip guys ,

Just ran into the same problem , i guess hypershade -objects(-o) will do the trick !
AlexSudnikov 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
Keep faces on Sircharles Maya Basics & Newbie Lounge 2 07-12-2010 12:20 PM
MEL headache!! happymat27 Mel Scripts & Programming 1 03-12-2010 03:41 PM

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.