Package mrv :: Package maya :: Package nt :: Module util
[hide private]
[frames] | no frames]

Module util

source code

General utility methods
Functions [hide private]
    Conversion Methods
 
in_double3_out_vector(function)
Returns: MVector containing result of function with signature function(double [3])
source code
 
in_two_floats_out_tuple(function)
Returns: tuple containing result of function with signature function(float& f1, float& f2)
source code
 
in_double3_as_vector(function, vec_value)
Set the value in vec_value to passed in function as double [3] and return the result
source code
 
undoable_in_double3_as_vector(function, vec_old_value, vec_new_value)
function supports the signature function(double [3] const) and will change the underlying instance to the respective values as retrieved from the passed in vector.
source code
Variables [hide private]
  MScriptUtil = api.MScriptUtil
Function Details [hide private]

in_double3_out_vector(function)

source code 
Returns:
MVector containing result of function with signature function(double [3])

in_two_floats_out_tuple(function)

source code 
Returns:
tuple containing result of function with signature function(float& f1, float& f2)

undoable_in_double3_as_vector(function, vec_old_value, vec_new_value)

source code 
function supports the signature function(double [3] const) and will change the underlying instance to the respective values as retrieved from the passed in vector. The calling method must be enclosed in an undoable decorator.
Parameters:
  • vec_old_value - vector with the old value of the corresponding getX method
  • vec_new_value - vector with new value that is to be set