How can I decompose a main number into individual digits to control multiple instances of a digit...

Here's the setup I currently have:

  • I created a single-digit artboard that animates based on a number input.

  • I imported this digit artboard three times into a parent artboard to represent a 3-digit AQI (Air Quality Index) value.

  • I implemented logic to update colors based on the AQI value.

  • I want to control each digit instance using a decomposed value (hundreds, tens, units) derived from a main AQI number input.

What I'm trying to achieve:

  • A main numeric input (e.g., 135) should be split into hundreds (1), tens (3), and ones (5).

  • Each of these values should control the corresponding nested digit artboard's input to display the correct number.

Is there a recommended approach in Rive for decomposing a number input and distributing the values across multiple nested artboards?



Screen Recording 2025-04-11 at 8.26.03 PM.mp4