Updated
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2011/AnimSchoolLogoIcon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2011/AnimSchoolPicker.mll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2012/AnimSchoolLogoIcon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2012/AnimSchoolPicker.mll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2013/AnimSchoolLogoIcon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2013/AnimSchoolPicker.mll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2014/AnimSchoolLogoIcon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2014/AnimSchoolPicker.mll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2015/AnimSchoolLogoIcon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2015/AnimSchoolPicker.mll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2016.5/AnimSchoolLogoIcon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2016.5/AnimSchoolPicker.mll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2016/AnimSchoolLogoIcon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2016/AnimSchoolPicker.mll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2017/AnimSchoolLogoIcon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2017/AnimSchoolPicker.mll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2018/AnimSchoolLogoIcon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2018/AnimSchoolPicker.mll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2019/AnimSchoolLogoIcon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2019/AnimSchoolPicker.mll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2020/AnimSchoolLogoIcon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2020/AnimSchoolPicker.mll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2022/AnimSchoolLogoIcon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2022/AnimSchoolPicker.mll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2023/AnimSchoolLogoIcon.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						| 
		 After Width: | Height: | Size: 5.4 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2023/AnimSchoolPicker.mll
									
									
									
									
									
										Normal file
									
								
							
							
						
						
							
								
								
									
										
											BIN
										
									
								
								Scripts/Animation/AnimSchoolPicker/2024/AnimSchoolPicker.mll
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,27 @@
 | 
			
		||||
 | 
			
		||||
AnimSchool Picker Install
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Download here (follow the link at the bottom of the page.)
 | 
			
		||||
http://www.animschool.edu/DownloadOffer.aspx
 | 
			
		||||
 | 
			
		||||
Information here:
 | 
			
		||||
http://www.animschool.edu/pickerInfo.aspx
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
There are folders with the different Maya versions. You have to use the correct 32 bit or 64 bit version, depending on what version of Maya you're running.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Make a new shelf button
 | 
			
		||||
 | 
			
		||||
loadPlugin -qt "C:/Users/yourname/Documents/AnimSchoolPicker/AnimSchoolPicker/2020 (the version of Maya you're using)/AnimSchoolPicker.mll";
 | 
			
		||||
AnimSchoolPicker();
 | 
			
		||||
 | 
			
		||||
You can use the PickerIcon.png image for the Maya icon.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Mac:
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
loadPlugin -qt "/Users/yourname/AnimSchoolPicker.bundle";
 | 
			
		||||
AnimSchoolPicker();
 | 
			
		||||
@@ -0,0 +1,52 @@
 | 
			
		||||
// when run, this script will create a button on your current shelf 
 | 
			
		||||
// that when clicked, will open the picker
 | 
			
		||||
//
 | 
			
		||||
// you can paste the entire contents of this file in the script editor, select, 
 | 
			
		||||
// and hit enter
 | 
			
		||||
//
 | 
			
		||||
// Copyright (c) 2013 AnimSchool
 | 
			
		||||
 | 
			
		||||
global proc AnimSchoolPicker_install()
 | 
			
		||||
{
 | 
			
		||||
	// this script will create a shelf button for the AnimSchoolPicker
 | 
			
		||||
 | 
			
		||||
	string $os = `about -os`;
 | 
			
		||||
 | 
			
		||||
	string $ff = "*.so";		// this is the type for linux
 | 
			
		||||
	string $ps = "/";				// this the path separator for mac and linux
 | 
			
		||||
 | 
			
		||||
	if( `gmatch $os "mac"` )
 | 
			
		||||
		{
 | 
			
		||||
			$ff = "*.bundle";
 | 
			
		||||
		}
 | 
			
		||||
	else if( `gmatch $os "win"` || `gmatch $os "win64"` )
 | 
			
		||||
		{
 | 
			
		||||
			$ff = "*.mll";
 | 
			
		||||
			$ps = "\\";
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
	//	print ( "// filter is: " + $ff + "\n" );
 | 
			
		||||
 | 
			
		||||
	string $path[] = `fileDialog2 -caption "Select the AnimSchoolPicker plugin:" -ff $ff -fileMode 1`;
 | 
			
		||||
	
 | 
			
		||||
	if( size( $path ) == 1 )
 | 
			
		||||
		{
 | 
			
		||||
			// print ( "// the path to the file is: " + $path[ 0 ] + "\n" );
 | 
			
		||||
 | 
			
		||||
			string $cmd = "loadPlugin -qt " + "\"" + $path[ 0 ] + "\";\nAnimSchoolPicker();";
 | 
			
		||||
			string $icon = dirname( $path[ 0 ] ) + $ps + "AnimSchoolLogoIcon.png";
 | 
			
		||||
 | 
			
		||||
			global string $gShelfTopLevel;
 | 
			
		||||
			setParent `shelfTabLayout -query -selectTab $gShelfTopLevel`;
 | 
			
		||||
 | 
			
		||||
			if( `filetest -r $icon` )
 | 
			
		||||
				{
 | 
			
		||||
					shelfButton -command $cmd -image $icon;
 | 
			
		||||
				}
 | 
			
		||||
			else
 | 
			
		||||
				{
 | 
			
		||||
					shelfButton -command $cmd -imageOverlayLabel "Pickr";
 | 
			
		||||
				}
 | 
			
		||||
		}
 | 
			
		||||
}
 | 
			
		||||
AnimSchoolPicker_install();
 | 
			
		||||
@@ -0,0 +1,37 @@
 | 
			
		||||
#!/usr/bin/env python
 | 
			
		||||
# -*- coding: utf-8 -*-
 | 
			
		||||
 | 
			
		||||
import maya.cmds as cmds
 | 
			
		||||
import os
 | 
			
		||||
 | 
			
		||||
def AnimSchoolPicker_install():
 | 
			
		||||
    """此脚本将为 AnimSchoolPicker 创建一个架子按钮"""
 | 
			
		||||
 | 
			
		||||
    os_type = cmds.about(os=True)
 | 
			
		||||
 | 
			
		||||
    ff = "*.so"  # 这是 Linux 的类型
 | 
			
		||||
    ps = "/"     # 这是 Mac 和 Linux 的路径分隔符
 | 
			
		||||
 | 
			
		||||
    if "mac" in os_type:
 | 
			
		||||
        ff = "*.bundle"
 | 
			
		||||
    elif "win" in os_type or "win64" in os_type:
 | 
			
		||||
        ff = "*.mll"
 | 
			
		||||
        ps = "\\"
 | 
			
		||||
 | 
			
		||||
    # 打开文件对话框以选择插件
 | 
			
		||||
    path = cmds.fileDialog2(caption="Select the AnimSchoolPicker plugin:", ff=ff, fileMode=1)
 | 
			
		||||
 | 
			
		||||
    if len(path) == 1:
 | 
			
		||||
        # 构建命令和图标路径
 | 
			
		||||
        cmd = "loadPlugin -qt \"{}\";\nAnimSchoolPicker();".format(path[0])
 | 
			
		||||
        icon = os.path.dirname(path[0]) + ps + "AnimSchoolLogoIcon.png"
 | 
			
		||||
 | 
			
		||||
        # 获取当前架子
 | 
			
		||||
        gShelfTopLevel = cmds.tabLayout('shelfTabLayout', query=True, selectTab=True)
 | 
			
		||||
 | 
			
		||||
        if cmds.file(icon, query=True, exists=True):
 | 
			
		||||
            cmds.shelfButton(command=cmd, image=icon)
 | 
			
		||||
        else:
 | 
			
		||||
            cmds.shelfButton(command=cmd, imageOverlayLabel="Pickr")
 | 
			
		||||
 | 
			
		||||
AnimSchoolPicker_install()
 | 
			
		||||
							
								
								
									
										4
									
								
								Scripts/Animation/AnimSchoolPicker/__init__.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						@@ -0,0 +1,4 @@
 | 
			
		||||
#!/usr/bin/env python
 | 
			
		||||
# -*- coding: utf-8 -*-
 | 
			
		||||
 | 
			
		||||
from . import *
 | 
			
		||||