pymel.util.arrays.any¶
- any(a, axis=None)¶
any(a [,axis=(axis0, axis1, ...)]) –> bool or Array of booleans
Returns True if any of the components of iterable a evaluate to True. If axis are specified will return an Array of any(x) for x in a.axisiter(*axis).
>>> A = Array([[False,True,True],[False,True,False]]) >>> print A.formated() [[False, True, True], [False, True, False]] >>> any(A) True >>> any(A, axis=(0, 1)) True >>> any(A, axis=0) Array([False, True, True]) >>> any(A, axis=1) Array([True, True])