Attributes:
Methods:
The PointableList class extends the Python array to represent a list of Pointable objects.
Get a PointableList object by calling Frame.pointables() or Hand.pointables().
#From frame:
pointables = frame.pointables
#From hand
pointables = hand.pointables
New in version 1.0.
Constructs an empty list.
New in version 1.0.
- Leap.is_empty¶
Type: boolean Reports whether the list is empty.
if frame.pointables.is_empty: print "Skipping empty frame"New in version 1.0.
- Leap.frontmost¶
Type: Pointable The item in this list with the smallest z coordinate.
front_pointable = pointables.frontmostNew in version 1.0.
Appends the members of the specifed PointableList to this PointableList.
Parameters: | other (PointableList) – A PointableList object containing Pointable objects to append to the end of this PointableList. |
---|
New in version 1.0.
Removes non-extended fingers from this FingerList.
Tools are always extended.
extended_finger_list = frame.fingers.extended()
Returns: | This modified PointableList object containing only tools and extended fingers. |
---|
New in version 2.0.