tik_manager4.dcc.max.main
Attributes
Classes
Module Contents
- class Dcc
Bases:
tik_manager4.dcc.main_core.MainCore- 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
- 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()
Return the current camera in the scene.
- 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 main window.
- static get_ranges()
Get the viewport ranges.
- static get_scene_cameras()
Return NAMES of all the cameras in the scene.
- 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()
Check if the scene has unsaved changes.
- static open(file_path, force=True, **extra_arguments)
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
- static save_as(file_path)
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
- static save_prompt()
Pop up the save prompt.
- static save_scene()
Save the current scene.
- static save_selection(file_path)
Save (Export) the current selection to the given file path.
- static set_ranges(range_list)
Set the timeline ranges.
- Args:
- range_list: list of ranges as [<animation start>, <user min>, <user max>,
<animation end>]
Returns: None
- set_scene_fps(fps_value)
Set the FPS value in DCC if supported. Args:
fps_value: (integer) fps value
Returns: None
- extensions
- extracts
- formats = ['.max']
- ingests
- name = 'Max'
- preview_enabled = True
- save_selection_enabled = True
- validations
- LOG