Exemplo n.º 1
0
def run():
    global dlg
    if not dlg:
        mayaMainWin = getMayaQMainWindow()
        dlg = OptionsDialog(mayaMainWin)
    dlg.show()
    dlg.raise_()
Exemplo n.º 2
0
def run():
    global dlg
    if not dlg:
        mayaMainWin = getMayaQMainWindow()
        dlg = OptionsDialog(mayaMainWin)
    dlg.show()
    dlg.raise_()
Exemplo n.º 3
0
    def __init__(self):
        super(LogDialog, self).__init__(parent=getMayaQMainWindow())
        self.ui = Ui_Dialog()
        self.ui.setupUi(self)

        self.strings = []

        self.ui_initSettings()
        self.ui_loadSettings()
Exemplo n.º 4
0
def showDialog(shortcutsExists, shortcutsDuplicatesExists, anonymousExists):
    if shortcutsExists and not shortcutsDuplicatesExists and not anonymousExists:
        text = "All transforms you've selected contains original reference source paths.<br>" \
               "They will be replaced to their respective sources.<br><br>" \
               "Choose your option."
    elif shortcutsExists and shortcutsDuplicatesExists and not anonymousExists:
        text = "All transforms you've selected contains original reference source paths.<br>" \
               "They will be replaced to their respective sources.<br><br>" \
               "<font color='DarkOrange'><b>WARNING!</b></font> You've got several transforms " \
               "pointing to the same source scene.<br>" \
               "If you choose <b>Save And Replace</b>, one of these transforms will be randomly chosen " \
               "to save as source scene and you may loose your edits.<br><br>" \
               "Choose your option."
    elif shortcutsExists and anonymousExists:
        text = "You've got mixed selection of transforms with and without original reference source paths data.<br><br>" \
               "<font color='DarkOrange'><b>WARNING!</b></font> " \
               "You will be prompted to choose or save original reference source scene.<br>" \
               "In case of <b>Save And Replace</b>, a random selected transform will be chosen to save as source scene.<br>" \
               "In both <b>Save And Replace</b> and <b>Replace</b> cases <font color='white'><b>ALL " \
               "selected transforms will be replaced with the chosen one</b></font><br><br>" \
               "Choose your option."
    elif not shortcutsExists and anonymousExists:
        text = "All transforms you've selected does not contain original reference source paths.<br>" \
               "If you choose <b>Save And Replace</b> or <b>Replace</b>, " \
               "you will be prompted to choose original reference source scene and all " \
               "selected transforms will be replaced with the chosen one.<br><br>" \
               "Choose your option."
    else:
        text = "Choose your option."

    global dlg
    if not dlg:
        mayaMainWin = getMayaQMainWindow()
        dlg = ReplaceDialog(mayaMainWin)
    dlg.setText(text)
    dlg.exec_()