class HIK: def getCurrentCharacter(self): import maya.cmds as mc; currentCharacterLabel= False; currentCharacterIndex= mc.optionMenuGrp("hikCharacterList",q=1,sl=1); items= mc.optionMenuGrp("hikCharacterList",q=1,itemListLong=1); currentCharacterItem= items[currentCharacterIndex-1]; currentCharacterLabel= mc.menuItem(currentCharacterItem,q=1,label=1); if not mc.objExists(currentCharacterLabel): currentCharacterLabel= None; elif mc.nodeType(currentCharacterLabel)!="HIKCharacterNode": currentCharacterLabel= None; return(currentCharacterLabel); def getCurrentSource(self): import maya.cmds as mc; currentSourceLabel= False; currentSou...
Thank you for your message and interest. I do my best to update this blog this year.
ReplyDelete