Skip to content

Instantly share code, notes, and snippets.

@manhha00
Created December 9, 2017 15:02
Show Gist options
  • Save manhha00/c4d0d5f061d677999f3567de9d35661b to your computer and use it in GitHub Desktop.
Save manhha00/c4d0d5f061d677999f3567de9d35661b to your computer and use it in GitHub Desktop.
maya - mel - proc string argument
string $stringB = "Maya";
window;
columnLayout;
button -l "test" -command ("Test(\"string \",\""+$stringB+"\")") - w 150;
showWindow;
global proc Test(string $stringTestA, string $stringTestB)
{
print ($stringTestA + $stringTestB);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment