def __init__(self, *args, **kwargs):
        """
        @type args:
        @type kwargs:
        """
        mayabaseplugin.CreateWidget.__init__(self, *args, **kwargs)

        self._sequence = None
        start, end = mutils.currentRange()

        self.ui.sequenceWidget = studiolibrary.SequenceWidget(self)
        self.connect(self.ui.sequenceWidget, QtCore.SIGNAL("clicked()"), self.snapshot)
        self.ui.layout().insertWidget(1, self.ui.sequenceWidget)
        self.ui.snapshotButton.parent().hide()

        self.ui.endFrameEdit.setValidator(QtGui.QIntValidator(-50000000, 50000000, self))
        self.ui.startFrameEdit.setValidator(QtGui.QIntValidator(-50000000, 50000000, self))

        self.ui.endFrameEdit.setText(str(int(end)))
        self.ui.startFrameEdit.setText(str(int(start)))

        self.ui.byFrameEdit.setValidator(QtGui.QIntValidator(1, 1000, self))
        self.ui.byFrameEdit.setText(str(self.settings().get("byFrame")))

        self.connect(self.ui.setEndFrameButton, QtCore.SIGNAL("clicked()"), self.setEndFrame)
        self.connect(self.ui.setStartFrameButton, QtCore.SIGNAL("clicked()"), self.setStartFrame)
示例#2
0
 def __init__(self, *args, **kwargs):
     """
     @type args:
     @type kwargs:
     """
     mayaBasePlugin.CreateWidget.__init__(self, *args, **kwargs)
     self.connect(self.ui.setEndFrameButton, QtCore.SIGNAL('clicked()'),
                  self.setEndFrame)
     self.connect(self.ui.setStartFrameButton, QtCore.SIGNAL('clicked()'),
                  self.setStartFrame)
     self._sequence = None
     self.ui.byFrameEdit.setValidator(QtGui.QIntValidator(1, 1000, self))
     self.ui.sequenceWidget = studioLibrary.SequenceWidget(self)
     self.connect(self.ui.sequenceWidget, QtCore.SIGNAL('clicked()'),
                  self.snapshot)
     self.ui.layout().insertWidget(1, self.ui.sequenceWidget)
     self.ui.snapshotButton.parent().hide()
     try:
         self.ui.byFrameEdit.setText(str(self.settings().get('byFrame')))
         start, end = mutils.currentRange()
         self.ui.startFrameEdit.setValidator(
             QtGui.QIntValidator(-50000000, 50000000, self))
         self.ui.endFrameEdit.setValidator(
             QtGui.QIntValidator(-50000000, 50000000, self))
         self.ui.startFrameEdit.setText(str(int(start)))
         self.ui.endFrameEdit.setText(str(int(end)))
     except ValueError:
         import traceback
         traceback.print_exc()
    def __init__(self, *args, **kwargs):
        """
        @type args:
        @type kwargs:
        """
        mayabaseplugin.CreateWidget.__init__(self, *args, **kwargs)

        self._sequence = None
        start, end = mutils.currentRange()

        self.ui.sequenceWidget = studiolibrary.SequenceWidget(self)
        self.connect(self.ui.sequenceWidget, QtCore.SIGNAL("clicked()"),
                     self.snapshot)
        self.ui.layout().insertWidget(1, self.ui.sequenceWidget)
        self.ui.snapshotButton.parent().hide()

        self.ui.endFrameEdit.setValidator(
            QtGui.QIntValidator(-50000000, 50000000, self))
        self.ui.startFrameEdit.setValidator(
            QtGui.QIntValidator(-50000000, 50000000, self))

        self.ui.endFrameEdit.setText(str(int(end)))
        self.ui.startFrameEdit.setText(str(int(start)))

        self.ui.byFrameEdit.setValidator(QtGui.QIntValidator(1, 1000, self))
        self.ui.byFrameEdit.setText(str(self.settings().get("byFrame")))

        self.connect(self.ui.setEndFrameButton, QtCore.SIGNAL("clicked()"),
                     self.setEndFrame)
        self.connect(self.ui.setStartFrameButton, QtCore.SIGNAL("clicked()"),
                     self.setStartFrame)
示例#4
0
    def __init__(self, *args, **kwargs):
        """
        :type args: list[]
        :type kwargs: dict[]
        """
        mayabaseplugin.CreateWidget.__init__(self, *args, **kwargs)

        self._sequencePath = None
        start, end = mutils.currentRange()

        self.ui.sequenceWidget = studiolibrary.ImageSequenceWidget(self)
        iconPath = self.plugin().dirname() + "/resource/images/thumbnail.png"
        self.ui.sequenceWidget.setIcon(QtGui.QIcon(iconPath))
        self.connect(self.ui.sequenceWidget, QtCore.SIGNAL("clicked()"), self.snapshot)

        self.ui.layout().insertWidget(1, self.ui.sequenceWidget)
        self.ui.snapshotButton.parent().hide()
        self.ui.sequenceWidget.setStyleSheet(self.ui.snapshotButton.styleSheet())

        validator = QtGui.QIntValidator(-50000000, 50000000, self)
        self.ui.endFrameEdit.setValidator(validator)
        self.ui.startFrameEdit.setValidator(validator)

        self.ui.endFrameEdit.setText(str(int(end)))
        self.ui.startFrameEdit.setText(str(int(start)))

        self.ui.byFrameEdit.setValidator(QtGui.QIntValidator(1, 1000, self))
        self.ui.byFrameEdit.setText(str(self.settings().get("byFrame")))

        self.connect(self.ui.setEndFrameButton, QtCore.SIGNAL("clicked()"), self.setEndFrame)
        self.connect(self.ui.setStartFrameButton, QtCore.SIGNAL("clicked()"), self.setStartFrame)
示例#5
0
    def __init__(self, *args, **kwargs):
        """
        :type args: list
        :type kwargs: dict
        """
        mayabaseplugin.CreateWidget.__init__(self, *args, **kwargs)

        self._sequencePath = None
        start, end = mutils.currentRange()

        self.ui.sequenceWidget = studiolibrary.ImageSequenceWidget(self)

        icon = studiolibraryplugins.resource().icon("thumbnail")
        self.ui.sequenceWidget.setIcon(icon)

        self.ui.layout().insertWidget(1, self.ui.sequenceWidget)
        self.ui.snapshotButton.parent().hide()
        self.ui.sequenceWidget.setStyleSheet(self.ui.snapshotButton.styleSheet())

        validator = QtGui.QIntValidator(-50000000, 50000000, self)
        self.ui.endFrameEdit.setValidator(validator)
        self.ui.startFrameEdit.setValidator(validator)

        self.ui.endFrameEdit.setText(str(int(end)))
        self.ui.startFrameEdit.setText(str(int(start)))

        self.ui.byFrameEdit.setValidator(QtGui.QIntValidator(1, 1000, self))
        self.ui.byFrameEdit.setText(str(self.settings().get("byFrame")))

        self.ui.sequenceWidget.clicked.connect(self.snapshot)
        self.ui.setEndFrameButton.clicked.connect(self.setEndFrame)
        self.ui.setStartFrameButton.clicked.connect(self.setStartFrame)
    def __init__(self, *args, **kwargs):
        """
        :type args: list
        :type kwargs: dict
        """
        mayabaseplugin.CreateWidget.__init__(self, *args, **kwargs)

        self._sequencePath = None
        start, end = mutils.currentRange()

        self.ui.sequenceWidget = studiolibrary.ImageSequenceWidget(self)

        icon = studiolibraryplugins.resource().icon("thumbnail")
        self.ui.sequenceWidget.setIcon(icon)

        self.ui.layout().insertWidget(1, self.ui.sequenceWidget)
        self.ui.snapshotButton.parent().hide()
        self.ui.sequenceWidget.setStyleSheet(self.ui.snapshotButton.styleSheet())

        validator = QtGui.QIntValidator(-50000000, 50000000, self)
        self.ui.endFrameEdit.setValidator(validator)
        self.ui.startFrameEdit.setValidator(validator)

        self.ui.endFrameEdit.setText(str(int(end)))
        self.ui.startFrameEdit.setText(str(int(start)))

        self.ui.byFrameEdit.setValidator(QtGui.QIntValidator(1, 1000, self))
        self.ui.byFrameEdit.setText(str(self.settings().get("byFrame")))

        self.ui.sequenceWidget.clicked.connect(self.snapshot)
        self.ui.setEndFrameButton.clicked.connect(self.setEndFrame)
        self.ui.setStartFrameButton.clicked.connect(self.setStartFrame)