bug: flutter API not applying VMI value change to 1D Blend
hi there
I have a view model instance that that seems to be set up correctly as I can set values (e.g colours and strings) and read some values (y). However, I have one value (scale) that is not bound to anything other than being used to control a blend in the state machine. When I run the state machine in rive I can adjust the scale variable and the blend changes the size of my objects as expected. However, when I set the value in code the change is ignored.
any advice appreciated.
final vm = riveFile.defaultArtboardViewModel(ab)!;
vmi = vm.createDefaultInstance()!;
sm.bindViewModelInstance(vmi!);
vmiScale = vmi.number('scale')!;//setting this with .value does not work
vmiY = vmi.number('y')!;//reading this with .value does work