Can't access Nested Input
We are updating our timer app (made with Rive and React Native) and we’re using the old inputs as we started with those (not data binding).
I have an artboard called “AT_Lock” with a boolean input and the State Machine: Entry → Off (icon scale = 0 keyframe) then if LockOn True it goes to another timeline with icon scale = 100 keyframe, then back if LockOn False.
Basically this works as an on/off switch for the icon.
Then I have this AT_Lock as a nested input in my “ATSQ” artboards: (I will have 20 of those)
I didn’t create any if/else condiitons for the LockOn, as I though we could access this from the App Runtime, but it’s currently not working.
This is from the dev:
we're trying to trigger an input state change in a nested artboard like this:
riveRef.current?.setInputStateAtPath("LockOn", true, "AT_Lock"); error that appears:
java.lang.Throwable:
app.rive.runtime.kotlin.core.errors.StateMachineInputException: No StateMachineInput found with name "LockOn" in nested artboard AT_Lock.
app.rive.runtime.kotlin.core.Artboard.input(Artboard.kt:197)
app.rive.runtime.kotlin.controllers.RiveFileController.processAllInputs(RiveFileController.kt:614)
app.rive.runtime.kotlin.controllers.RiveFileController.advance(RiveFileController.kt:307)
app.rive.runtime.kotlin.renderers.RiveArtboardRenderer.advance(RiveArtboardRenderer.kt:70)Can anyone help? Or suggest an easier way to do this?
I know this would probably be easy with DataBinding, but this one of the last updates and we would like to get this done ASAP rather than try new ways with DataBinding.
(The lock will be linked to a paywall to subscribe the app).
Thank you!