get_animations()
- 1 Minute to read
get_animations()
- 1 Minute to read
Article summary
Did you find this summary helpful?
Thank you for your feedback
Returns a list with all the available animations for a specified group.
Reference
Arguments
Arguments | Type | Default value | Explenation |
---|---|---|---|
group | string | None | Name of the predefined led's group |
Return
A list with all the avilable animations for a specified group.
Exceptions
Exception | Condition |
---|---|
RayaLedsWrongGroup | Invalid 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?