Author Topic: Add button to plugins toolbar - Python API  (Read 1632 times)


Im doing a python custom export plugin and i want to add the function to a button in the existing plugin toolbar.
Is there an expose method to add a QPushButton or similar?


Hiya, this is how I did mine:


from PySide2 import QtGui
main_window = substance_painter.ui.get_main_window()
for child in main_window.children():
   if child.objectName() == 'plugin_toolbar':

Hope that helps.