mgear.core.utils

Utilitie functions

Functions

as_pynode(obj)

Check and convert a given string to Pynode

filter_nurbs_curve_selection(func)

gatherCustomModuleDirectories(envvarkey, ...)

returns component directory

getModuleBasePath(directories, moduleName)

search component path

get_dag_path(name)

Gets the dag path for the specified object name.

get_frame_rate()

Returns the current scene's fps.

get_maya_path()

Gets the path to the folder where Maya binary lives

get_os()

Gets the OS that Maya is running in.

importFromStandardOrCustomDirectories(...)

Return imported module

is_odd(num)

Check if the number is odd.

one_undo(func)

Decorator - guarantee close chunk.

set_frame_rate(fps)

Set Maya Scene's frame rate(fps).

timeFunc(func)

Use as a property to time any desired function

viewport_off(func)

Decorator - Turn off Maya display while func is running.