Can a pop-up menu be made for this list ? I know how to make popup menus but I cant seem to find a operator that can be directly applied in the pop-up.enter image description here


1 Answer 1


you can add anything to your pop-up

you should check this thread

here a little example:

import bpy

def draw(self, context):

    ob = context.object

    layout = self.layout
    row = layout.row(align=True)

    row.operator("object.material_slot_add", icon='ZOOMIN', text="Add slot")   

    row.template_list("MATERIAL_UL_matslots", "", ob, "material_slots", ob, "active_material_index", rows=rows)

bpy.context.window_manager.popup_menu(draw, title="Material", icon='INFO')

pop up example


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .