Hi! Thank you for the reply! Yes, I’m familiar with editing the source from the startup\bl_ui files and appending a menu function. Could you please expand upon your last comment on how to modify the source? This is for an add-on, so I’d like for it to install a button in the user interface. It seems like one can only prepend or append to a toolbar, but not insert an operator at a specific location. Could I somehow access the panel’s layout and add a function in it? Panel.layout seems to be readonly. Thank you!
One problem is that you can’t modify these panels since they are implemented in the C source code.
If you go to the space_graph.py file you can see only that there are only menu items or the header toolbar that are extensible.
One flexible way is to append, at the last place of the top toolbar. But not in the place you want.
Another way is to modify your source code, which is a bit monolithic approach but at least you are very explicit. Adding this if statement first, will protect from breaking, just in case your addon isn’t loaded at startup or is inactive.