Post #389: ![](https://blenderartists.org/user_avatar/blenderartists.org/draguu/48/15444_2.

📋 Metadata

  • Author: roaoao
  • Date: 2016-10-11 10:20:02
  • Type: answer
  • Quality Score: 7/10
  • Reply to: post_00384

🏷️ Tags

popup-dialog custom-code intermediate solved

  • Custom tab/Python scripting
  • Popup Dialog Editor
  • template_list functionality

💬 Content

draguu:

how do i get material list , not that whole context window … just a material list

Try this code in Custom tab:

L.template_list("MATERIAL_UL_matslots", "", C.object, "material_slots", C.object, "active_material_index", rows=5)

🔗 View on Blender Artists