Press "Enter" to skip to content

aoCreateLoadShelfIcon

[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
// 

// create shelf icon for reloading aoKit
global proc aoKitCreateLoadShelfIcon()
{
	global string $aoKitAppPath;
	global string $gShelfTopLevel;

	string $selTab = ( $gShelfTopLevel + "|" + `tabLayout -q -selectTab $gShelfTopLevel` );
	
	shelfButton
	        -enableCommandRepeat 1
	        -enable 1
	        -width 34
	        -height 34
	        -manage 1
	        -visible 1
	        -label "aoKit" 
	        -image1 ($aoKitAppPath + "Logo.tga") 
	        -style "iconOnly" 
	 	-parent $selTab
 		-command ("aoKitStartup");
}
[/code]