def getChannels(*args): cBox = mel.eval('$temp=$gChannelBoxName') cAttrs = cmds.channelBox(cBox, q=True, selectedMainAttributes=True, ssa=True, sha=True, soa=True) return cAttrs