Skip to content

Instantly share code, notes, and snippets.

@phmongeau
Last active December 16, 2015 11:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phmongeau/5428173 to your computer and use it in GitHub Desktop.
Save phmongeau/5428173 to your computer and use it in GitHub Desktop.
foot roll maya expression
if(RG_L_footIcon_1.ballX < 0) {
JT_L_heelCtrl_1.rotateX = RG_L_footIcon_1.ballX;
JT_L_toesTipCtrl_1.rotateX = 0;
}
else if (RG_L_footIcon_1.ballX < 50) {
JT_L_heelCtrl_1.rotateX = 0;
JT_L_toesTipCtrl_1.rotateX = 0;
JT_L_ballCtrl_1.rotateX = 1 - RG_L_footIcon_1.ballX;
}
else {
JT_L_heelCtrl_1.rotateX = 0;
JT_L_ballCtrl_1.rotateX = -100 + RG_L_footIcon_1.ballX;
JT_L_toesTipCtrl_1.rotateX = 50 - RG_L_footIcon_1.ballX;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment