ScriptSpot

Script

GetSelectedMaterial

By colinsenner · Credited author: Colin Senner · 2009-02-18

Version
1.0
Version requirement
9+
Date updated
2009-02-18
Votes
13
Description

This script easily gets the material(s) and loads them into the material editor.

With multiple objects selected it will load them all into the editor.

I suggest keybinding this to CTRL-SHIFT-G for speeding up your workflow instead of using a toolbar icon!

Additional Info

1. Run script 2. In Max goto "Customize->Customize User Interface...->Keyboard tab->Category: ColinScripts->GetSelectedMaterial", click the "Hotkey" field and press CTRL-SHIFT-G. Press Save at the bottom.
Attachments

Tags: get selected material editor medit find colin senner arnold imaging

Comments (11)

colinsenner · 2009-02-20

I have always liked the mushroom. most users don't have any icon, and my icon is just me from 4 years ago...maybe I should update it. I think I will.

colinsenner · 2010-04-22

yep...still haven't updated it.

brittnell · 2009-02-20

Yeah, sorry about that!

One of our artists just made this stupendously awesome painting of my partners and I, and I'm just so excited about it that I'm plastering it everywhere I can.

I think it does look a bit more like me than the old "electric mushroom" though...

colinsenner · 2009-02-20

You changed your icon after like a year! Now I don't recognize you...I'll get on that soon.

brittnell · 2009-02-19

Hey Colin,

That addition to the script works just right, thanks!

Also, glad the idea about the multi-subs helped.  Hopefully it won't be too big a pain to implement.

Cheers,

Britt

colinsenner · 2009-02-19

I prefer my no-interface approach. Since this is really a script that only saves you a few button clicks, it seems wasteful to go about clicking around and typing in an interface, since Max's interface allows this functionality already. Mine is just a streamlined approach to doing what I need to as fast as possible! Do you agree?

-Colin

colinsenner · 2009-02-19

Great idea with the multisubs. I can implement something just like that soon. Honestly I couldn't think of anything to do with them, but your idea is great!

colinsenner · 2009-02-19

Britt! Good to hear from you. I feel like we only talk when something is wrong ;). I originally wrote the script that way because that's how I like to work too. However, my colleagues didn't like this change so I kept it like it is now.

You can add that functionality back in very easily!

on the 7th line in between both "for"'s add this:

macros.run "Medit Tools" "clear_medit_slots"

and on the 5th line that reads:

     local curSlot = activeMeditSlot

change it to

    local curSlot = 1

Also check out my new PhotoshopSelectedMaterial script!  I think you'll like it.

 Regards,

Colin

brittnell · 2009-02-19

Heh heh... No, it's not that something's wrong per-se, more that I see it as an inspiring jumping-off point ("ooooh... wouldn't it be cool if").

Though now that I think about it, I suppose that can be kind of irritating. 😳

Thanks for the tip for adding that in, I'll give it a shot in the morning.

Also, sorry to hear your colleagues are "doing it wrong".  😉

I did grab your other recent script, and gave it a quick go.  Seems to do what it says just right, and will surely come in handy.  That said, I did catch the question about multi-materials, and it's a good one...  Is there any way to put a "stop" in with a check-mark or buttoned pop-up that would have the (hopefully named) slots available for selection (and subsequent forwarding to PS)?  Seems kind of nightmarish.

Thanks again for all your cool scripts, they really do get a lot of use over here!

I owe you a beer some day at the very least!

Cheers,

Britt

brittnell · 2009-02-18

Thanks Colin!

Just an idea... Would it be too much "overhead" to clean the material editor prior to loading the material?

I have a "thing" about waiting to load someone's material editor that they've left 20 complex multi-materials loaded into.

I have been using the "MatClean" script to remedy this prior to opening the material editor, but it would be nice to have an "all-in-one" solution:  select object/"ctrl-shift-g"/edit solo material in optimized editor... ah, sounds like a dream.

Cheers,

Britt

Ps. Here's a post I made about the general idea a while back.