Skip to content

Instantly share code, notes, and snippets.

@manhha00
Created January 10, 2018 14:29
Show Gist options
  • Save manhha00/de71d5ea678b3fef5406ccd524080cbd to your computer and use it in GitHub Desktop.
Save manhha00/de71d5ea678b3fef5406ccd524080cbd to your computer and use it in GitHub Desktop.
maya - mel - create loc in pos
string $currentTool = `currentCtx`;
setToolTo moveSuperContext;
vector $pos = `manipMoveContext -q -p Move`;
string $loc[] = `spaceLocator -n "average#"`;
move -ws -a ($pos.x) ($pos.y) ($pos.z) $loc;
setToolTo $currentTool;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment