pymel.util.arraysΒΆ

A generic n-dimensionnal Array class serving as base for arbitrary length VectorN and MatrixN classes

Functions

abs abs(number) -> number
acos acos(x)
acosh acosh(x)
all all(a, [,axis=(axis0, axis1, ...)]) –> bool or Array of booleans
angle angle(u, v) –> float
any any(a [,axis=(axis0, axis1, ...)]) –> bool or Array of booleans
asin asin(x)
asinh asinh(x)
atan atan(x)
atan2 atan2(y, x)
atanh atanh(x)
axis axis(u, v[, normalize=False]) –> VectorN
blend blend(a, b[, weight=0.5]) :
ceil ceil(x)
clamp Clamps the value x between min and max
clsname
conjugate the conjugate part of x
copysign copysign(x,y)
cos cos(x)
cosh cosh(x)
cotan cotan(u, v) –> float :
cross cross(u, v) –> VectorN
degrees degrees(x) -> converts angle x from radians to degrees
det det(m) –> float
dist dist(a, b[, axis=(axis0, axis1, ...)]) –> float or Array
dot dot(u, v) –> float
exp exp(x)
fabs fabs(x)
factorial factorial(x) -> Integral
floor floor(x)
fmod fmod(x,y)
frexp frexp(x)
fsum sum(iterable)
gamma Gamma color correction of c with a single scalar gamma value g
hermite As the MEL command : This command returns x point along on x hermite curve from the five given control arguments.
hermiteInterp Hermite interpolation of x between points y0 and y1 of tangent slope s0 and s1
hypot hypot(x,y)
imag the imaginary part of x
inv inv(m) –> MatrixN
isNumeric Returns True if an object is a number type, otherwise returns False.
isinf isinf(x) -> bool
isnan isnan(x) -> bool
ldexp ldexp(x, i) -> x * (2**i)
length length(a[, axis=(axis0, axis1, ...)]) –> numeric or Array
linmap Returns the value of a linear remapping function.
linstep Returns the value of a linear step function.
log log(x[, base]) -> the logarithm of x to the given base.
log10 log10(x) -> the base 10 logarithm of x.
log1p log1p(x)
max max(iterable[, key=func[, axis=(axis0, axis1, ...)]]) –> value
min min(iterable[, key=func[, axis=(axis0, axis1, ...)]]) –> value
modf modf(x)
normal normal(a[, axis=(axis0, axis1, ...)]) –> Array
outer outer(u, v) –> MatrixN
patchMath Overload various math functions to work element-wise on iterables
pow pow(x,y)
prod prod(a[, start=1[, axis=(axis0, axis1, ...)]]) –> numeric or Array
radians radians(x) -> converts angle x from degrees to radians
readonly Marks a class member as protected, allowing metaProtected to prevent re-assignation on the classes it generates
real the real part of x
round round(number[, ndigits]) -> float
setRange Resets x range from x linear interpolation of oldmin to oldmax to x linear interpolation from newmin to newmax
sin sin(x)
sinh sinh(x)
smoothmap Returns the value of a smooth remapping function.
smoothstep Returns the value of a smooth step function.
sqlength sqlength(a[, axis=(axis0, axis1, ...)]) –> numeric or Array
sqrt sqrt(x)
sum sum(a[, start=0[, axis=(axis0, axis1, ...)]]) –> numeric or Array
tan tan(x)
tanh tanh(x)
trunc trunc(x:Real) -> Integral

Classes

Array A generic n-dimensional array class using nested lists for storage.
ArrayIter A general purpose iterator on Arrays.
MatrixN A generic size MatrixN class, basically a 2 dimensional Array.
VectorN A generic size VectorN class derived from Array, basically a 1 dimensional Array.
metaReadOnlyAttr A metaclass to allow to define read-only class attributes, accessible either on the class or it’s instances and protected against re-write or re-definition.

Previous topic

pymel.util.arguments.ProxyUnicode

Next topic

pymel.util.arrays.abs

Core

Core Modules

Other Modules

This Page