#-------------------------------------------------------------------------------
# Name: YJ_load_Jnt
# Purpose: Load Star Jnt And End Jnt
#
# Author: YangJie
#
# Created: 08/04/2014
# Email: 691633493@
#-------------------------------------------------------------------------------
from maya.cmds import*
def YJ_Load_Star_End_Jnt():
SelList = ls(sl=1)
if len(SelList) == 0:
error( "No Select Obj" )
else:
Star = SelList[0]
End = SelList[-1]
return Star,End
if __name__ == '__main__':
YJ_Load_Star_End_Jnt()