mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
publish button opens publish GUI
This commit is contained in:
parent
91b170f0ac
commit
adc063d3ff
1 changed files with 11 additions and 3 deletions
|
|
@ -1,6 +1,8 @@
|
|||
from . import QtWidgets, QtCore, QtGui
|
||||
from . import DropDataFrame
|
||||
|
||||
from .. import publish
|
||||
|
||||
|
||||
class ComponentsWidget(QtWidgets.QWidget):
|
||||
def __init__(self, parent):
|
||||
|
|
@ -93,6 +95,12 @@ class ComponentsWidget(QtWidgets.QWidget):
|
|||
self.parent_widget.working_stop()
|
||||
|
||||
def _publish(self):
|
||||
data = self.parent_widget.collect_data()
|
||||
from pprint import pprint
|
||||
pprint(data)
|
||||
self.working_start('Pyblish is running')
|
||||
try:
|
||||
data = self.parent_widget.collect_data()
|
||||
publish.set_context(
|
||||
data['project'], data['asset'], 'standalonepublish'
|
||||
)
|
||||
publish.publish(data)
|
||||
finally:
|
||||
self.working_stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue