tik_manager4.dcc.maya.main
Main module for Maya DCC integration.
Attributes
Classes
Maya DCC class. |
|
Main UI for Tik Manager 4. |
|
Main UI for Tik Manager 4. |
Module Contents
- class Dcc
Bases:
tik_manager4.dcc.main_core.MainCoreMaya DCC class.
- static generate_preview(name, folder, camera_code, resolution, range, settings=None)
Create a preview from the current scene Args:
name: (String) Name of the preview folder: (String) Folder to save the preview camera_code: (String) Camera code. In Maya, this is the UUID of the camera transform node. resolution: (list) Resolution of the preview range: (list) Range of the preview settings: (dict) Global Settings dictionary
- generate_thumbnail(file_path, width, height)
Grabs a thumbnail from the current scene Args:
file_path: (String) File path to save the thumbnail width: (Int) Width of the thumbnail height: (Int) Height of the thumbnail
Returns: None
- static get_current_camera()
Get the current camera and its uuid.
- static get_current_frame()
Return current frame in timeline. If dcc does not have a timeline, returns None.
- static get_dcc_version()
Return the DCC major version.
- static get_main_window()
Get the memory adress of the main window to connect Qt dialog to it. Returns:
(long or int) Memory Adress
- static get_ranges()
Get the viewport ranges.
- static get_scene_cameras()
Return a dictionary of all the cameras in the scene where key is the camera name and value is the camera uuid.
- static get_scene_file()
Get the current scene file.
- static get_scene_fps()
Return the current FPS value set by DCC. None if not supported.
- static is_modified()
Returns True if the scene has unsaved changes
- launch(tik_main_object, window_name=None, dont_show=False)
Launch Tik Main UI with DCC specific way.
- static open(file_path, force=True, **_extra_arguments)
Open the given file path Args:
file_path: (String) File path to open force: (Bool) if true any unsaved changes on current scene will be lost **_extra_arguments: Compatibility arguments for other DCCs
Returns: None
- static save_as(file_path)
Save the current scene as a new file. Args:
file_path (str): The file path to save the scene to.
- Returns:
(str) The file path that the scene was saved to.
- static save_prompt()
Pop up the save prompt.
- static save_scene()
Saves the current file
- static save_selection(file_path)
Save the current selection as a new file.
- static set_project(file_path)
Sets the project to the given path Args:
file_path: (String) Path to the project folder
Returns: None
- static set_ranges(range_list)
Set the timeline ranges.
- static set_scene_fps(fps_value)
Set the FPS value in DCC if supported. Args:
fps_value: (integer) fps value
Returns: None
- custom_launcher = True
- extensions
- extracts
- formats = ['.ma', '.mb']
- ingests
- name = 'Maya'
- preview_enabled = True
- save_selection_enabled = True
- validations
- class DockableMainUI(main_object=None, window_name=None, parent=None, **kwargs)
Bases:
maya.app.general.mayaMixin.MayaQWidgetDockableMixin,tik_manager4.ui.main.MainUIMain UI for Tik Manager 4.
- dockCloseEventTriggered()
Override the stub function to save the window state.
- class RegularMainUI(main_object=None, window_name=None, parent=None, **kwargs)
Bases:
tik_manager4.ui.main.MainUIMain UI for Tik Manager 4.
- LOG