[Add-on] Matalogue


(Greg Zaal) #1

Greetings folks!

I’ve been working on this on and off for a little while, and find it to be super helpful to manage large scenes…

https://raw.githubusercontent.com/gregzaal/Matalogue/master/demo.gif

All it is is a list of materials (and lights and compositing trees) in the toolbar of the Node Editor.

Yep, that’s it :slight_smile:

Clicking on an item will switch the Node Editor to that material/lamp/compositing tree.


How can I see a list of all materials used in a scene and edit their nodes?
(Toudou) #2

I like your addon.
It is easy to access!


(theApe) #3

There have been some serious quality addons for Blender lately, and this one fits right into that bunch! Thanks Greg!:smiley:


(Pitiwazou) #4

Yes really usefull Addon !! Thx a lot :wink:


(MatsuikoHiroka) #5

thank you for this add on
very useful


(Greg Zaal) #6

Thanks guys! I’m glad you like it :slight_smile: Let me know if you have any suggestions/ideas/bugs/etc…


(Pitiwazou) #7

The best will have the panel on top of other and always visible like with the pin button.


(sick) #8

Thanks, Greg! This looks awesome.


(pecador) #9

It would be nice to have a + button to create a new material based on the any of the previously created materials.


(MatsuikoHiroka) #10

hi my suggestion

Clean Up Panel
1 . purge / remove all unused or unsigned materials
2 . select all objects that has same material then all materials that has assigned into one material will be isolate or separated ( make single user )

misc : separate the options function which is in material panel into another panel for clean ui

thank you again for this plugin


(Safetyman) #11

This is a great addon. Thank you so much.


(Pitiwazou) #12

Why not a popup menu in the 3D view to create and assign shaders ?

Like this.



(Greg Zaal) #13

That seems more in the scope of this add-on: http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/3D_interaction/Materials_Utils

But yeah, that would be nice.


(Pitiwazou) #14

I didn’t know this one, but you can use his code and complete matalogue to have only one addon for shaders.

I started the code yesterday, it’s really simple right now.

import bpy

class CreateMat(bpy.types.Operator):
bl_idname = “my_operator.create_mat”
bl_label = “Create Mat”
bl_description = “”
bl_options = {“REGISTER”}

@classmethod
def poll(cls, context):
    return True

def execute(self, context):
    

    bpy.ops.object.material_slot_add()
    bpy.ops.material.new()
    mat_index = len(bpy.data.materials)-1
    ob = bpy.context.active_object
    ob.material_slots[ob.active_material_index].material = bpy.data.materials[mat_index]
    
    return {"FINISHED"}

class GestionMaterialMenu(bpy.types.Menu):
bl_label = “Gestion Material Menu”
bl_idname = “OBJECT_MT_Gestion_Material_menu”

def draw(self, context):
    layout = self.layout
    layout.operator("my_operator.create_mat", text="New Material", icon='MATERIAL')
    layout.operator("object.material_slot_remove", text="Delete Material", icon='CANCEL')
    layout.operator("object.material_slot_move", text="Move UP", icon='TRIA_UP').direction='UP'
    layout.operator("object.material_slot_move", text="Move Down", icon='TRIA_DOWN').direction='DOWN'

def register():
bpy.utils.register_module(name)

def unregister():
bpy.utils.unregister_module(name)

if name == “main”:
register()

# The menu can also be called from scripts
bpy.ops.wm.call_menu(name=GestionMaterialMenu.bl_idname)

(liero) #15

so nice to have this, thanks! really improves usability of materials and node setups


(JuhaW) #16

Thank you Greg. I fixed it to work with Vray for Blender version + added to show object nodes.
http://forums.chaosgroup.com/showthread.php?84068-Matalogue-addon-Vray-for-Blender-version


(Greg Zaal) #17

Looks like I need an account to follow that link - could you post the code here instead? (use pasteall.org otherwise the indentation gets stripped)


(JuhaW) #18

Hello Greg.
Vray3 for Blender script: http://www.pasteall.org/60484

It seems that highlight-emboss thing does not work in Vray version.

Attachments



(Greg Zaal) #19

Great thanks! I’ll check it out when I get a chance.


(EtagiBi) #20

This add-on saves me a lot of time when dealing with scene materials. Thank you!