pymel.util.all

all(a, axis=None)

all(a, [,axis=(axis0, axis1, ...)]) –> bool or Array of booleans

Returns True if all the components of iterable a evaluate to True. If axis are specified will return an Array of all(x) for x in a.axisiter(*axis).

>>> A = Array([[True,True,True],[False,True,False]])
>>> print A.formated()
[[True, True, True],
 [False, True, False]]
>>> all(A)
False
>>> all(A, axis=(0, 1))
False
>>> all(A, axis=0)
Array([False, True, False])
>>> all(A, axis=1)
Array([True, False])

Previous topic

pymel.util.alias

Next topic

pymel.util.angle

Core

Core Modules

Other Modules

This Page