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 valueExplanation
groupstringNoneName of the predefined led's group.

Return

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

Exceptions

  • RayaLedsWrongGroup

See the complete LEDs exceptions.

Usage example

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

self.log.info(self.leds.get_animations('chest'))

Console output:

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

Was this article helpful?