Responsive artboard list item amount by number of instances
Couldn’t find any related question in this channel:
I try to populate an artboard list with as many items as a view model has instances.
I fail to do so because I eíther have to select (“add List Item”) the number of items in the sidepanel of the listProprerty or go the way of the View Model Number with Converter.
In both cases the behaviour I’d like is not there: that when a new instance is added to the referenced view model the list grows outomatically.
example: “vmA” has a string property “name” and a color property “color” and 5 instances of these:
1 name: dinosaur, color: blue(hex)
2 name: bird, color: green
3 name: fish, color: red
4 name: insect, color: yellow
5 name: mammal, color: orange
“vmB” has a listProperty and is set up to show these instances.
When I add now to “vmA” the 6. instance
6 name: fungi, color: cyan
the list on the artboard with “vmB” should automatically show 6 items.
Am I missing something? Should I think of it in a different way? Should I just do it via scripting? How could I build a rive file that can be used with any length of array displayed as a list?
Thank you in advance for any reply.