Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
7.9 kB
3
Indexable
try:
    from PySide.QtGui import *
    from PySide.QtCore import *
except ImportError:
    from PySide2.QtWidgets import *
    from PySide2.QtCore import *
    from PySide2.QtGui import *

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(592, 635)
        MainWindow.setMinimumSize(QSize(592, 635))
        MainWindow.setMaximumSize(QSize(592, 635))
        self.centralWidget = QWidget(MainWindow)
        self.centralWidget.setObjectName("centralWidget")
        self.gridLayoutWidget = QWidget(self.centralWidget)
        self.gridLayoutWidget.setGeometry(QRect(30, 70, 531, 411))
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.listGridLayout = QGridLayout(self.gridLayoutWidget)
        self.listGridLayout.setContentsMargins(0, 0, 0, 0)
        self.listGridLayout.setObjectName("listGridLayout")
        self.inList = QListWidget(self.gridLayoutWidget)
        self.inList.setDragDropMode(QAbstractItemView.DragDrop)
        self.inList.setDefaultDropAction(Qt.MoveAction)
        self.inList.setAlternatingRowColors(True)
        self.inList.setSelectionMode(QAbstractItemView.ExtendedSelection)
        self.inList.setObjectName("inList")
        self.listGridLayout.addWidget(self.inList, 0, 0, 1, 1)
        self.inLabel = QLabel(self.gridLayoutWidget)
        self.inLabel.setAlignment(Qt.AlignCenter)
        self.inLabel.setObjectName("inLabel")
        self.listGridLayout.addWidget(self.inLabel, 1, 0, 1, 1)
        self.outList = QListWidget(self.gridLayoutWidget)
        self.outList.setDragDropMode(QAbstractItemView.DragDrop)
        self.outList.setDefaultDropAction(Qt.MoveAction)
        self.outList.setAlternatingRowColors(True)
        self.outList.setSelectionMode(QAbstractItemView.ExtendedSelection)
        self.outList.setObjectName("outList")
        self.listGridLayout.addWidget(self.outList, 0, 1, 1, 1)
        self.outLabel = QLabel(self.gridLayoutWidget)
        self.outLabel.setAlignment(Qt.AlignCenter)
        self.outLabel.setObjectName("outLabel")
        self.listGridLayout.addWidget(self.outLabel, 1, 1, 1, 1)
        self.shuffleButton = QPushButton(self.centralWidget)
        self.shuffleButton.setGeometry(QRect(200, 590, 191, 23))
        self.shuffleButton.setObjectName("shuffleButton")
        self.InstructionLabel = QLabel(self.centralWidget)
        self.InstructionLabel.setGeometry(QRect(30, 20, 531, 31))
        self.InstructionLabel.setObjectName("InstructionLabel")
        self.expressionNodeBox = QCheckBox(self.centralWidget)
        self.expressionNodeBox.setGeometry(QRect(360, 510, 301, 17))
        self.expressionNodeBox.setChecked(True)
        self.expressionNodeBox.setObjectName("expressionNodeBox")
        self.expressionNodeBox.setToolTip('This creates an expression node that subtracts all\nshuffled out AOVs from the RGB of the original node.\nthis makes sure the result is equal to the original rendered image.')

        self.alphaBox = QCheckBox(self.centralWidget)
        self.alphaBox.setGeometry(QRect(360, 540, 301, 17))
        self.alphaBox.setChecked(True)
        self.alphaBox.setObjectName("alphaBox")
        self.spacingGroupBox = QGroupBox(self.centralWidget)
        self.spacingGroupBox.setGeometry(QRect(70, 500, 261, 71))
        self.spacingGroupBox.setTitle("")
        self.spacingGroupBox.setObjectName("spacingGroupBox")
        self.gridLayoutWidget_2 = QWidget(self.spacingGroupBox)
        self.gridLayoutWidget_2.setGeometry(QRect(10, 10, 241, 51))
        self.gridLayoutWidget_2.setObjectName("gridLayoutWidget_2")
        self.spacingGridLayout = QGridLayout(self.gridLayoutWidget_2)
        self.spacingGridLayout.setContentsMargins(0, 0, 0, 0)
        self.spacingGridLayout.setObjectName("spacingGridLayout")
        self.horizontalLabel = QLabel(self.gridLayoutWidget_2)
        self.horizontalLabel.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
        self.horizontalLabel.setObjectName("horizontalLabel")
        self.spacingGridLayout.addWidget(self.horizontalLabel, 0, 0, 1, 1)
        self.verticalLabel = QLabel(self.gridLayoutWidget_2)
        self.verticalLabel.setAlignment(Qt.AlignRight|Qt.AlignTrailing|Qt.AlignVCenter)
        self.verticalLabel.setObjectName("verticalLabel")
        self.spacingGridLayout.addWidget(self.verticalLabel, 1, 0, 1, 1)
        self.horizontalSpacing = QSpinBox(self.gridLayoutWidget_2)
        self.horizontalSpacing.setKeyboardTracking(False)
        self.horizontalSpacing.setMinimum(1)
        self.horizontalSpacing.setMaximum(100000)
        self.horizontalSpacing.setProperty("value", 1000)
        self.horizontalSpacing.setObjectName("horizontalSpacing")
        self.spacingGridLayout.addWidget(self.horizontalSpacing, 0, 1, 1, 1)
        self.verticalSpacing = QSpinBox(self.gridLayoutWidget_2)
        self.verticalSpacing.setKeyboardTracking(False)
        self.verticalSpacing.setMinimum(1)
        self.verticalSpacing.setMaximum(100000)
        self.verticalSpacing.setProperty("value", 1000)
        self.verticalSpacing.setObjectName("verticalSpacing")
        self.spacingGridLayout.addWidget(self.verticalSpacing, 1, 1, 1, 1)
        MainWindow.setCentralWidget(self.centralWidget)

        self.retranslateUi(MainWindow)
        QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        try:
            MainWindow.setWindowTitle(QApplication.translate("MainWindow", "Shuffle Control", None))
            self.inLabel.setText(QApplication.translate("MainWindow", "Ignore These AOV\'s", None))
            self.outLabel.setText(QApplication.translate("MainWindow", "Shuffle Out These AOV\'s", None))
            self.shuffleButton.setText(QApplication.translate("MainWindow", "Shuffle AOV Channels", None))
            self.InstructionLabel.setText(QApplication.translate("MainWindow", "Drag the channels to be shuffled out to the right, any channels on the left will be ignored.\nThe channels are shuffled out in order from top to bottom. ", None))
            self.expressionNodeBox.setText(QApplication.translate("MainWindow", "Create Difference AOV", None))
            self.alphaBox.setText(QApplication.translate("MainWindow", "Copy original alpha", None))
            self.horizontalLabel.setText(QApplication.translate("MainWindow", "Horizontal Spacing", None))
            self.verticalLabel.setText(QApplication.translate("MainWindow", "Vertical Spacing", None))
        except:
            MainWindow.setWindowTitle(QApplication.translate("MainWindow", "Shuffle Control", None, QApplication.UnicodeUTF8))
            self.inLabel.setText(QApplication.translate("MainWindow", "Ignore These AOV\'s", None, QApplication.UnicodeUTF8))
            self.outLabel.setText(QApplication.translate("MainWindow", "Shuffle Out These AOV\'s", None, QApplication.UnicodeUTF8))
            self.shuffleButton.setText(QApplication.translate("MainWindow", "Shuffle AOV Channels", None, QApplication.UnicodeUTF8))
            self.InstructionLabel.setText(QApplication.translate("MainWindow", "Drag the channels to be shuffled out to the right, any channels on the left will be ignored.\nThe channels are shuffled out in order from top to bottom. ", None, QApplication.UnicodeUTF8))
            self.expressionNodeBox.setText(QApplication.translate("MainWindow", "Create Difference AOV", None, QApplication.UnicodeUTF8))
            self.alphaBox.setText(QApplication.translate("MainWindow", "Copy original alpha", None, QApplication.UnicodeUTF8))
            self.horizontalLabel.setText(QApplication.translate("MainWindow", "Horizontal Spacing", None, QApplication.UnicodeUTF8))
            self.verticalLabel.setText(QApplication.translate("MainWindow", "Vertical Spacing", None, QApplication.UnicodeUTF8))