def createOutputJnts(*args):
    exitB = 'Exit'
    doitB = 'doIt'
    if (not cmds.ls(sl=True)):
        logger.warning('You must have a {} selected!'.format(nem_typeids.HA_NODENAME))
        return
    confirm = cmds.confirmDialog(title='Create?', message='Ok?', button=doitB, db=doitB, b=exitB, cb=exitB)
    if (confirm == doitB):
        for e in cmds.ls(sl=True):
            outCount = cmds.getAttr('{}.outputCount'.format(e))
            for x in range(outCount):
                loc = cmds.joint(n='{}_out{}'.format(e, x))
                cmds.select(clear=True)
                cmds.connectAttr('{}.outputs[{}].translate'.format(e, x), '{}.translate'.format(loc), f=True)
                cmds.connectAttr('{}.outputs[{}].rotate'.format(e, x), '{}.rotate'.format(loc), f=True)
                cmds.connectAttr('{}.outputs[{}].scale'.format(e, x), '{}.scale'.format(loc), f=True)
def createOutputJnts(*args):
    exitB = 'Exit'
    doitB = 'doIt'
    if (not cmds.ls(sl=True)):
        logger.warning('You must have a {} selected!'.format(nem_typeids.HA_NODENAME))
        return
    confirm = cmds.confirmDialog(title='Create?', message='Ok?', button=doitB, db=doitB, b=exitB, cb=exitB)
    if (confirm == doitB):
        for e in cmds.ls(sl=True):
            outCount = cmds.getAttr('{}.outputCount'.format(e))
            for x in range(outCount):
                loc = cmds.joint(n='{}_out{}'.format(e, x))
                cmds.select(clear=True)
                cmds.connectAttr('{}.outputs[{}].translate'.format(e, x), '{}.translate'.format(loc), f=True)
                cmds.connectAttr('{}.outputs[{}].rotate'.format(e, x), '{}.rotate'.format(loc), f=True)
                cmds.connectAttr('{}.outputs[{}].scale'.format(e, x), '{}.scale'.format(loc), f=True)