About expressions…

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.

value(pegValue, currentFrame);

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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s