Jump to content

MaxScript: Load material library from directory.


quizzy
 Share

Recommended Posts

Just added a new maxscript on my website:

 

Open Material libraries from Directory.

 

Select a path where all you material files are. Click the pull-down menu and select a material library, it will automatically load in the material browser. This is a macroscript, after running the script you will find it in the "3idee Tools" category.

 

Check out the script section on my website to download the script.

Link to comment
Share on other sites

Nifty little script. Since I do this a lot when assigning materials, this is very convenient. Maybe dockable in the future, so you can only see the dropdown box that shows the libraries ?

 

And a more or less bigger problem: I can not read the matlib names in the dropdown list because the complete path is shown. Of course I can move these, but then they are not backup automatically ...

Edited by Trick
Link to comment
Share on other sites

thanks adriaan, it is a "I should have programmed this one a long time ago cause going to some obscure path on my server takes too long"-script

 

btw, it also saves the position and the last path used in an .ini file in the plugcfg file located somewhere very deep in the documents and settings path...

 

ow and there might be a little hickup if you cancel the selection of the path.

 

the button with the U! is an update button. So if you are in max and copy, rename or delete some of those files it updates the mat lib names and adds them if you've copied some in the file path

Link to comment
Share on other sites

  • 5 months later...

Thanks for this, will you still be developing it as its very usefull, ie the doking capablity like mentioned above.

 

Even an options box to set a default directory.

 

Do you know if it possible to preview the .mat directly from your script and then be able to drag to object or material edt.

 

Thanks once again

Link to comment
Share on other sites

  • 2 months later...
Thanks for the script. I cannot get it to work. Is there a problem with Max 2010? Installed the MS and saved it to a tool bar. UI comes up, but nothing happens to load the Material editor when I hit the "U" button.

 

first press the set material path button.

Link to comment
Share on other sites

  • 1 month later...
Hi Michiel,

 

A really nifty script. But i also have the problem the the material/map browser doesn't show up when i select a matlib. I tried this in max 2009.

 

best regards,

 

Joost

 

that is exactly how it should be. You have to manual open the material browser. Come to think about it, maybe it would be a cool addition to my script. I'll have a look, not very soon though, cause tomorrow is Animago time!! yay!

Link to comment
Share on other sites

Its a very handy script as it will list all the different matlibs in a given folder and thus you can just load up which ever matlib you want. Say you've got a RAL matlib, Wood matlib, metals matlib, you can just load it up with minimum clicks.

 

 

auto open of the material explorer dialog would be a nice addition

Link to comment
Share on other sites

hmmmm... one of my not-so-user-friendly scripts perhaps? its actually very straight forward (so I thought)

Lets say you have a directory somewhere on your server that holds your .mat files.

- press the top button (get material path)

- select the path (it does not support subdirectories)

- select the material library from the pulldown menu.

- open the material browser, and voila.. there is the material library loaded in the mat browser.

- if you are in the middle of a max-session, and someone copied another material library in the same path location, simply click on the U-button so the list updates.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...