# KeyItem

> Human Generator for Blender documentation. Web version: https://humgen3d.com/docs/api/keyitem

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/keys/keys.py#L161

Baseclass for ShapeKey and LiveKey.

## Attributes

### name

```python
KeyItem.name
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/keys/keys.py#L171

### category

```python
KeyItem.category
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/keys/keys.py#L172

### subcategory

```python
KeyItem.subcategory
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/keys/keys.py#L174

### value

```python
KeyItem.value: float
```

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/keys/keys.py#L177

## Methods

### as_bpy()

```python
KeyItem.as_bpy() -> Union[bpy.types.ShapeKey, 'BpyLiveKey']
```

Returns: Union[bpy.types.ShapeKey, 'BpyLiveKey']

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/keys/keys.py#L184

### draw_prop()

```python
KeyItem.draw_prop(layout: bpy.types.UILayout, value_propname: Literal['value', 'value_limited', 'value_positive_limited'] = 'value') -> bpy.types.UILayout
```

Draw a slider of this key item in the given layout.

Parameters:
- `layout` (bpy.types.UILayout): layout to draw in
- `value_propname` (Literal['value', 'value_limited', 'value_positive_limited'], default 'value'): name of the property to draw. Defaults to "value". Only used for livekeys.

Returns: bpy.types.UILayout — bpy.types.UILayout: layout with the slider drawn in it, as row.

Source: https://github.com/OliverJPost/HumGen3D/blob/main/human/keys/keys.py#L190
