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

Hi,

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?

Thanks.

Hiya, this is how I did mine:

Quote

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


Hope that helps.