Skip to content

Instantly share code, notes, and snippets.

@lapaev
Created May 22, 2015 00:47
Show Gist options
  • Select an option

  • Save lapaev/85d689e727253daae7af to your computer and use it in GitHub Desktop.

Select an option

Save lapaev/85d689e727253daae7af to your computer and use it in GitHub Desktop.
Scale based on manip
int $whataxis = `manipMoveContext -q -mode Move`;
if ($whataxis == 6){
float $aaoa[] = `manipMoveContext -q -oa $wtf`;
string $xzoa = "" + $aaoa[0] + "rad";
string $yzoa = "" + $aaoa[1] + "rad";
string $zzoa = "" + $aaoa[2] + "rad";
scale -oa $xzoa $yzoa $zzoa -r -1 1 1;
}
if ($whataxis == 2){
scale -r -ws -1 1 1;
}
if ($whataxis == 0){
scale -r -os -1 1 1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment