tik_manager4.ui.dialog.publish_dialog ===================================== .. py:module:: tik_manager4.ui.dialog.publish_dialog .. autoapi-nested-parse:: Dialogs for publishing files. Maya test example: from importlib import reload import sys p_path = "D:\dev\tik_manager4\" if p_path not in sys.path: sys.path.append(p_path) kill_list = [] for name, _module in sys.modules.items(): if name.startswith("tik_manager4"): kill_list.append(name) for x in kill_list: sys.modules.pop(x) from maya import cmds file_path = "C:\Users\kutlu\t4_maya_test_project_DO_NOT_USE\test_subproject\test_task\Model\Maya\test_task_Model_test_cube_v003.ma" cmds.file(file_path, open=True, force=True) import tik_manager4 tik = tik_manager4.initialize("Maya") from tik_manager4.dcc.maya.main import Dcc as maya_dcc parent = maya_dcc().get_main_window() # reload(tik_manager4) from tik_manager4.objects import publisher reload(publisher) from tik_manager4.ui.dialog import publish_dialog reload(publish_dialog) from tik_manager4.ui import pick _style_file = pick.style_file() dialog = publish_dialog.PublishSceneDialog(tik.project, styleSheet=str(_style_file.readAll(), "utf-8"), parent=parent) dialog.show() Attributes ---------- .. autoapisummary:: tik_manager4.ui.dialog.publish_dialog.LOG tik_manager4.ui.dialog.publish_dialog.tik Classes ------- .. autoapisummary:: tik_manager4.ui.dialog.publish_dialog.ExtractRow tik_manager4.ui.dialog.publish_dialog.ManagementTasksCombo tik_manager4.ui.dialog.publish_dialog.ManagementTasksComboBoxModel tik_manager4.ui.dialog.publish_dialog.PublishSceneDialog tik_manager4.ui.dialog.publish_dialog.ValidateRow Module Contents --------------- .. py:class:: ExtractRow(extract_object, parent=None) Bases: :py:obj:`tik_manager4.ui.Qt.QtWidgets.QWidget` Custom Widget for extract rows. .. py:method:: build_widgets() Build the widgets. .. py:method:: pop_info() Pops up an information dialog. .. py:method:: set_state(state) Set the state of the extract. .. py:method:: toggle_enabled(is_enabled) Toggle the enabled state of the extract. .. py:method:: toggle_settings_visibility(state) Toggle the visibility of the settings frame. .. py:method:: update_message_box() Update the info icons border color if there is a message to show. .. py:class:: ManagementTasksCombo(items, parent=None, default_item_name: str = None) Bases: :py:obj:`tik_manager4.ui.Qt.QtWidgets.QComboBox` Custom ComboBox for Management Tasks. .. py:method:: get_current_item() Get the current selected item. .. py:method:: get_current_status() Get the current selected status. .. py:method:: set_item(item_name) Set the item by name. .. py:class:: ManagementTasksComboBoxModel(items, parent=None) Bases: :py:obj:`tik_manager4.ui.Qt.QtCore.QAbstractListModel` .. py:method:: data(index, role=QtCore.Qt.DisplayRole) .. py:method:: get_display_name(item) Get the display name of the item. .. py:method:: get_item(index) Method to get the full dictionary item. .. py:method:: get_status(index) Method to get the status of the item. .. py:method:: get_status_name(item) Get the status name of the item. .. py:method:: rowCount(parent=None) .. py:class:: PublishSceneDialog(project_object, *args, **kwargs) Bases: :py:obj:`tik_manager4.ui.Qt.QtWidgets.QDialog` Publish the current scene. .. py:method:: build_ui() Build the layouts. .. py:method:: check_eligibility() Checks if the current scene is eligible for publishing. .. py:method:: check_extraction_status() Check all extractions and return current state. .. py:method:: check_validation_state() Check all validations and return current state. .. py:method:: extract_all(callback_handler=None) Extract all the extractors. .. py:method:: publish() Command to publish the scene. .. py:method:: reset_validators() If the scene is modified it will reset all the validators. .. py:method:: validate_all() Validate all the validators. .. py:property:: is_management_driven Check if the management platform is available. .. py:class:: ValidateRow(validator_object, toaster=None, parent=None) Bases: :py:obj:`tik_manager4.ui.Qt.QtWidgets.QWidget` Custom Widget for validation rows. .. py:method:: build_widgets() Build the widgets. .. py:method:: fix() Auto Fix the scene. .. py:method:: pop_info() Pop up an information dialog for informing the user what went wrong. .. py:method:: reset() Reset the validator. .. py:method:: select() Select the objects related to the validator. .. py:method:: update_state() Update the availablity of the buttons. .. py:method:: validate() Validate the validator. .. py:data:: LOG .. py:data:: tik