Baseclass for ShapeKey and LiveKey.

Attributes
name—
category—
subcategory—
valuefloat—
Methods
as_bpy()Union[bpy.types.ShapeKey, 'BpyLiveKey']—
draw_prop()bpy.types.UILayoutDraw a slider of this key item in the given layout.

Attributes

KeyItem.name

source

No description yet.

No description yet.

No description yet.

KeyItem.value: float

source

No description yet.

Methods

KeyItem.as_bpy() → Union[bpy.types.ShapeKey, 'BpyLiveKey']

source

No description yet.

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

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

source

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

ParameterTypeDescription
layoutbpy.types.UILayoutlayout to draw in
value_propnameLiteral['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.