{
TranslateToolWithSnapMarkingMenu;
buildTranslateMM;
setToolTo $gMove;
changeToolIcon;
TranslateToolWithSnapMarkingMenuPopDown;
MarkingMenuPopDown;
if (`popupMenu -exists tempMM`) { deleteUI tempMM; }if (`popupMenu -exists tempMM2`) { deleteUI tempMM2; };

int $transX = `manipMoveContext -q -mode Move`;
int $modulo;
string $result[];
string $command[];

$result[0] = "0 = Objet";
$result[1] = "1 = Local";
$result[2] = "2 = World";
$result[3] = "3 = ref";

$command[0] = ("manipMoveContext -e -mode 0 Move;");
$command[1] = ("manipMoveContext -e -mode 1 Move;");
$command[2] = ("manipMoveContext -e -mode 2 Move;");
$command[3] = ("moveObjectRel object;");

$modulo =`fmod ($transX+1) 7`;

eval $command[$modulo];
print ($modulo+" "+$result[$modulo]);
}
