Recently I found out there’s no need for the ‘Recalculate Expressions’ script. You just have to use the column(columnName) function, which according to the documentation only does:
“Identify the text wrapped by columnName to be renamed whenever the column named “columnName” is renamed.”
When writing an expression do something like this:
var pegValue = column(“PegA_Pos_x”); //name of the function from where you’re taking the values.
//I like to put the function’s name in a variable so I can change it easily if I have to.
Using this expression (supposing you are using it in the X axis of PegB) every time you move PegA in X, PegB’s X value will be updated right after.