melfunctions 0.2 | Index mal-, mael- #aehem# melfunctions is a plugin for Alias Maya that gives you access to many new mel command functions most of which are only very hard to replicate purely in MEL. This functionset gives you many commands you already know from mel (+ a few extras) wrapped so they work with arrays. All you ever wanted to do with mMatrices in MEL. Get absolute value of doubles in an array Get arc cosine value of doubles in an array Add two double arrays together elementwise Append elements to the end of a double array Get arc sine value of doubles in an array Get arc tangent value of doubles in an array Compute cubic root of double in an array Compute smallest integral value not less than double in an array clamp value between min and max value Get cosine value of doubles in an array Create a double array Convert degrees to radians Division of double and double Returns value between newMin and newMax that isrelative to A in the range between oldMin and oldMax Get largest integral value not greater than value of doubles in an array get fractional part of a dbl Get elements from a double array Get hyperbolic cosine value of doubles in an array Get hyperbolic sine value of doubles in an array Get hyperbolic tangent value of doubles in an array Check if two mDblArray elements are exactly equal Check if elements of two double arrays are equivalent within a tolerance Check if mDblArray elements are not equal linear interpolation of two doubles Returns value between 0 and 1 representing percentage of the distance between MIN and MAX represented by A. Get natural logarithm value of doubles in an array Get base 10 logarithm value of doubles in an array return the maximum of the two values return the minimum of the two values Returns the floating-point remainder of the division of it arguments A and B Multiply componentwise two double arrays together Negate doubles in an array Raises the first argument to the power of the second argument returns 1 if A is between min and max (inclusive) 0 else Convert radians to degrees Round mDblArray elements to a specific digit Set elements in a double array, this function will not grow the double array, but error when you try to set an invalid array element! get the sign of a double, -1 if dbl<0, 0 if dbl=0 and 1 if dbl>0 Get sine value of doubles in an array Get number of doubles in a double array Compute square root of double in an array Subtract two double arrays elementwise Get tangent value of doubles in an array round value towards zero to the nearest integer Add two matrix arrays together elementwise Get adjoint (or conjugate transpose) of the elements of a matrix array Append elements to the end of a matrix array Create a matrix array Multiply matrix (array) with double (array) elementwise Get 3x3 (upper right) determinant of a mMatrix. Get 4x4 determinant of the elements of an matrix array. Get elements from a matrix array Get matrix component at specified row and columns within a matrix array. Get the homogenized version o the elements of a matrix array Get the inverse of a the elements of a matrix array. Check if two mMatrices are exactly equal Check if elements of two matrix arrays are equivalent within a tolerance Check if two mMatrices are exactly not equal Check if a matrices in an array are singular (do not have an inverse). Multiply matrix with matrix of arrays elementwise Set elements in a matrix array, this function will not grow the matrix array, but error when you try to set an invalid array element! Set a single component of an entry in a matrix array. Get number of matrices in a matrix array Subtract two matrix arrays from each other elementwise Get the transpose of of the elements of a matrix array Add two vector arrays together elementwise Angle between two vector arrays elementwise Append elements to the end of a vector array Create a vector array Cross product of two vector arrays elementwise Division of vector and double Multiplication of vector and double Distance between two vector position arrays elementwise The dot product of two vector arrays elementwise Get elements from a vector array Get vector component at specified poistion within a vector array. Get vector component X within a vector array. Get vector component Y within a vector array. Get vector component Z within a vector array. Check if two mVectors are exactly equal Check if elements of two vector arrays are equivalent within a tolerance Check if two mVectors are not equal Get the length of the elements of a vector array. Get the sqr length of the elements of a vector array. linear interpolation of two vectors Multiplication of vector and matrix, the way to transform a vector between differnt spaces Multiply componentwise two vector arrays together The negate vector of an array The normalized vector of an array Rotate vector by defining an axis to rotate about and an angle (in rad) Rotate vector by euler angles, euler angles are assumed to be in xyz rotation order Set elements in a vector array, this function will not grow the vector array, but error when you try to set an invalid array element! Set vector component at specified poistion within a vector array. Set length of vector Set vector component X Set vector component X Set vector component X Get number of vectors in a vector array spherical linear interpolation of two vectors Subtract two vector arrays elementwise |