Node Editor highlight materials based on viewport selection?

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 11 November 2012   #1
Node Editor highlight materials based on viewport selection?

Hi,

Starting using the Node Editor for a little bit and been missing this Hypershade function where I can "Select Materials from Objects"? Sometimes, when I have a lot of nodes pinned in the Node Editor, I can't quickly figure out the selected objects in viewport is with which materials in the Node Editor.

Anyone has this issue or did I miss something obviously?

Thanks.
__________________
Showreel: http://reel.jchvfx.com
spec:
Windows 7 x64, i7-920, GTX 480, 32 GB RAM
 
Old 11 November 2012   #2
right click - Graph materials on viewport selection
__________________
Nothing last forever
 
Old 11 November 2012   #3
I was referring to when you select objects in the viewport, a function/button to let you highlight their corresponding materials that are previously graph-ed or pinned in the Node Editor (without re-drawing the whole content of Node Editor), a function that is exactly the same as "Select materials from objects" in Hypershade.
__________________
Showreel: http://reel.jchvfx.com
spec:
Windows 7 x64, i7-920, GTX 480, 32 GB RAM
 
Old 11 November 2012   #4
I don't have Maya 2013 so I can't test the node editor, but what you ask should be possible with these two lines of MEL:

nodeEditor -e -agm 1 $nodeEditor;
nodeEditor -e -sn $nodeEditor;

// $nodeEditor must contain the name of the current Node Editor
 
Old 11 November 2012   #5
I usually bookmark my graph in node editor and kept using right click show material to select them and hit the bookmark to go back to where I was.
__________________
Nothing last forever
 
Old 11 November 2012   #6
Originally Posted by Nyro: I don't have Maya 2013 so I can't test the node editor, but what you ask should be possible with these two lines of MEL:

nodeEditor -e -agm 1 $nodeEditor;
nodeEditor -e -sn $nodeEditor;

// $nodeEditor must contain the name of the current Node Editor


Just tried the MEL but got an error:
// Error: "$nodeEditor" is an undeclared variable.
__________________
Showreel: http://reel.jchvfx.com
spec:
Windows 7 x64, i7-920, GTX 480, 32 GB RAM
 
Old 11 November 2012   #7
// $nodeEditor must contain the name of the current Node Editor


you'll have to query the name of the node editor first and replace the variable with it. I don't have Maya 2013 so I can't do it for you.
 
Old 11 November 2012   #8
Originally Posted by Nyro: you'll have to query the name of the node editor first and replace the variable with it. I don't have Maya 2013 so I can't do it for you.

Thanks Nyro. What's the command to query the name of the current open Node Editor?
__________________
Showreel: http://reel.jchvfx.com
spec:
Windows 7 x64, i7-920, GTX 480, 32 GB RAM
 
Old 11 November 2012   #9
*ahem*
You sure are making me quote/repeat myself alot...

I don't have Maya 2013 so I can't do it for you.


THat said, I suppose it's something along the lines of:

$ne = `getPanel -type "nodeEditor"`;
$nodeEditor = $ne[0];
 
Old 11 November 2012   #10
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
 
Thread Closed share thread



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
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 12:52 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.