Gradual value transitions when switching variations

I apologize in advance if the text is not smooth as I am not very familiar with English and have used a translation tool.

I would like the widget values to change gradually when switching variations.

For example:

Variation 1
Widget 1: Pad Volume, Value: 50
Widget 2: String Volume, Value: 50

Variation 2
Widget 1: Pad Volume, Value: 70
Widget 2: String Volume, Value: 60

In this situation, when switching from Variation 1 to Variation 2, I would like the values to “gradually” transition from 50 to 70 and 50 to 60.

This can be done via scripting.