def toggleEnds(state):
    "\n\tToggle the display state of all joint buffers ('Con') in the scene\n\t@param state: The display state to set the joint buffers to\n\t@type state: bool\n\t"
    endList = mc.ls('*End_jnt', type='joint')
    for endJnt in endList:
        if state:
            glTools.utils.base.displayOverride(endJnt, overrideEnable=1, overrideLOD=0)
            mc.setAttr((endJnt + '.drawStyle'), 0)
        else:
            glTools.utils.base.displayOverride(endJnt, overrideEnable=1, overrideLOD=1)
            mc.setAttr((endJnt + '.drawStyle'), 2)
        if mc.getAttr((endJnt + '.radius'), se=True):
            mc.setAttr((endJnt + '.radius'), 0.0)
            mc.setAttr((endJnt + '.radius'), cb=False)
        if mc.getAttr((endJnt + '.ro'), se=True):
            mc.setAttr((endJnt + '.ro'), cb=False)
    return endList
Toggle the display state of all joint buffers ('Con') in the scene
@param state: The display state to set the joint buffers to
@type state: bool
def toggleEnds(state):
    "\n\tToggle the display state of all joint buffers ('Con') in the scene\n\t@param state: The display state to set the joint buffers to\n\t@type state: bool\n\t"
    endList = mc.ls('*End_jnt', type='joint')
    for endJnt in endList:
        if state:
            glTools.utils.base.displayOverride(endJnt, overrideEnable=1, overrideLOD=0)
            mc.setAttr((endJnt + '.drawStyle'), 0)
        else:
            glTools.utils.base.displayOverride(endJnt, overrideEnable=1, overrideLOD=1)
            mc.setAttr((endJnt + '.drawStyle'), 2)
        if mc.getAttr((endJnt + '.radius'), se=True):
            mc.setAttr((endJnt + '.radius'), 0.0)
            mc.setAttr((endJnt + '.radius'), cb=False)
        if mc.getAttr((endJnt + '.ro'), se=True):
            mc.setAttr((endJnt + '.ro'), cb=False)
    return endList