trigger.utils.shape_editor ========================== .. py:module:: trigger.utils.shape_editor .. autoapi-nested-parse:: Editor for fixing/editing blendshape packs Classes ------- .. autoapisummary:: trigger.utils.shape_editor.Blendshape trigger.utils.shape_editor.ShapeEditor trigger.utils.shape_editor.ShapeEditorException Module Contents --------------- .. py:class:: Blendshape(dag_path) Bases: :py:obj:`trigger.objects.base_node.BaseNode` .. py:method:: get_combination_parts(shape) :staticmethod: .. py:method:: get_percentage(shape) :staticmethod: .. py:method:: get_shape_type(shape) :staticmethod: Resolves the type of the blendshape .. py:class:: ShapeEditor(blendshape_grp=None, neutral_shape=None) Bases: :py:obj:`object` Logic class responsible to storing blendshape pack data, preparing scene and objects for edit, previewing animations and committing change .. py:method:: categorize_shapes(meshes) :staticmethod: puts each shape into the correct category .. py:method:: commit_shape() Commits the working blendshape in work group and replaces it with the original .. py:method:: get_blendshapes(blendshape_pack_group) .. py:method:: prep_shape(shape_dag_path) Prepares the shape for editing Args: shape_dag_path: (String) scene path of the shape Returns: None .. py:class:: ShapeEditorException .. py:method:: clear() :classmethod: .. py:method:: raise_error(msg) :classmethod: .. py:method:: raise_warning(msg) :classmethod: .. py:attribute:: critical :value: False .. py:attribute:: msg :value: ''