def equalize_bcps(glyph):
    glyph.prepareUndo()
    for contour in glyph.contours:
        for point in contour.bPoints:
            if point.selected:
                x, y = point.bcpIn
                if x <> 0:
                    point.bcpIn = (x, 0)
                    point.bcpOut = (-x, 0)
                if y <> 0:
                    point.bcpIn = (0, y)
                    point.bcpOut = (0, -y)
    glyph.performUndo()
Equalize ``bcps`` from selected points in glyph.
dataset/ETHPy150Open gferreira/hTools2/Lib/hTools2/modules/glyphutils.py/equalize_bcps