def parameters_ui(layout, params):
    """ Create the ui for the rig parameters."""
    r = layout.row()
    r.prop(params, 'neck_pos')
    r = layout.row()
    r.prop(params, 'pivot_pos')
    r = layout.row()
    r.prop(params, 'tail_pos')
    r = layout.row()
    r.prop(params, 'tweak_extra_layers')
    r.active = params.tweak_extra_layers
    col = r.column(align=True)
    row = col.row(align=True)
    for i in range(8):
        row.prop(params, 'tweak_layers', index=i, toggle=True, text='')
    row = col.row(align=True)
    for i in range(16, 24):
        row.prop(params, 'tweak_layers', index=i, toggle=True, text='')
    col = r.column(align=True)
    row = col.row(align=True)
    for i in range(8, 16):
        row.prop(params, 'tweak_layers', index=i, toggle=True, text='')
    row = col.row(align=True)
    for i in range(24, 32):
        row.prop(params, 'tweak_layers', index=i, toggle=True, text='')
