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.

unique_name(name[, return_counter, suffix])

Searches the scene for match and returns a unique name for given name

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

unique_name(name, return_counter=False, suffix=None)

Searches the scene for match and returns a unique name for given name Args:

name: (String) Name to query return_counter: (Bool) If true, returns the next available number instead of the object name suffix: (String) If defined and if name ends with this suffix, the increment numbers will be put before the.

Returns: (String) uniquename