class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(778, 641) self.gridLayout = QtWidgets.QGridLayout(Dialog) self.gridLayout.setObjectName("gridLayout") self.leftViewerLayout = QtWidgets.QGridLayout() self.leftViewerLayout.setObjectName("leftViewerLayout") self.gridLayout.addLayout(self.leftViewerLayout, 0, 0, 1, 1) self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.label_8 = QtWidgets.QLabel(Dialog) self.label_8.setObjectName("label_8") self.horizontalLayout_10.addWidget(self.label_8) self.leftDisplayFrameSlider = QtWidgets.QSlider(Dialog) self.leftDisplayFrameSlider.setOrientation(QtCore.Qt.Horizontal) self.leftDisplayFrameSlider.setObjectName("leftDisplayFrameSlider") self.horizontalLayout_10.addWidget(self.leftDisplayFrameSlider) self.leftDisplayFrameSpinBox = QtWidgets.QSpinBox(Dialog) self.leftDisplayFrameSpinBox.setObjectName("leftDisplayFrameSpinBox") self.horizontalLayout_10.addWidget(self.leftDisplayFrameSpinBox) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_10.addItem(spacerItem) self.verticalLayout.addLayout(self.horizontalLayout_10) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_2 = QtWidgets.QLabel(Dialog) self.label_2.setObjectName("label_2") self.horizontalLayout_3.addWidget(self.label_2) self.leftStartFrameSlider = QtWidgets.QSlider(Dialog) self.leftStartFrameSlider.setOrientation(QtCore.Qt.Horizontal) self.leftStartFrameSlider.setObjectName("leftStartFrameSlider") self.horizontalLayout_3.addWidget(self.leftStartFrameSlider) self.leftStartFrameSpinBox = QtWidgets.QSpinBox(Dialog) self.leftStartFrameSpinBox.setObjectName("leftStartFrameSpinBox") self.horizontalLayout_3.addWidget(self.leftStartFrameSpinBox) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout_3) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_3 = QtWidgets.QLabel(Dialog) self.label_3.setObjectName("label_3") self.horizontalLayout_4.addWidget(self.label_3) self.leftEndFrameSlider = QtWidgets.QSlider(Dialog) self.leftEndFrameSlider.setOrientation(QtCore.Qt.Horizontal) self.leftEndFrameSlider.setObjectName("leftEndFrameSlider") self.horizontalLayout_4.addWidget(self.leftEndFrameSlider) self.leftEndFrameSpinBox = QtWidgets.QSpinBox(Dialog) self.leftEndFrameSpinBox.setObjectName("leftEndFrameSpinBox") self.horizontalLayout_4.addWidget(self.leftEndFrameSpinBox) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem2) self.verticalLayout.addLayout(self.horizontalLayout_4) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.jointLabel = QtWidgets.QLabel(Dialog) self.jointLabel.setObjectName("jointLabel") self.horizontalLayout.addWidget(self.jointLabel) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem3) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.label = QtWidgets.QLabel(Dialog) self.label.setObjectName("label") self.horizontalLayout_7.addWidget(self.label) self.fixJointButton = QtWidgets.QPushButton(Dialog) self.fixJointButton.setObjectName("fixJointButton") self.horizontalLayout_7.addWidget(self.fixJointButton) self.translateJointButton = QtWidgets.QPushButton(Dialog) self.translateJointButton.setObjectName("translateJointButton") self.horizontalLayout_7.addWidget(self.translateJointButton) self.translateXLineEdit = QtWidgets.QLineEdit(Dialog) self.translateXLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.translateXLineEdit.setObjectName("translateXLineEdit") self.horizontalLayout_7.addWidget(self.translateXLineEdit) self.translateYLineEdit = QtWidgets.QLineEdit(Dialog) self.translateYLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.translateYLineEdit.setObjectName("translateYLineEdit") self.horizontalLayout_7.addWidget(self.translateYLineEdit) self.translateZLineEdit = QtWidgets.QLineEdit(Dialog) self.translateZLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.translateZLineEdit.setObjectName("translateZLineEdit") self.horizontalLayout_7.addWidget(self.translateZLineEdit) self.applyConstraintsButton = QtWidgets.QPushButton(Dialog) self.applyConstraintsButton.setObjectName("applyConstraintsButton") self.horizontalLayout_7.addWidget(self.applyConstraintsButton) self.clearConstraintsButton = QtWidgets.QPushButton(Dialog) self.clearConstraintsButton.setObjectName("clearConstraintsButton") self.horizontalLayout_7.addWidget(self.clearConstraintsButton) self.ccdCheckBox = QtWidgets.QCheckBox(Dialog) self.ccdCheckBox.setChecked(True) self.ccdCheckBox.setObjectName("ccdCheckBox") self.horizontalLayout_7.addWidget(self.ccdCheckBox) self.collectConstraintsCheckBox = QtWidgets.QCheckBox(Dialog) self.collectConstraintsCheckBox.setChecked(False) self.collectConstraintsCheckBox.setObjectName("collectConstraintsCheckBox") self.horizontalLayout_7.addWidget(self.collectConstraintsCheckBox) spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem4) self.verticalLayout.addLayout(self.horizontalLayout_7) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.label_4 = QtWidgets.QLabel(Dialog) self.label_4.setObjectName("label_4") self.horizontalLayout_5.addWidget(self.label_4) self.rotateJointButton = QtWidgets.QPushButton(Dialog) self.rotateJointButton.setObjectName("rotateJointButton") self.horizontalLayout_5.addWidget(self.rotateJointButton) self.rotateXLineEdit = QtWidgets.QLineEdit(Dialog) self.rotateXLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.rotateXLineEdit.setObjectName("rotateXLineEdit") self.horizontalLayout_5.addWidget(self.rotateXLineEdit) self.rotateYLineEdit = QtWidgets.QLineEdit(Dialog) self.rotateYLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.rotateYLineEdit.setObjectName("rotateYLineEdit") self.horizontalLayout_5.addWidget(self.rotateYLineEdit) self.rotateZLineEdit = QtWidgets.QLineEdit(Dialog) self.rotateZLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.rotateZLineEdit.setObjectName("rotateZLineEdit") self.horizontalLayout_5.addWidget(self.rotateZLineEdit) self.label_5 = QtWidgets.QLabel(Dialog) self.label_5.setObjectName("label_5") self.horizontalLayout_5.addWidget(self.label_5) self.blendRangeLineEdit = QtWidgets.QLineEdit(Dialog) self.blendRangeLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.blendRangeLineEdit.setObjectName("blendRangeLineEdit") self.horizontalLayout_5.addWidget(self.blendRangeLineEdit) spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem5) self.verticalLayout.addLayout(self.horizontalLayout_5) self.verticalLayout_4 = QtWidgets.QVBoxLayout() self.verticalLayout_4.setObjectName("verticalLayout_4") self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.deleteAfterButton = QtWidgets.QPushButton(Dialog) self.deleteAfterButton.setObjectName("deleteAfterButton") self.horizontalLayout_6.addWidget(self.deleteAfterButton) self.deleteBeforeButton = QtWidgets.QPushButton(Dialog) self.deleteBeforeButton.setObjectName("deleteBeforeButton") self.horizontalLayout_6.addWidget(self.deleteBeforeButton) self.mirrorAnimationButton = QtWidgets.QPushButton(Dialog) self.mirrorAnimationButton.setObjectName("mirrorAnimationButton") self.horizontalLayout_6.addWidget(self.mirrorAnimationButton) self.concatenateButton = QtWidgets.QPushButton(Dialog) self.concatenateButton.setObjectName("concatenateButton") self.horizontalLayout_6.addWidget(self.concatenateButton) self.smoothFramesButton = QtWidgets.QPushButton(Dialog) self.smoothFramesButton.setObjectName("smoothFramesButton") self.horizontalLayout_6.addWidget(self.smoothFramesButton) self.smoothWindowSizeLineEdit = QtWidgets.QLineEdit(Dialog) self.smoothWindowSizeLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.smoothWindowSizeLineEdit.setObjectName("smoothWindowSizeLineEdit") self.horizontalLayout_6.addWidget(self.smoothWindowSizeLineEdit) self.resampleButton = QtWidgets.QPushButton(Dialog) self.resampleButton.setObjectName("resampleButton") self.horizontalLayout_6.addWidget(self.resampleButton) self.resampleFactorLineEdit = QtWidgets.QLineEdit(Dialog) self.resampleFactorLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.resampleFactorLineEdit.setObjectName("resampleFactorLineEdit") self.horizontalLayout_6.addWidget(self.resampleFactorLineEdit) self.setFPSButton = QtWidgets.QPushButton(Dialog) self.setFPSButton.setObjectName("setFPSButton") self.horizontalLayout_6.addWidget(self.setFPSButton) self.fpsLineEdit = QtWidgets.QLineEdit(Dialog) self.fpsLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.fpsLineEdit.setObjectName("fpsLineEdit") self.horizontalLayout_6.addWidget(self.fpsLineEdit) spacerItem6 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem6) self.verticalLayout_4.addLayout(self.horizontalLayout_6) self.verticalLayout.addLayout(self.verticalLayout_4) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.guessGroundHeightButton = QtWidgets.QPushButton(Dialog) self.guessGroundHeightButton.setObjectName("guessGroundHeightButton") self.horizontalLayout_8.addWidget(self.guessGroundHeightButton) self.moveToGroundButton = QtWidgets.QPushButton(Dialog) self.moveToGroundButton.setObjectName("moveToGroundButton") self.horizontalLayout_8.addWidget(self.moveToGroundButton) self.label_7 = QtWidgets.QLabel(Dialog) self.label_7.setObjectName("label_7") self.horizontalLayout_8.addWidget(self.label_7) self.sourceGroundHeightLineEdit = QtWidgets.QLineEdit(Dialog) self.sourceGroundHeightLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.sourceGroundHeightLineEdit.setObjectName("sourceGroundHeightLineEdit") self.horizontalLayout_8.addWidget(self.sourceGroundHeightLineEdit) self.label_6 = QtWidgets.QLabel(Dialog) self.label_6.setObjectName("label_6") self.horizontalLayout_8.addWidget(self.label_6) self.targetGroundHeightLineEdit = QtWidgets.QLineEdit(Dialog) self.targetGroundHeightLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.targetGroundHeightLineEdit.setObjectName("targetGroundHeightLineEdit") self.horizontalLayout_8.addWidget(self.targetGroundHeightLineEdit) self.detectFootContactsButton = QtWidgets.QPushButton(Dialog) self.detectFootContactsButton.setObjectName("detectFootContactsButton") self.horizontalLayout_8.addWidget(self.detectFootContactsButton) spacerItem7 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_8.addItem(spacerItem7) self.verticalLayout.addLayout(self.horizontalLayout_8) self.horizontalLayout_9 = QtWidgets.QHBoxLayout() self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.label_9 = QtWidgets.QLabel(Dialog) self.label_9.setObjectName("label_9") self.horizontalLayout_9.addWidget(self.label_9) self.labelComboBox = QtWidgets.QComboBox(Dialog) self.labelComboBox.setObjectName("labelComboBox") self.horizontalLayout_9.addWidget(self.labelComboBox) self.setAnnotationStartButton = QtWidgets.QPushButton(Dialog) self.setAnnotationStartButton.setObjectName("setAnnotationStartButton") self.horizontalLayout_9.addWidget(self.setAnnotationStartButton) self.createAnnotationButton = QtWidgets.QPushButton(Dialog) self.createAnnotationButton.setObjectName("createAnnotationButton") self.horizontalLayout_9.addWidget(self.createAnnotationButton) self.removeAnnotationButton = QtWidgets.QPushButton(Dialog) self.removeAnnotationButton.setObjectName("removeAnnotationButton") self.horizontalLayout_9.addWidget(self.removeAnnotationButton) self.groundFeetButton = QtWidgets.QPushButton(Dialog) self.groundFeetButton.setObjectName("groundFeetButton") self.horizontalLayout_9.addWidget(self.groundFeetButton) spacerItem8 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_9.addItem(spacerItem8) self.verticalLayout.addLayout(self.horizontalLayout_9) self.contactLabelView = TimeLineLabelView(Dialog) self.contactLabelView.setMaximumSize(QtCore.QSize(16777215, 100)) self.contactLabelView.setObjectName("contactLabelView") self.verticalLayout.addWidget(self.contactLabelView) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem9 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem9) self.flipBlenderCoordinateSystemButton = QtWidgets.QPushButton(Dialog) self.flipBlenderCoordinateSystemButton.setObjectName("flipBlenderCoordinateSystemButton") self.horizontalLayout_2.addWidget(self.flipBlenderCoordinateSystemButton) self.exportCommandsButton = QtWidgets.QPushButton(Dialog) self.exportCommandsButton.setObjectName("exportCommandsButton") self.horizontalLayout_2.addWidget(self.exportCommandsButton) self.undoButton = QtWidgets.QPushButton(Dialog) self.undoButton.setObjectName("undoButton") self.horizontalLayout_2.addWidget(self.undoButton) self.selectButton = QtWidgets.QPushButton(Dialog) self.selectButton.setObjectName("selectButton") self.horizontalLayout_2.addWidget(self.selectButton) self.cancelButton = QtWidgets.QPushButton(Dialog) self.cancelButton.setObjectName("cancelButton") self.horizontalLayout_2.addWidget(self.cancelButton) self.verticalLayout.addLayout(self.horizontalLayout_2) self.gridLayout.addLayout(self.verticalLayout, 1, 0, 1, 1) self.retranslateUi(Dialog) QtCore.QMetaObject.connectSlotsByName(Dialog) def retranslateUi(self, Dialog): Dialog.setWindowTitle(QtWidgets.QApplication.translate("Dialog", "Animation Editor", None, -1)) self.label_8.setText(QtWidgets.QApplication.translate("Dialog", "Displayed Frame", None, -1)) self.label_2.setText(QtWidgets.QApplication.translate("Dialog", "Edit Start", None, -1)) self.label_3.setText(QtWidgets.QApplication.translate("Dialog", "Edit End", None, -1)) self.jointLabel.setText(QtWidgets.QApplication.translate("Dialog", "Selected Joint: None", None, -1)) self.label.setText(QtWidgets.QApplication.translate("Dialog", "IK", None, -1)) self.fixJointButton.setText(QtWidgets.QApplication.translate("Dialog", "Fix Joint", None, -1)) self.translateJointButton.setText(QtWidgets.QApplication.translate("Dialog", "Translate Joint", None, -1)) self.translateXLineEdit.setText(QtWidgets.QApplication.translate("Dialog", "0", None, -1)) self.translateYLineEdit.setText(QtWidgets.QApplication.translate("Dialog", "0", None, -1)) self.translateZLineEdit.setText(QtWidgets.QApplication.translate("Dialog", "0", None, -1)) self.applyConstraintsButton.setText(QtWidgets.QApplication.translate("Dialog", "Apply", None, -1)) self.clearConstraintsButton.setText(QtWidgets.QApplication.translate("Dialog", "Clear", None, -1)) self.ccdCheckBox.setText(QtWidgets.QApplication.translate("Dialog", "ccd", None, -1)) self.collectConstraintsCheckBox.setText(QtWidgets.QApplication.translate("Dialog", "collect", None, -1)) self.label_4.setText(QtWidgets.QApplication.translate("Dialog", "FK", None, -1)) self.rotateJointButton.setText(QtWidgets.QApplication.translate("Dialog", "Rotate Joint", None, -1)) self.rotateXLineEdit.setText(QtWidgets.QApplication.translate("Dialog", "0", None, -1)) self.rotateYLineEdit.setText(QtWidgets.QApplication.translate("Dialog", "0", None, -1)) self.rotateZLineEdit.setText(QtWidgets.QApplication.translate("Dialog", "0", None, -1)) self.label_5.setText(QtWidgets.QApplication.translate("Dialog", "Blend Range", None, -1)) self.blendRangeLineEdit.setText(QtWidgets.QApplication.translate("Dialog", "20", None, -1)) self.deleteAfterButton.setText(QtWidgets.QApplication.translate("Dialog", "Delete After Slider", None, -1)) self.deleteBeforeButton.setText(QtWidgets.QApplication.translate("Dialog", "Delete Before Slider", None, -1)) self.mirrorAnimationButton.setText(QtWidgets.QApplication.translate("Dialog", "Mirror", None, -1)) self.concatenateButton.setText(QtWidgets.QApplication.translate("Dialog", "Concatenate", None, -1)) self.smoothFramesButton.setText(QtWidgets.QApplication.translate("Dialog", "Smooth", None, -1)) self.smoothWindowSizeLineEdit.setText(QtWidgets.QApplication.translate("Dialog", "15", None, -1)) self.resampleButton.setText(QtWidgets.QApplication.translate("Dialog", "Resample", None, -1)) self.resampleFactorLineEdit.setText(QtWidgets.QApplication.translate("Dialog", "1", None, -1)) self.setFPSButton.setText(QtWidgets.QApplication.translate("Dialog", "SetFPS", None, -1)) self.fpsLineEdit.setText(QtWidgets.QApplication.translate("Dialog", "0", None, -1)) self.guessGroundHeightButton.setText(QtWidgets.QApplication.translate("Dialog", "GuessGround", None, -1)) self.moveToGroundButton.setText(QtWidgets.QApplication.translate("Dialog", "Move To Ground", None, -1)) self.label_7.setText(QtWidgets.QApplication.translate("Dialog", "Source:", None, -1)) self.sourceGroundHeightLineEdit.setText(QtWidgets.QApplication.translate("Dialog", "0", None, -1)) self.label_6.setText(QtWidgets.QApplication.translate("Dialog", "Target:", None, -1)) self.targetGroundHeightLineEdit.setText(QtWidgets.QApplication.translate("Dialog", "0", None, -1)) self.detectFootContactsButton.setText(QtWidgets.QApplication.translate("Dialog", "Detect Foot Contacts", None, -1)) self.label_9.setText(QtWidgets.QApplication.translate("Dialog", "Foot Contacts", None, -1)) self.setAnnotationStartButton.setText(QtWidgets.QApplication.translate("Dialog", "Set Start Frame", None, -1)) self.createAnnotationButton.setText(QtWidgets.QApplication.translate("Dialog", "Create Annotation", None, -1)) self.removeAnnotationButton.setText(QtWidgets.QApplication.translate("Dialog", "Remove Annotation", None, -1)) self.groundFeetButton.setText(QtWidgets.QApplication.translate("Dialog", "Apply Foot Grounding", None, -1)) self.flipBlenderCoordinateSystemButton.setText(QtWidgets.QApplication.translate("Dialog", "Flip Blender Coordinate Systems", None, -1)) self.exportCommandsButton.setText(QtWidgets.QApplication.translate("Dialog", "Export Commands", None, -1)) self.undoButton.setText(QtWidgets.QApplication.translate("Dialog", "Undo", None, -1)) self.selectButton.setText(QtWidgets.QApplication.translate("Dialog", "Accept", None, -1)) self.cancelButton.setText(QtWidgets.QApplication.translate("Dialog", "Cancel", None, -1))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(1072, 573) self.verticalLayout = QtWidgets.QVBoxLayout(Form) self.verticalLayout.setObjectName("verticalLayout") self.groupBox_2 = QtWidgets.QGroupBox(Form) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.generateRandomSamplesButton = QtWidgets.QToolButton(self.groupBox_2) self.generateRandomSamplesButton.setObjectName("generateRandomSamplesButton") self.horizontalLayout_5.addWidget(self.generateRandomSamplesButton) self.generateTreeSamplesButton = QtWidgets.QToolButton(self.groupBox_2) self.generateTreeSamplesButton.setObjectName("generateTreeSamplesButton") self.horizontalLayout_5.addWidget(self.generateTreeSamplesButton) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem) self.label_8 = QtWidgets.QLabel(self.groupBox_2) self.label_8.setObjectName("label_8") self.horizontalLayout_5.addWidget(self.label_8) self.sampleOffsetLineEdit = QtWidgets.QLineEdit(self.groupBox_2) self.sampleOffsetLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.sampleOffsetLineEdit.setObjectName("sampleOffsetLineEdit") self.horizontalLayout_5.addWidget(self.sampleOffsetLineEdit) self.label_5 = QtWidgets.QLabel(self.groupBox_2) self.label_5.setObjectName("label_5") self.horizontalLayout_5.addWidget(self.label_5) self.numSamplesLineEdit = QtWidgets.QLineEdit(self.groupBox_2) self.numSamplesLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.numSamplesLineEdit.setObjectName("numSamplesLineEdit") self.horizontalLayout_5.addWidget(self.numSamplesLineEdit) self.verticalLayout_2.addLayout(self.horizontalLayout_5) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.generateRandomConstraintsButton = QtWidgets.QToolButton(self.groupBox_2) self.generateRandomConstraintsButton.setObjectName("generateRandomConstraintsButton") self.horizontalLayout_8.addWidget(self.generateRandomConstraintsButton) self.loadConstraintsButton = QtWidgets.QToolButton(self.groupBox_2) self.loadConstraintsButton.setObjectName("loadConstraintsButton") self.horizontalLayout_8.addWidget(self.loadConstraintsButton) self.reachConstraintsButton = QtWidgets.QToolButton(self.groupBox_2) self.reachConstraintsButton.setObjectName("reachConstraintsButton") self.horizontalLayout_8.addWidget(self.reachConstraintsButton) self.setConfigButton = QtWidgets.QToolButton(self.groupBox_2) self.setConfigButton.setObjectName("setConfigButton") self.horizontalLayout_8.addWidget(self.setConfigButton) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label = QtWidgets.QLabel(self.groupBox_2) self.label.setObjectName("label") self.horizontalLayout_2.addWidget(self.label) self.frameNumberSpinBox = QtWidgets.QSpinBox(self.groupBox_2) self.frameNumberSpinBox.setObjectName("frameNumberSpinBox") self.horizontalLayout_2.addWidget(self.frameNumberSpinBox) self.horizontalLayout_8.addLayout(self.horizontalLayout_2) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label_4 = QtWidgets.QLabel(self.groupBox_2) self.label_4.setObjectName("label_4") self.horizontalLayout.addWidget(self.label_4) self.jointComboBox = QtWidgets.QComboBox(self.groupBox_2) self.jointComboBox.setObjectName("jointComboBox") self.horizontalLayout.addWidget(self.jointComboBox) self.horizontalLayout_8.addLayout(self.horizontalLayout) self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem1) self.label_6 = QtWidgets.QLabel(self.groupBox_2) self.label_6.setObjectName("label_6") self.horizontalLayout_7.addWidget(self.label_6) self.numConstraintsLineEdit = QtWidgets.QLineEdit(self.groupBox_2) self.numConstraintsLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.numConstraintsLineEdit.setObjectName("numConstraintsLineEdit") self.horizontalLayout_7.addWidget(self.numConstraintsLineEdit) self.horizontalLayout_8.addLayout(self.horizontalLayout_7) self.verticalLayout_2.addLayout(self.horizontalLayout_8) self.verticalLayout.addWidget(self.groupBox_2) self.labelView = TimeLineLabelView(Form) self.labelView.setMaximumSize(QtCore.QSize(16777215, 150)) self.labelView.setObjectName("labelView") self.verticalLayout.addWidget(self.labelView) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.animationToggleButton = QtWidgets.QToolButton(Form) self.animationToggleButton.setObjectName("animationToggleButton") self.horizontalLayout_4.addWidget(self.animationToggleButton) self.animationFrameSlider = QtWidgets.QSlider(Form) self.animationFrameSlider.setOrientation(QtCore.Qt.Horizontal) self.animationFrameSlider.setObjectName("animationFrameSlider") self.horizontalLayout_4.addWidget(self.animationFrameSlider) self.animationFrameSpinBox = QtWidgets.QSpinBox(Form) self.animationFrameSpinBox.setObjectName("animationFrameSpinBox") self.horizontalLayout_4.addWidget(self.animationFrameSpinBox) self.loopAnimationCheckBox = QtWidgets.QCheckBox(Form) self.loopAnimationCheckBox.setChecked(False) self.loopAnimationCheckBox.setObjectName("loopAnimationCheckBox") self.horizontalLayout_4.addWidget(self.loopAnimationCheckBox) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setObjectName("label_2") self.horizontalLayout_4.addWidget(self.label_2) self.animationSpeedDoubleSpinBox = QtWidgets.QDoubleSpinBox(Form) self.animationSpeedDoubleSpinBox.setSingleStep(0.1) self.animationSpeedDoubleSpinBox.setProperty("value", 1.0) self.animationSpeedDoubleSpinBox.setObjectName("animationSpeedDoubleSpinBox") self.horizontalLayout_4.addWidget(self.animationSpeedDoubleSpinBox) self.label_3 = QtWidgets.QLabel(Form) self.label_3.setObjectName("label_3") self.horizontalLayout_4.addWidget(self.label_3) self.fpsLineEdit = QtWidgets.QLineEdit(Form) self.fpsLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.fpsLineEdit.setObjectName("fpsLineEdit") self.horizontalLayout_4.addWidget(self.fpsLineEdit) self.label_9 = QtWidgets.QLabel(Form) self.label_9.setObjectName("label_9") self.horizontalLayout_4.addWidget(self.label_9) self.verticalLayout.addLayout(self.horizontalLayout_4) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.label_7 = QtWidgets.QLabel(Form) self.label_7.setObjectName("label_7") self.horizontalLayout_6.addWidget(self.label_7) self.drawModeComboBox = QtWidgets.QComboBox(Form) self.drawModeComboBox.setObjectName("drawModeComboBox") self.horizontalLayout_6.addWidget(self.drawModeComboBox) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem2) self.verticalLayout.addLayout(self.horizontalLayout_6) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.exportButton = QtWidgets.QToolButton(Form) self.exportButton.setObjectName("exportButton") self.horizontalLayout_3.addWidget(self.exportButton) self.createCopyButton = QtWidgets.QToolButton(Form) self.createCopyButton.setObjectName("createCopyButton") self.horizontalLayout_3.addWidget(self.createCopyButton) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem3) self.verticalLayout.addLayout(self.horizontalLayout_3) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle(QtWidgets.QApplication.translate("Form", "Form", None, -1)) self.groupBox_2.setTitle(QtWidgets.QApplication.translate("Form", "Synthesis", None, -1)) self.generateRandomSamplesButton.setText(QtWidgets.QApplication.translate("Form", "Generate Random Samples", None, -1)) self.generateTreeSamplesButton.setText(QtWidgets.QApplication.translate("Form", "Generate Tree Samples", None, -1)) self.label_8.setText(QtWidgets.QApplication.translate("Form", "Offset", None, -1)) self.sampleOffsetLineEdit.setText(QtWidgets.QApplication.translate("Form", "0", None, -1)) self.label_5.setText(QtWidgets.QApplication.translate("Form", "Number", None, -1)) self.numSamplesLineEdit.setText(QtWidgets.QApplication.translate("Form", "10", None, -1)) self.generateRandomConstraintsButton.setText(QtWidgets.QApplication.translate("Form", "Generate Constraints", None, -1)) self.loadConstraintsButton.setText(QtWidgets.QApplication.translate("Form", "LoadConstraints", None, -1)) self.reachConstraintsButton.setText(QtWidgets.QApplication.translate("Form", "Reach Constraints", None, -1)) self.setConfigButton.setText(QtWidgets.QApplication.translate("Form", "Set Config", None, -1)) self.label.setText(QtWidgets.QApplication.translate("Form", "Frame", None, -1)) self.label_4.setText(QtWidgets.QApplication.translate("Form", "Joint", None, -1)) self.label_6.setText(QtWidgets.QApplication.translate("Form", "Number", None, -1)) self.numConstraintsLineEdit.setText(QtWidgets.QApplication.translate("Form", "1", None, -1)) self.animationToggleButton.setText(QtWidgets.QApplication.translate("Form", "Play", None, -1)) self.loopAnimationCheckBox.setText(QtWidgets.QApplication.translate("Form", "Loop", None, -1)) self.label_2.setText(QtWidgets.QApplication.translate("Form", "Speed", None, -1)) self.label_3.setText(QtWidgets.QApplication.translate("Form", "x", None, -1)) self.fpsLineEdit.setText(QtWidgets.QApplication.translate("Form", "0", None, -1)) self.label_9.setText(QtWidgets.QApplication.translate("Form", "FPS", None, -1)) self.label_7.setText(QtWidgets.QApplication.translate("Form", "Draw Mode", None, -1)) self.exportButton.setText(QtWidgets.QApplication.translate("Form", "Export To BVH", None, -1)) self.createCopyButton.setText(QtWidgets.QApplication.translate("Form", "Create Copy", None, -1))
class Ui_Form(object): def setupUi(self, Form): if Form.objectName(): Form.setObjectName(u"Form") Form.resize(842, 369) self.verticalLayout = QVBoxLayout(Form) self.verticalLayout.setObjectName(u"verticalLayout") self.horizontalLayout = QHBoxLayout() self.horizontalLayout.setObjectName(u"horizontalLayout") self.loadAnnotationButton = QToolButton(Form) self.loadAnnotationButton.setObjectName(u"loadAnnotationButton") self.horizontalLayout.addWidget(self.loadAnnotationButton) self.setAnnotationButton = QToolButton(Form) self.setAnnotationButton.setObjectName(u"setAnnotationButton") self.horizontalLayout.addWidget(self.setAnnotationButton) self.clearAnnotationButton = QToolButton(Form) self.clearAnnotationButton.setObjectName(u"clearAnnotationButton") self.horizontalLayout.addWidget(self.clearAnnotationButton) self.splitMotionButton = QToolButton(Form) self.splitMotionButton.setObjectName(u"splitMotionButton") self.horizontalLayout.addWidget(self.splitMotionButton) self.saveAnnotationButton = QToolButton(Form) self.saveAnnotationButton.setObjectName(u"saveAnnotationButton") self.horizontalLayout.addWidget(self.saveAnnotationButton) self.exportAnnotationsToPhaseButton = QToolButton(Form) self.exportAnnotationsToPhaseButton.setObjectName(u"exportAnnotationsToPhaseButton") self.horizontalLayout.addWidget(self.exportAnnotationsToPhaseButton) self.exportAnnotationsToActionsButton = QToolButton(Form) self.exportAnnotationsToActionsButton.setObjectName(u"exportAnnotationsToActionsButton") self.horizontalLayout.addWidget(self.exportAnnotationsToActionsButton) self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout.addItem(self.horizontalSpacer) self.verticalLayout.addLayout(self.horizontalLayout) self.labelView = TimeLineLabelView(Form) self.labelView.setObjectName(u"labelView") self.labelView.setMaximumSize(QSize(16777215, 150)) self.verticalLayout.addWidget(self.labelView) self.playerBar = QHBoxLayout() self.playerBar.setObjectName(u"playerBar") self.animationToggleButton = QToolButton(Form) self.animationToggleButton.setObjectName(u"animationToggleButton") self.playerBar.addWidget(self.animationToggleButton) self.animationFrameSlider = QSlider(Form) self.animationFrameSlider.setObjectName(u"animationFrameSlider") self.animationFrameSlider.setOrientation(Qt.Horizontal) self.playerBar.addWidget(self.animationFrameSlider) self.animationFrameSpinBox = QSpinBox(Form) self.animationFrameSpinBox.setObjectName(u"animationFrameSpinBox") self.playerBar.addWidget(self.animationFrameSpinBox) self.loopAnimationCheckBox = QCheckBox(Form) self.loopAnimationCheckBox.setObjectName(u"loopAnimationCheckBox") self.loopAnimationCheckBox.setChecked(False) self.playerBar.addWidget(self.loopAnimationCheckBox) self.relativeRootCheckBox = QCheckBox(Form) self.relativeRootCheckBox.setObjectName(u"relativeRootCheckBox") self.playerBar.addWidget(self.relativeRootCheckBox) self.label_2 = QLabel(Form) self.label_2.setObjectName(u"label_2") self.playerBar.addWidget(self.label_2) self.animationSpeedDoubleSpinBox = QDoubleSpinBox(Form) self.animationSpeedDoubleSpinBox.setObjectName(u"animationSpeedDoubleSpinBox") self.animationSpeedDoubleSpinBox.setSingleStep(0.100000000000000) self.animationSpeedDoubleSpinBox.setValue(1.000000000000000) self.playerBar.addWidget(self.animationSpeedDoubleSpinBox) self.label_3 = QLabel(Form) self.label_3.setObjectName(u"label_3") self.playerBar.addWidget(self.label_3) self.fpsLineEdit = QLineEdit(Form) self.fpsLineEdit.setObjectName(u"fpsLineEdit") self.fpsLineEdit.setMaximumSize(QSize(40, 16777215)) self.playerBar.addWidget(self.fpsLineEdit) self.label_5 = QLabel(Form) self.label_5.setObjectName(u"label_5") self.playerBar.addWidget(self.label_5) self.verticalLayout.addLayout(self.playerBar) self.horizontalLayout_2 = QHBoxLayout() self.horizontalLayout_2.setObjectName(u"horizontalLayout_2") self.label = QLabel(Form) self.label.setObjectName(u"label") self.horizontalLayout_2.addWidget(self.label) self.drawModeComboBox = QComboBox(Form) self.drawModeComboBox.setObjectName(u"drawModeComboBox") self.horizontalLayout_2.addWidget(self.drawModeComboBox) self.label_4 = QLabel(Form) self.label_4.setObjectName(u"label_4") self.horizontalLayout_2.addWidget(self.label_4) self.skeletonModelComboBox = QComboBox(Form) self.skeletonModelComboBox.setObjectName(u"skeletonModelComboBox") self.horizontalLayout_2.addWidget(self.skeletonModelComboBox) self.editSkeletonModelButton = QToolButton(Form) self.editSkeletonModelButton.setObjectName(u"editSkeletonModelButton") self.horizontalLayout_2.addWidget(self.editSkeletonModelButton) self.addNewSkeletonModelButton = QToolButton(Form) self.addNewSkeletonModelButton.setObjectName(u"addNewSkeletonModelButton") self.horizontalLayout_2.addWidget(self.addNewSkeletonModelButton) self.horizontalSpacer_2 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_2.addItem(self.horizontalSpacer_2) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QHBoxLayout() self.horizontalLayout_3.setObjectName(u"horizontalLayout_3") self.createCopyButton = QToolButton(Form) self.createCopyButton.setObjectName(u"createCopyButton") self.horizontalLayout_3.addWidget(self.createCopyButton) self.retargetFromSourceButton = QToolButton(Form) self.retargetFromSourceButton.setObjectName(u"retargetFromSourceButton") self.horizontalLayout_3.addWidget(self.retargetFromSourceButton) self.copyFromSourceButton = QToolButton(Form) self.copyFromSourceButton.setObjectName(u"copyFromSourceButton") self.horizontalLayout_3.addWidget(self.copyFromSourceButton) self.openEditorButton = QToolButton(Form) self.openEditorButton.setObjectName(u"openEditorButton") self.horizontalLayout_3.addWidget(self.openEditorButton) self.saveToBVHFileButton = QToolButton(Form) self.saveToBVHFileButton.setObjectName(u"saveToBVHFileButton") self.horizontalLayout_3.addWidget(self.saveToBVHFileButton) self.saveToJSONFileButton = QToolButton(Form) self.saveToJSONFileButton.setObjectName(u"saveToJSONFileButton") self.horizontalLayout_3.addWidget(self.saveToJSONFileButton) self.horizontalSpacer_3 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_3.addItem(self.horizontalSpacer_3) self.verticalLayout.addLayout(self.horizontalLayout_3) self.horizontalLayout_4 = QHBoxLayout() self.horizontalLayout_4.setObjectName(u"horizontalLayout_4") self.loadAnimatedMeshButton = QToolButton(Form) self.loadAnimatedMeshButton.setObjectName(u"loadAnimatedMeshButton") self.horizontalLayout_4.addWidget(self.loadAnimatedMeshButton) self.createRagdollButton = QToolButton(Form) self.createRagdollButton.setObjectName(u"createRagdollButton") self.horizontalLayout_4.addWidget(self.createRagdollButton) self.attachFigureButton = QToolButton(Form) self.attachFigureButton.setObjectName(u"attachFigureButton") self.horizontalLayout_4.addWidget(self.attachFigureButton) self.setReferenceFrameButton = QToolButton(Form) self.setReferenceFrameButton.setObjectName(u"setReferenceFrameButton") self.horizontalLayout_4.addWidget(self.setReferenceFrameButton) self.horizontalSpacer_4 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_4.addItem(self.horizontalSpacer_4) self.verticalLayout.addLayout(self.horizontalLayout_4) self.horizontalLayout_5 = QHBoxLayout() self.horizontalLayout_5.setObjectName(u"horizontalLayout_5") self.replaceAnimationButton = QToolButton(Form) self.replaceAnimationButton.setObjectName(u"replaceAnimationButton") self.horizontalLayout_5.addWidget(self.replaceAnimationButton) self.plotJointsButton = QToolButton(Form) self.plotJointsButton.setObjectName(u"plotJointsButton") self.horizontalLayout_5.addWidget(self.plotJointsButton) self.horizontalSpacer_5 = QSpacerItem(40, 20, QSizePolicy.Expanding, QSizePolicy.Minimum) self.horizontalLayout_5.addItem(self.horizontalSpacer_5) self.verticalLayout.addLayout(self.horizontalLayout_5) self.retranslateUi(Form) QMetaObject.connectSlotsByName(Form) # setupUi def retranslateUi(self, Form): Form.setWindowTitle(QCoreApplication.translate("Form", u"Form", None)) self.loadAnnotationButton.setText(QCoreApplication.translate("Form", u"Load Annotation", None)) self.setAnnotationButton.setText(QCoreApplication.translate("Form", u"Set Annotation", None)) self.clearAnnotationButton.setText(QCoreApplication.translate("Form", u"Clear Annotation", None)) self.splitMotionButton.setText(QCoreApplication.translate("Form", u"Split Motion", None)) self.saveAnnotationButton.setText(QCoreApplication.translate("Form", u"Export To File", None)) self.exportAnnotationsToPhaseButton.setText(QCoreApplication.translate("Form", u"Export To Phase File", None)) self.exportAnnotationsToActionsButton.setText(QCoreApplication.translate("Form", u"Export To Actions File", None)) self.animationToggleButton.setText(QCoreApplication.translate("Form", u"Play", None)) self.loopAnimationCheckBox.setText(QCoreApplication.translate("Form", u"Loop", None)) self.relativeRootCheckBox.setText(QCoreApplication.translate("Form", u"Relative Root", None)) self.label_2.setText(QCoreApplication.translate("Form", u"Speed", None)) self.label_3.setText(QCoreApplication.translate("Form", u"x", None)) self.fpsLineEdit.setText(QCoreApplication.translate("Form", u"0", None)) self.label_5.setText(QCoreApplication.translate("Form", u"FPS", None)) self.label.setText(QCoreApplication.translate("Form", u"Draw Mode", None)) self.label_4.setText(QCoreApplication.translate("Form", u"Skeleton model", None)) self.editSkeletonModelButton.setText(QCoreApplication.translate("Form", u"Edit model", None)) self.addNewSkeletonModelButton.setText(QCoreApplication.translate("Form", u"Add New model", None)) self.createCopyButton.setText(QCoreApplication.translate("Form", u"Create Copy", None)) self.retargetFromSourceButton.setText(QCoreApplication.translate("Form", u"Retarget from source", None)) self.copyFromSourceButton.setText(QCoreApplication.translate("Form", u"Copy From Source", None)) self.openEditorButton.setText(QCoreApplication.translate("Form", u"Open Editor", None)) self.saveToBVHFileButton.setText(QCoreApplication.translate("Form", u"Save To BVH", None)) self.saveToJSONFileButton.setText(QCoreApplication.translate("Form", u"Save to JSON", None)) self.loadAnimatedMeshButton.setText(QCoreApplication.translate("Form", u"Load Mesh", None)) self.createRagdollButton.setText(QCoreApplication.translate("Form", u"Create Ragdoll", None)) self.attachFigureButton.setText(QCoreApplication.translate("Form", u"Attach Figure", None)) self.setReferenceFrameButton.setText(QCoreApplication.translate("Form", u"Set Reference Frame", None)) self.replaceAnimationButton.setText(QCoreApplication.translate("Form", u"Replace Animation From BVH/ACM File", None)) self.plotJointsButton.setText(QCoreApplication.translate("Form", u"Plot Joint Trajectories", None))
class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(666, 425) self.verticalLayout = QtWidgets.QVBoxLayout(Dialog) self.verticalLayout.setObjectName("verticalLayout") self.viewerLayout = QtWidgets.QGridLayout() self.viewerLayout.setObjectName("viewerLayout") self.verticalLayout.addLayout(self.viewerLayout) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label = QtWidgets.QLabel(Dialog) self.label.setObjectName("label") self.horizontalLayout_3.addWidget(self.label) self.labelComboBox = QtWidgets.QComboBox(Dialog) self.labelComboBox.setObjectName("labelComboBox") self.horizontalLayout_3.addWidget(self.labelComboBox) self.removeButton = QtWidgets.QPushButton(Dialog) self.removeButton.setObjectName("removeButton") self.horizontalLayout_3.addWidget(self.removeButton) self.setColorButton = QtWidgets.QPushButton(Dialog) self.setColorButton.setObjectName("setColorButton") self.horizontalLayout_3.addWidget(self.setColorButton) self.addButton = QtWidgets.QPushButton(Dialog) self.addButton.setObjectName("addButton") self.horizontalLayout_3.addWidget(self.addButton) self.labelLineEdit = QtWidgets.QLineEdit(Dialog) self.labelLineEdit.setMaximumSize(QtCore.QSize(100, 16777215)) self.labelLineEdit.setObjectName("labelLineEdit") self.horizontalLayout_3.addWidget(self.labelLineEdit) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem) self.verticalLayout.addLayout(self.horizontalLayout_3) self.labelView = TimeLineLabelView(Dialog) self.labelView.setMaximumSize(QtCore.QSize(16777215, 150)) self.labelView.setObjectName("labelView") self.verticalLayout.addWidget(self.labelView) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label_8 = QtWidgets.QLabel(Dialog) self.label_8.setObjectName("label_8") self.horizontalLayout.addWidget(self.label_8) self.displayFrameSlider = QtWidgets.QSlider(Dialog) self.displayFrameSlider.setOrientation(QtCore.Qt.Horizontal) self.displayFrameSlider.setObjectName("displayFrameSlider") self.horizontalLayout.addWidget(self.displayFrameSlider) self.displayFrameSpinBox = QtWidgets.QSpinBox(Dialog) self.displayFrameSpinBox.setObjectName("displayFrameSpinBox") self.horizontalLayout.addWidget(self.displayFrameSpinBox) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.createSegmentButton = QtWidgets.QPushButton(Dialog) self.createSegmentButton.setObjectName("createSegmentButton") self.horizontalLayout_4.addWidget(self.createSegmentButton) self.removeSegmentButton = QtWidgets.QPushButton(Dialog) self.removeSegmentButton.setObjectName("removeSegmentButton") self.horizontalLayout_4.addWidget(self.removeSegmentButton) self.extendSegmentButton = QtWidgets.QPushButton(Dialog) self.extendSegmentButton.setObjectName("extendSegmentButton") self.horizontalLayout_4.addWidget(self.extendSegmentButton) self.splitSegmentsButton = QtWidgets.QPushButton(Dialog) self.splitSegmentsButton.setObjectName("splitSegmentsButton") self.horizontalLayout_4.addWidget(self.splitSegmentsButton) self.mergeSegmentsButton = QtWidgets.QPushButton(Dialog) self.mergeSegmentsButton.setObjectName("mergeSegmentsButton") self.horizontalLayout_4.addWidget(self.mergeSegmentsButton) self.setAnnotationStartButton = QtWidgets.QPushButton(Dialog) self.setAnnotationStartButton.setObjectName("setAnnotationStartButton") self.horizontalLayout_4.addWidget(self.setAnnotationStartButton) self.clearTimelineButton = QtWidgets.QPushButton(Dialog) self.clearTimelineButton.setObjectName("clearTimelineButton") self.horizontalLayout_4.addWidget(self.clearTimelineButton) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout_4) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.plotJointsButton = QtWidgets.QPushButton(Dialog) self.plotJointsButton.setObjectName("plotJointsButton") self.horizontalLayout_5.addWidget(self.plotJointsButton) self.removeJointPlotButton = QtWidgets.QPushButton(Dialog) self.removeJointPlotButton.setObjectName("removeJointPlotButton") self.horizontalLayout_5.addWidget(self.removeJointPlotButton) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem2) self.verticalLayout.addLayout(self.horizontalLayout_5) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem3) self.okButton = QtWidgets.QPushButton(Dialog) self.okButton.setObjectName("okButton") self.horizontalLayout_2.addWidget(self.okButton) self.cancelButton = QtWidgets.QPushButton(Dialog) self.cancelButton.setObjectName("cancelButton") self.horizontalLayout_2.addWidget(self.cancelButton) self.verticalLayout.addLayout(self.horizontalLayout_2) self.retranslateUi(Dialog) QtCore.QMetaObject.connectSlotsByName(Dialog) def retranslateUi(self, Dialog): Dialog.setWindowTitle(QtWidgets.QApplication.translate("Dialog", "Annotation Editor", None, -1)) self.label.setText(QtWidgets.QApplication.translate("Dialog", "Label", None, -1)) self.removeButton.setText(QtWidgets.QApplication.translate("Dialog", "Remove", None, -1)) self.setColorButton.setText(QtWidgets.QApplication.translate("Dialog", "Set Color", None, -1)) self.addButton.setText(QtWidgets.QApplication.translate("Dialog", "Add Label", None, -1)) self.label_8.setText(QtWidgets.QApplication.translate("Dialog", "Displayed Frame", None, -1)) self.createSegmentButton.setText(QtWidgets.QApplication.translate("Dialog", "Create Segment", None, -1)) self.removeSegmentButton.setText(QtWidgets.QApplication.translate("Dialog", "Remove Segment", None, -1)) self.extendSegmentButton.setText(QtWidgets.QApplication.translate("Dialog", "Extend Segment", None, -1)) self.splitSegmentsButton.setText(QtWidgets.QApplication.translate("Dialog", "Split Segment", None, -1)) self.mergeSegmentsButton.setText(QtWidgets.QApplication.translate("Dialog", "Merge Segments", None, -1)) self.setAnnotationStartButton.setText(QtWidgets.QApplication.translate("Dialog", "Set Segment Start", None, -1)) self.clearTimelineButton.setText(QtWidgets.QApplication.translate("Dialog", "Clear Timeline", None, -1)) self.plotJointsButton.setText(QtWidgets.QApplication.translate("Dialog", "Draw Joint Trajectories", None, -1)) self.removeJointPlotButton.setText(QtWidgets.QApplication.translate("Dialog", "Remove Joint Trajectories", None, -1)) self.okButton.setText(QtWidgets.QApplication.translate("Dialog", "Ok", None, -1)) self.cancelButton.setText(QtWidgets.QApplication.translate("Dialog", "Cancel", None, -1))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(1016, 524) self.verticalLayout_4 = QtWidgets.QVBoxLayout(Form) self.verticalLayout_4.setObjectName("verticalLayout_4") self.groupBox_2 = QtWidgets.QGroupBox(Form) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.groupBox_2) self.verticalLayout_3.setObjectName("verticalLayout_3") self.verticalLayout = QtWidgets.QVBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.generateRandomButton = QtWidgets.QToolButton(self.groupBox_2) self.generateRandomButton.setObjectName("generateRandomButton") self.horizontalLayout.addWidget(self.generateRandomButton) self.label_5 = QtWidgets.QLabel(self.groupBox_2) self.label_5.setMaximumSize(QtCore.QSize(100, 16777215)) self.label_5.setObjectName("label_5") self.horizontalLayout.addWidget(self.label_5) self.elementaryActionComboBox = QtWidgets.QComboBox(self.groupBox_2) self.elementaryActionComboBox.setMinimumSize(QtCore.QSize(100, 0)) self.elementaryActionComboBox.setObjectName("elementaryActionComboBox") self.horizontalLayout.addWidget(self.elementaryActionComboBox) self.label_4 = QtWidgets.QLabel(self.groupBox_2) self.label_4.setMaximumSize(QtCore.QSize(100, 16777215)) self.label_4.setObjectName("label_4") self.horizontalLayout.addWidget(self.label_4) self.motionPrimitiveComboBox = QtWidgets.QComboBox(self.groupBox_2) self.motionPrimitiveComboBox.setMinimumSize(QtCore.QSize(150, 0)) self.motionPrimitiveComboBox.setObjectName("motionPrimitiveComboBox") self.horizontalLayout.addWidget(self.motionPrimitiveComboBox) self.label = QtWidgets.QLabel(self.groupBox_2) self.label.setMaximumSize(QtCore.QSize(40, 16777215)) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.mpStepsLineEdit = QtWidgets.QLineEdit(self.groupBox_2) self.mpStepsLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.mpStepsLineEdit.setObjectName("mpStepsLineEdit") self.horizontalLayout.addWidget(self.mpStepsLineEdit) self.verticalLayout.addLayout(self.horizontalLayout) self.verticalLayout_3.addLayout(self.verticalLayout) self.verticalLayout_4.addWidget(self.groupBox_2) self.groupBox = QtWidgets.QGroupBox(Form) self.groupBox.setObjectName("groupBox") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.generateConstrainedButton = QtWidgets.QToolButton(self.groupBox) self.generateConstrainedButton.setObjectName( "generateConstrainedButton") self.horizontalLayout_2.addWidget(self.generateConstrainedButton) self.setConstraintsButton = QtWidgets.QToolButton(self.groupBox) self.setConstraintsButton.setObjectName("setConstraintsButton") self.horizontalLayout_2.addWidget(self.setConstraintsButton) self.clearGraphWalkButton = QtWidgets.QToolButton(self.groupBox) self.clearGraphWalkButton.setObjectName("clearGraphWalkButton") self.horizontalLayout_2.addWidget(self.clearGraphWalkButton) self.setConfigButton = QtWidgets.QToolButton(self.groupBox) self.setConfigButton.setObjectName("setConfigButton") self.horizontalLayout_2.addWidget(self.setConfigButton) self.saveConstraintsButton = QtWidgets.QToolButton(self.groupBox) self.saveConstraintsButton.setObjectName("saveConstraintsButton") self.horizontalLayout_2.addWidget(self.saveConstraintsButton) self.loadConstraintsButton = QtWidgets.QToolButton(self.groupBox) self.loadConstraintsButton.setObjectName("loadConstraintsButton") self.horizontalLayout_2.addWidget(self.loadConstraintsButton) self.label_8 = QtWidgets.QLabel(self.groupBox) self.label_8.setObjectName("label_8") self.horizontalLayout_2.addWidget(self.label_8) self.randomSeedLineEdit = QtWidgets.QLineEdit(self.groupBox) self.randomSeedLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.randomSeedLineEdit.setObjectName("randomSeedLineEdit") self.horizontalLayout_2.addWidget(self.randomSeedLineEdit) spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem) self.verticalLayout_2.addLayout(self.horizontalLayout_2) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.label_6 = QtWidgets.QLabel(self.groupBox) self.label_6.setObjectName("label_6") self.horizontalLayout_5.addWidget(self.label_6) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_5.addItem(spacerItem1) self.verticalLayout_2.addLayout(self.horizontalLayout_5) self.actionListWidget = QtWidgets.QListWidget(self.groupBox) self.actionListWidget.setObjectName("actionListWidget") self.verticalLayout_2.addWidget(self.actionListWidget) self.verticalLayout_4.addWidget(self.groupBox) self.labelView = TimeLineLabelView(Form) self.labelView.setMaximumSize(QtCore.QSize(16777215, 150)) self.labelView.setObjectName("labelView") self.verticalLayout_4.addWidget(self.labelView) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.animationToggleButton = QtWidgets.QToolButton(Form) self.animationToggleButton.setObjectName("animationToggleButton") self.horizontalLayout_4.addWidget(self.animationToggleButton) self.animationFrameSlider = QtWidgets.QSlider(Form) self.animationFrameSlider.setOrientation(QtCore.Qt.Horizontal) self.animationFrameSlider.setObjectName("animationFrameSlider") self.horizontalLayout_4.addWidget(self.animationFrameSlider) self.animationFrameSpinBox = QtWidgets.QSpinBox(Form) self.animationFrameSpinBox.setObjectName("animationFrameSpinBox") self.horizontalLayout_4.addWidget(self.animationFrameSpinBox) self.loopAnimationCheckBox = QtWidgets.QCheckBox(Form) self.loopAnimationCheckBox.setChecked(False) self.loopAnimationCheckBox.setObjectName("loopAnimationCheckBox") self.horizontalLayout_4.addWidget(self.loopAnimationCheckBox) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setObjectName("label_2") self.horizontalLayout_4.addWidget(self.label_2) self.animationSpeedDoubleSpinBox = QtWidgets.QDoubleSpinBox(Form) self.animationSpeedDoubleSpinBox.setSingleStep(0.1) self.animationSpeedDoubleSpinBox.setProperty("value", 1.0) self.animationSpeedDoubleSpinBox.setObjectName( "animationSpeedDoubleSpinBox") self.horizontalLayout_4.addWidget(self.animationSpeedDoubleSpinBox) self.label_3 = QtWidgets.QLabel(Form) self.label_3.setObjectName("label_3") self.horizontalLayout_4.addWidget(self.label_3) self.fpsLineEdit = QtWidgets.QLineEdit(Form) self.fpsLineEdit.setMaximumSize(QtCore.QSize(40, 16777215)) self.fpsLineEdit.setObjectName("fpsLineEdit") self.horizontalLayout_4.addWidget(self.fpsLineEdit) self.label_9 = QtWidgets.QLabel(Form) self.label_9.setObjectName("label_9") self.horizontalLayout_4.addWidget(self.label_9) self.verticalLayout_4.addLayout(self.horizontalLayout_4) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.label_7 = QtWidgets.QLabel(Form) self.label_7.setObjectName("label_7") self.horizontalLayout_6.addWidget(self.label_7) self.drawModeComboBox = QtWidgets.QComboBox(Form) self.drawModeComboBox.setObjectName("drawModeComboBox") self.horizontalLayout_6.addWidget(self.drawModeComboBox) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem2) self.verticalLayout_4.addLayout(self.horizontalLayout_6) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.loadGraphWalkButton = QtWidgets.QToolButton(Form) self.loadGraphWalkButton.setObjectName("loadGraphWalkButton") self.horizontalLayout_3.addWidget(self.loadGraphWalkButton) self.exportGraphWalkButton = QtWidgets.QToolButton(Form) self.exportGraphWalkButton.setObjectName("exportGraphWalkButton") self.horizontalLayout_3.addWidget(self.exportGraphWalkButton) self.exportButton = QtWidgets.QToolButton(Form) self.exportButton.setObjectName("exportButton") self.horizontalLayout_3.addWidget(self.exportButton) self.createCopyButton = QtWidgets.QToolButton(Form) self.createCopyButton.setObjectName("createCopyButton") self.horizontalLayout_3.addWidget(self.createCopyButton) self.createRagdollButton = QtWidgets.QToolButton(Form) self.createRagdollButton.setObjectName("createRagdollButton") self.horizontalLayout_3.addWidget(self.createRagdollButton) self.loadAnimatedMeshButton = QtWidgets.QToolButton(Form) self.loadAnimatedMeshButton.setObjectName("loadAnimatedMeshButton") self.horizontalLayout_3.addWidget(self.loadAnimatedMeshButton) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem3) self.verticalLayout_4.addLayout(self.horizontalLayout_3) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) def retranslateUi(self, Form): Form.setWindowTitle( QtWidgets.QApplication.translate("Form", "Form", None, -1)) self.groupBox_2.setTitle( QtWidgets.QApplication.translate("Form", "Random Synthesis", None, -1)) self.generateRandomButton.setText( QtWidgets.QApplication.translate("Form", "Generate", None, -1)) self.label_5.setText( QtWidgets.QApplication.translate("Form", "ElementaryAction", None, -1)) self.label_4.setText( QtWidgets.QApplication.translate("Form", "Motion Primitive", None, -1)) self.label.setText( QtWidgets.QApplication.translate("Form", "# Steps", None, -1)) self.mpStepsLineEdit.setText( QtWidgets.QApplication.translate("Form", "1", None, -1)) self.groupBox.setTitle( QtWidgets.QApplication.translate("Form", "Constrained Synthesis", None, -1)) self.generateConstrainedButton.setText( QtWidgets.QApplication.translate("Form", "Generate", None, -1)) self.setConstraintsButton.setText( QtWidgets.QApplication.translate("Form", "Set Action Sequence", None, -1)) self.clearGraphWalkButton.setText( QtWidgets.QApplication.translate("Form", "Clear Graph Walk", None, -1)) self.setConfigButton.setText( QtWidgets.QApplication.translate("Form", "Set Config", None, -1)) self.saveConstraintsButton.setText( QtWidgets.QApplication.translate("Form", "Save Constraints", None, -1)) self.loadConstraintsButton.setText( QtWidgets.QApplication.translate("Form", "Load Constraints", None, -1)) self.label_8.setText( QtWidgets.QApplication.translate("Form", "Seed", None, -1)) self.label_6.setText( QtWidgets.QApplication.translate("Form", "Action Sequence", None, -1)) self.animationToggleButton.setText( QtWidgets.QApplication.translate("Form", "Play", None, -1)) self.loopAnimationCheckBox.setText( QtWidgets.QApplication.translate("Form", "Loop", None, -1)) self.label_2.setText( QtWidgets.QApplication.translate("Form", "Speed", None, -1)) self.label_3.setText( QtWidgets.QApplication.translate("Form", "x", None, -1)) self.fpsLineEdit.setText( QtWidgets.QApplication.translate("Form", "0", None, -1)) self.label_9.setText( QtWidgets.QApplication.translate("Form", "FPS", None, -1)) self.label_7.setText( QtWidgets.QApplication.translate("Form", "Draw Mode", None, -1)) self.loadGraphWalkButton.setText( QtWidgets.QApplication.translate("Form", "Load Graph Walk", None, -1)) self.exportGraphWalkButton.setText( QtWidgets.QApplication.translate("Form", "Export Graph Walk", None, -1)) self.exportButton.setText( QtWidgets.QApplication.translate("Form", "Export To BVH", None, -1)) self.createCopyButton.setText( QtWidgets.QApplication.translate("Form", "Create Copy", None, -1)) self.createRagdollButton.setText( QtWidgets.QApplication.translate("Form", "Create Ragdoll", None, -1)) self.loadAnimatedMeshButton.setText( QtWidgets.QApplication.translate("Form", "Load Animated Mesh", None, -1))