trigger.utils.shape_editor

Editor for fixing/editing blendshape packs

Classes

Blendshape

ShapeEditor

Logic class responsible to storing blendshape pack data, preparing scene and objects for edit,

ShapeEditorException

Module Contents

class Blendshape(dag_path)

Bases: trigger.objects.base_node.BaseNode

static get_combination_parts(shape)
static get_percentage(shape)
static get_shape_type(shape)

Resolves the type of the blendshape

class ShapeEditor(blendshape_grp=None, neutral_shape=None)

Bases: object

Logic class responsible to storing blendshape pack data, preparing scene and objects for edit, previewing animations and committing change

static categorize_shapes(meshes)

puts each shape into the correct category

commit_shape()

Commits the working blendshape in work group and replaces it with the original

get_blendshapes(blendshape_pack_group)
prep_shape(shape_dag_path)

Prepares the shape for editing Args:

shape_dag_path: (String) scene path of the shape

Returns:

None

class ShapeEditorException
classmethod clear()
classmethod raise_error(msg)
classmethod raise_warning(msg)
critical = False
msg = ''