tik_manager4.dcc.maya.utils

Collection of utility functions for Maya

These are essentially methods are both required by the main module and the ingest, extract and/or validate modules. To prevent circular imports, these methods are collected here.

Functions

get_ranges()

Get the viewport ranges.

get_scene_fps()

Return the current FPS value set by DCC. None if not supported.

keepselection(func)

Decorator method to keep the current selection. Useful where

set_ranges(range_list)

Set the timeline ranges.

set_scene_fps(fps_value)

Set the FPS value in DCC if supported.

Module Contents

get_ranges()

Get the viewport ranges. Returns (list): [<absolute range start>, <user range start>, <user range end>, <absolute range end>

get_scene_fps()

Return the current FPS value set by DCC. None if not supported.

keepselection(func)

Decorator method to keep the current selection. Useful where the wrapped method messes with the current selection

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