bgdev.utils.deformer¶
Utility methods for deformers.
- created
28/05/2018
- author
Benoit GIELLY <benoit.gielly@gmail.com>
-
transfer_base_weights
(source, target, joint=0)[source]¶ Transfer weights from source to target.
- Parameters
source (str) – Source deformer
target (str) – Target deformer
joint (int) – Index of joint in skinCluster
-
transfer_base_weights_api
(source, target, src_joint=0, tgt_joint=0)[source]¶ Transfer weights from source to target using OpenMaya.
- Parameters
source (str) – Source deformer
target (str) – Target deformer
joint (int) – Index of joint in skinCluster
-
update_lattice
(node, lattice, add=True)[source]¶ Add or remove node from lattice.
- Parameters
node (str) – The node to add into the existing lattice.
lattice (str) – The lattice (ffd) node.
add (bool) – True node to lattice if True, else remove it.
-
update_lattice_callback
(add=True)[source]¶ Call back
update_lattice()
.