Press "Enter" to skip to content

aoGetUsername

[code lang="c"]
// 
// aoKit
// Andrew Odendaal's Maya Script Kit
// Software developed by Andrew Odendaal
// Code compatible with versions 7 - 8.5
//
// Author : Andrew Odendaal
// E-mail : [email protected]
// Website: http://www.andrewodendaal.com
// 

// get the username of the current user
global proc aoKitGetUserName()
{
	global string $aoKitUserName;
		$aoKitUserName = `getenv USER`;
	print ("" + $aoKitUserName + " is the name!\n");
}
[/code]