How do I add two items in the RMB context menu when right clicking in the outliner? I want them at the position of this red line:
There should be a separator after "Deselect" and before "Unlink" and in between I want to have the Batch rename (bpy.ops.wm.batch_rename()) operator and a flyout called "Rename utilities".
So the menu would look like this:
- Copy
- Paste
- Delete
- Delete Hierarchy
- Select
- Select Hierarchy
- Deselect
- Batch Rename
- Rename Utilities >
- Unlink
- etc.
Rename Utilities would several operators that I am currently working on. How do I add those to the menu position (1) or position (2) or position (-1)? And how do I add break lines in between?
prepend
instead ofappend
$\endgroup$