2
$\begingroup$

enter image description here

I want to add an entry in the object context menu of the outliner. I tried with bpy.types.OUTLINER_MT_context_menu with no results.

Any idea how i can do that ?

Thanks

$\endgroup$

1 Answer 1

4
$\begingroup$

Ok i found the answer and it was dead simple :

bpy.types.OUTLINER_MT_object.append(menu_func)
$\endgroup$
1
  • 2
    $\begingroup$ You should note that the menu is different if you click on a collection, in a blank space, on a button or on an object in the outliner $\endgroup$
    – Gorgious
    Jan 12, 2023 at 7:51

You must log in to answer this question.

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