"Animation Rigging" package and animation events - do they work together?

I try to change the weight of a rig layer in a function that I call in an animation event:

I know for sure that the event is being called because I can see the debug.log message in the console showing, surprisingly “1”!
However, the weight of the rig script in the inspector and the position of the character stays unchanged. I can change the rig value in while the game is played and the character will move accordingly. Does anyone know why it does not work? I will really appreciate any help!

same problem