This article demonstrates how you can create your own custom type of tab and access it from Katana's main Tabs menu.
from Katana import UI4
from PyQt5 import QtWidgets
def __init__(self, parent):
label = QtWidgets.QLabel('This is MyCustomTab')
label.setStyleSheet('font-weight: bold; '
'font-size: 18pt; '
hLayout = QtWidgets.QHBoxLayout()
vLayout = QtWidgets.QVBoxLayout()
PluginRegistry = [
('KatanaPanel', 2.0, 'MyCustomTab', MyCustomTab),
('KatanaPanel', 2.0, 'Custom/MyCustomTab', MyCustomTab),
In order to see the tab type in the UI, save the Python code into a .py file and place this inside of a Tabs subfolder of a directory whose path is added to the $KATANA_RESOURCES environment variable.
Every custom Tab folder is grouped together into a unique section. These sections can be assigned titles, which can be customized by placing a file named separatorTitle.txt in a Tabs folder within a KATANA_RESOURCES directory. For example, if you wanted "API Example Tabs" as a separator title you would simply put "API Example Tabs" in the separatorTitle.txt and the result would be as follows:
We're sorry to hear thatPlease tell us why