Get Materials (one click!)

4 votes
Version: 
1.03
Date Updated: 
04/22/2024
Author Name: 
Hernan Rodenstein

A very simple but EXTREMLY USEFUL script you will use all the time!

With just one click it opens the Slate Material Editor and displays all the materials for the selected objects well organized in a clean view.

Forget about the annoying material picker tool. Add this simple button to your toolbar and every time you want to see the material/s for your current selected object/s just click the button and... Voila!

It will save you a lot of time!

INSTALLATION: Just drag the script to any viewport, go to Customize -> Customize User Interface -> Toolbars tab -> choose Spline Dynamics - free scripts category. Drag "GetMaterials" to your top toolbar. Ready to use!

Note: This is a free and open script. You may use it or modify it as you like. I provide no support or warranty for it. Use it at your own risk.
I hope you enjoy it!

Additional Info: 

It comes in 3 versions:

GetMaterials.ms: opens the Slate Material Editor, cleaning the default view.

GetMaterials_newView.ms: opens the Slate Material Editor in a new view.

GetMaterials_CompactMatEditor.ms: opens the Compact (Classic) Material Editor, overwriting the first slots.

The latest versions of these scripts will be always available at this page under the name 'Get Materials (one click!)'.

Version Requirement: 
3ds Max 2012 and higher
AttachmentSize
getmaterials.zip2.18 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
rode3d's picture

Updated!

Now it works properly for all 3dsMax versions!
Cheers!

d1myan's picture

Error in 3dsmax 2021

Error on 3ds max 2021. It worked fine on 3ds max 2019
if the View 1 tab already exists, it cannot delete it, and 3ds max exits with an error
Is there any way to fix this? A very convenient scenario was

npelouin's picture

It's ok! The script works

It's ok! The script works now! I've just reinstall 3ds Max 2020 and everything is ok. Sorry for my comment!

npelouin's picture

It's ok! The script works

It's ok! The script works now! I've just reinstall 3ds Max 2020 and everything is ok. Sorry for my comment!

rode3d's picture

The script was succesfully tested on Max 2020 and 2021

What do you mean you can't add it to your toolbar?
That's very strange. It looks like a 3dsMax temporary error, not a script error.
Did you have this behaviour with other scripts too in the past?

npelouin's picture

It doesn't work

Script doesn't work on 3ds Max 2020, nothing is happening. I tested the two versions on two different computers. And I can't add it to my toolbar. Strange.

drunkenmaster's picture

Edit Create just one temporary view

If someone wants to keep all existing views, and don't want to create a bunch of new views here is edited version below. It creates one new temporary view called "TEMP" each time you use a script, but keeps all costume created views.

	macroScript GetMaterials
category:"Spline Dynamics - free scripts"
tooltip:"Get materials"
buttontext:"GetMats"
 
(
	-- *** Opens the Material Editor and shows just the materials for the selected objects ***
	if (selection.count > 0) then
	(
		sme.Open()
		--DELETE AND CREATE A NEW VIEW
		--sme.DeleteView 1 false
		sme.DeleteView (sme.GetViewByName "TEMP") false
		NewView = sme.GetView(sme.CreateView "TEMP")
		--POPULATE THE VIEW
		for obj in selection do
		(
			NewView.CreateNode obj.material[0,0]
		)
		--ARRANGE THE VIEW
		actionMan.executeAction 369891408 "40060"
	)
	else
	(
		messagebox "You must have at least one object selected!"
	)
)
amitshneor's picture

make slate thumbnails big as a default, or on hotkey

that script change my life ! its great !
now i have a question if someone knows :
is there a way , a preference or a maxscript , to make the nodes in the slate matrial editor be big and not small and as a default for new creations...?

i know of the double click and the preview window, i mean all the nodes in the view...

Thanks in advanced !

campy's picture

3ds max 2020

Cheers. Working and pretty useful.

rode3d's picture

Great addition!

Thanks Aleksey :)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.