tik_manager4.dcc.max.main ========================= .. py:module:: tik_manager4.dcc.max.main Attributes ---------- .. autoapisummary:: tik_manager4.dcc.max.main.LOG Classes ------- .. autoapisummary:: tik_manager4.dcc.max.main.Dcc Module Contents --------------- .. py:class:: Dcc Bases: :py:obj:`tik_manager4.dcc.main_core.MainCore` .. py:method:: 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 Max, this is camera node obj.. resolution: (list) Resolution of the preview range: (list) Range of the preview settings: (dict) Global Settings dictionary .. py:method:: 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 .. py:method:: get_current_camera() :staticmethod: Return the current camera in the scene. .. py:method:: get_current_frame() :staticmethod: Return current frame in timeline. If dcc does not have a timeline, returns None. .. py:method:: get_dcc_version() :staticmethod: Return the DCC major version. .. py:method:: get_main_window() :staticmethod: Get the main window. .. py:method:: get_ranges() :staticmethod: Get the viewport ranges. .. py:method:: get_scene_cameras() :staticmethod: Return NAMES of all the cameras in the scene. .. py:method:: get_scene_file() :staticmethod: Get the current scene file. .. py:method:: get_scene_fps() :staticmethod: Return the current FPS value set by DCC. None if not supported. .. py:method:: is_modified() :staticmethod: Check if the scene has unsaved changes. .. py:method:: open(file_path, force=True, **extra_arguments) :staticmethod: Opens 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 .. py:method:: save_as(file_path) :staticmethod: Saves the file to the given path Args: file_path: (String) File path that will be written file_format: (String) File format Returns: (String) File path .. py:method:: save_prompt() :staticmethod: Pop up the save prompt. .. py:method:: save_scene() :staticmethod: Save the current scene. .. py:method:: save_selection(file_path) :staticmethod: Save (Export) the current selection to the given file path. .. py:method:: set_ranges(range_list) :staticmethod: Set the timeline ranges. Args: range_list: list of ranges as [, , , ] Returns: None .. py:method:: set_scene_fps(fps_value) Set the FPS value in DCC if supported. Args: fps_value: (integer) fps value Returns: None .. py:attribute:: extensions .. py:attribute:: extracts .. py:attribute:: formats :value: ['.max'] .. py:attribute:: ingests .. py:attribute:: name :value: 'Max' .. py:attribute:: preview_enabled :value: True .. py:attribute:: save_selection_enabled :value: True .. py:attribute:: validations .. py:data:: LOG