get_animations()
  • 1 Minute to read

get_animations()


Article summary

Returns a list with all the available animations for a specified group.

Reference

Arguments

ArgumentsTypeDefault valueExplenation
groupstringNoneName of the predefined led's group

Return

A list with all the avilable animations for a specified group.

Exceptions

ExceptionCondition
RayaLedsWrongGroupInvalid group name (the group name doesn't exist).

See the complete list of Raya Exceptions.

Example

Print a list of all available animations for the chest leds.
Code:

print(self.leds.get_animations('chest'))

Console output:

['standby', 'waiting', 'loading', 'searching']

Was this article helpful?