trigger.library.deformers
=========================
.. py:module:: trigger.library.deformers
.. autoapi-nested-parse::
Collection of deformer related functions
Attributes
----------
.. autoapisummary::
trigger.library.deformers.log
Functions
---------
.. autoapisummary::
trigger.library.deformers.add_object_to_lattice
trigger.library.deformers.add_target_blendshape
trigger.library.deformers.cluster
trigger.library.deformers.connect_bs_targets
trigger.library.deformers.create_proximity_wrap
trigger.library.deformers.create_shrink_wrap
trigger.library.deformers.create_wrap
trigger.library.deformers.get_bs_index_by_name
trigger.library.deformers.get_deformers
trigger.library.deformers.get_influencers
trigger.library.deformers.get_pre_blendshapes
trigger.library.deformers.localize
Module Contents
---------------
.. py:function:: add_object_to_lattice(obj, lattice_deformer)
Add the object to the lattice deformer.
This function does not rely on deformer sets which makes the assignment
possible where component tags are enabled in Maya versions 2022+
.. py:function:: add_target_blendshape(blendshape_node, target_mesh, weight=1.0)
.. py:function:: cluster(mesh)
.. py:function:: connect_bs_targets(driver_attr, targets_dictionary, driver_range=None, force_new=False, front_of_chain=True, bs_node_name=None)
Creates or adds Blendshape target and connects them into the same controller attribute
Args:
driver_attr (String): driver attribute which controls. tooth_ctrl.gumRetract
targets_dictionary (Dict): Dictionary for the targets.
Format: {: }
Example: {
"face_mesh": "faceGumRetract",
"meniscus": "meniscusGumRetract",
}
driver_range (List): If defined, remaps the driver attribute. Example: [0, 100]
force_new (Bool): If True, a new blendshape will be created for each mesh even though there are existing ones.
front_of_chain: Created blendshapes will be added front of the chain. Default True
bs_node_name: If a new blendshape node will be created it will take this name. If a blendshape node with this
name exists, it will use that one.
.. py:function:: create_proximity_wrap(driver, driven, wrap_mode='surface', name='tr_proximityWrap', max_drivers=1, falloff_scale=0.01, smooth_influences=0, smooth_normals=0, soft_normalization=0, span_samples=1)
.. py:function:: create_shrink_wrap(driver, driven, name=None, **kwargs)
Creates the Shrink Wrap deformer
Args:
driver: (String) Influence mesh object
driven: (String) Deforming mesh object
name: (String) Optional. If not provided '