5
5
# / __ `__ \/ / Licensed under Creative Commons BY-SA
6
6
# / / / / / / / http://creativecommons.org/licenses/by-sa/3.0/
7
7
# /_/ /_/ /_/_/ _________
8
- # /_________/ Revision 15 , 2017-04-06
8
+ # /_________/ Revision 16 , 2017-04-23
9
9
# _______________________________
10
10
# - -/__ Installing Python Scripts __/- - - - - - - - - - - - - - - - - - - -
11
11
#
44
44
__author__ = 'Morgan Loomis'
45
45
__license__ = 'Creative Commons Attribution-ShareAlike'
46
46
__category__ = 'animationScripts'
47
- __revision__ = 15
47
+ __revision__ = 16
48
48
49
49
import maya .cmds as mc
50
50
import maya .mel as mm
@@ -853,11 +853,11 @@ def getSpaceSwitchData(node):
853
853
enumValues = mc .attributeQuery (spaceEnum , node = node , listEnum = True )
854
854
elif 'SpaceSwitch' in attr :
855
855
baseName = attr .replace ('SpaceSwitch' ,'' )
856
- if mc . attributeQuery ( baseName + 'Space' , node = node , exists = True ) :
856
+ if baseName + 'Space' in attrs :
857
857
spaceEnum = baseName + 'Space'
858
- elif not 'spaceSwitch' in ssAttrs and 'space' in attrs :
859
- spaceEnum = 'space'
860
- if spaceEnum :
858
+ else :
859
+ spaceEnum = attr
860
+ if spaceEnum in attrs and mc . attributeQuery ( spaceEnum , node = node , attributeType = True ) == 'enum' :
861
861
enumValues = mc .attributeQuery (spaceEnum , node = node , listEnum = True )
862
862
if not enumValues :
863
863
continue
@@ -1277,3 +1277,5 @@ def flipAnimation(nodes, *args):
1277
1277
# Revision 14: 2017-03-28 : removing hide all sets, maya not allow
1278
1278
#
1279
1279
# Revision 15: 2017-04-06 : Context menu bug fixes and additional features.
1280
+ #
1281
+ # Revision 16: 2017-04-23 : Space Switch context menu bug fix
0 commit comments