Author Topic: Assigning Key Board Shortcut to Python Tools?  (Read 262 times)

Is there a way to link a python tool to a keyboard shortcut?
our users are asking that we setup up our proprietary publish tool, so they can launch it via a shortcut.

thanks in advanced :D
Senior Technical Artist
Bethesda Game Studios

There you go.

Code: [Select]
self.your_action = QtWidgets.QAction("YourPlugin")
self.your_action.setShortcut('Alt+Ctrl+Shift+X')
substance_painter.ui.add_action(substance_painter.ui.ApplicationMenu.File, self.your_action)

that's awesome i'll give this a go...
Senior Technical Artist
Bethesda Game Studios