From BlenderWiki

Jump to: navigation, search
Material Utils
Menu of material tools (assign, select by etc.)
UI location Group: 3D View
Usage Q Key in the 3D view to start the menu
Version 1.5 Author(s) michaelw
Blender 2.66.6 License GPL


Executable information
File name space_view3d_materials_utils.py
Current version download https://svn.blender.org/svnroot/bf-extensions/trunk/py/scripts/addons/space_view3d_materials_utils.py


Links and troubleshooting
Bug reports https://projects.blender.org/tracker/index.php?func=detail&aid=22140


Installation

Note: This script comes with current Blender releases, so you shouldn't need to download and install it!

  • Download the script then copy it into your \\.blender\scripts\addons folder.
  • Or build the latest blender revision.
  • Open Blender and go to the addons tab in User Preferences.
  • Click the Install Addon button at the bottom and find the *.py file.
  • Enable the script


Instructions

Interface/Menu Overview

Scripts 3D interaction Materials Menu.jpg

This Script provides a quick simple Materials tools menu for use in the 3d View.

The menu is keymapped to the "Q" key.



Additional Information

This script has several functions and operators... grouped for convenience

  • Assign Material
    Offers the user a list of all the materials in the blend file and an additional "new" entry.
    • Object mode
      The chosen material will be assigned to all the selected objects.
    • Edit mode
      The selected polygons get the selected material applied.

    If the user chose "new" the new material can be renamed using the "last operator" section of the toolbox (aka Redo-Panel, at the bottom of the left sidebar in View 3D).

    Note: All previous material slots of the object will be removed and only one added for the material you assign!
  • Select by Material
    • Object mode
      This offers the user a menu of all materials in the blend file. Any objects using the chosen material will become selected, any objects without the material will be removed from selection.
    • Edit mode
      The menu offers only the materials attached to the current object. It will select the polygons that use the material and deselect those that do not.
  • Clean Material Slots
    For all selected objects, every empty material slot or material slots with materials that are not used by the mesh polygons, will be removed.
  • Remove Material Slots
    Removes all material slots of the active object.
  • Material to Texface
    Transfers material assignments to the UV editor. This is useful if you assigned materials in the properties editor, as it will use the already set up materials to assign the UV images per-face. It will use the first enabled image texture it finds.
  • Texface to Materials
    Creates texture materials from images assigned in UV editor.
  • Replace Materials
    Lets your replace one material by another. Optionally for all objects in the blend, otherwise for selected editable objects only. An additional option allows you to update object selection, to indicate which objects were affected and which not.


Known Issues

  • Buggy, Broken in Cycles mode.


Support