mgear.flex.decorators module

flex.decorators

flex.decorators module contains utility functions that you can use as functions decorators.

module:flex.decorators
mgear.flex.decorators.finished_running(function)

Displays a end of process viewport message

Parameters:function (function) – your decorated function
Returns:your decorated function
Return type:function
mgear.flex.decorators.hold_selection(function)

Holds the current Maya selection after running the function

Parameters:function (function) – your decorated function
Returns:your decorated function
Return type:function
mgear.flex.decorators.isolate_view(function)

Isolates the view panels while function is running

Parameters:function (function) – your decorated function
Returns:your decorated function
Return type:function
mgear.flex.decorators.set_focus(function)

Set focus on Flex window

Sets focus on Flex UI.

Parameters:function (function) – your decorated function
Returns:your decorated function
Return type:function
mgear.flex.decorators.show_view(function)

Shows the isolated views panels after function runs

Parameters:function (function) – your decorated function
Returns:your decorated function
Return type:function
mgear.flex.decorators.timer(function)

Function timer

Simple timer function decorator that you can use on Flex to time your code execution

Parameters:function (function) – your decorated function
Returns:your decorated function
Return type:function