tik_manager4.ui.dialog.publish_dialog
Dialogs for publishing files.
Maya test example:
from importlib import reload import sys p_path = “D:devtik_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:Userskutlut4_maya_test_project_DO_NOT_USEtest_subprojecttest_taskModelMayatest_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
Classes
Custom Layout for extract rows. |
|
Custom ComboBox for Management Tasks. |
|
Publish the current scene. |
|
Custom Layout for validation rows. |
Module Contents
- class ExtractRow(extract_object, *args, **kwargs)
Bases:
tik_manager4.ui.Qt.QtWidgets.QHBoxLayoutCustom Layout for extract rows.
- build_widgets()
Build the widgets.
- pop_info()
Pops up an information dialog.
- set_state(state)
Set the state of the extract.
- toggle_enabled(is_enabled)
Toggle the enabled state of the extract.
- toggle_settings_visibility(state)
Toggle the visibility of the settings frame.
- update_message_box()
Update the info icons border color if there is a message to show.
- class ManagementTasksCombo(items, parent=None, default_item_name: str = None)
Bases:
tik_manager4.ui.Qt.QtWidgets.QComboBoxCustom ComboBox for Management Tasks.
- get_current_item()
Get the current selected item.
- get_current_status()
Get the current selected status.
- set_item(item_name)
Set the item by name.
- class ManagementTasksComboBoxModel(items, parent=None)
Bases:
tik_manager4.ui.Qt.QtCore.QAbstractListModel- data(index, role=QtCore.Qt.DisplayRole)
- get_display_name(item)
Get the display name of the item.
- get_item(index)
Method to get the full dictionary item.
- get_status(index)
Method to get the status of the item.
- get_status_name(item)
Get the status name of the item.
- rowCount(parent=None)
- class PublishSceneDialog(project_object, *args, **kwargs)
Bases:
tik_manager4.ui.Qt.QtWidgets.QDialogPublish the current scene.
- build_ui()
Build the layouts.
- check_eligibility()
Checks if the current scene is eligible for publishing.
- check_extraction_status()
Check all extractions and return current state.
- check_validation_state()
Check all validations and return current state.
- extract_all(callback_handler=None)
Extract all the extractors.
- publish()
Command to publish the scene.
- reset_validators()
If the scene is modified it will reset all the validators.
- validate_all()
Validate all the validators.
- property is_management_driven
- Check if the management platform is available.
- class ValidateRow(validator_object, toaster=None, *args, **kwargs)
Bases:
tik_manager4.ui.Qt.QtWidgets.QHBoxLayoutCustom Layout for validation rows.
- build_widgets()
Build the widgets.
- fix()
Auto Fix the scene.
- pop_info()
Pop up an information dialog for informing the user what went wrong.
- reset()
Reset the validator.
- select()
Select the objects related to the validator.
- update_state()
Update the availablity of the buttons.
- validate()
Validate the validator.
- LOG
- tik