trigger.utils.face
Collection of face utils that are not complex enough to be an action or not yet implemented as action
Functions
|
Creates a morphable face target |
|
|
|
|
|
Basic eye bulge with shrink wrap and lattice deformer without the need for extra helper geo. |
Module Contents
- face_switcher(bs_node, tongue_cont, l_eye_plug, r_eye_plug, upper_teeth_joint, switch_data, pref_cont='pref_cont')
Creates a morphable face target
- Args:
bs_node: Final face blendshape node tongue_cont: Tongue Root controller l_eye_plug: plug joint for left eye r_eye_plug: plug joint for right eye upper_teeth_joint: joint that only moves the upper teeth (not the gum) switch_data: dictionaries list for each face target.
e.g.: switch_data = [ {
“name”: “Officer”, “face”: “charHumanAvA_officerFace_IDmulti_1”, “left_eye_pos”: (-3.1209197044372558594, 170.943603515625, -9.8993054047092847725), “right_eye_pos”: (3.0962610244750976562, 170.946258544921875, -9.8466892853245191475),
- },
{ “name”: “Karl”, “face”: “charHumanAvA_KarlFace_IDmulti_1”, “left_eye_pos”: (-3.2438907623291015625, 171.622161865234375, -9.4153041839599609375), “right_eye_pos”: (3.2974126338958740234, 171.62481689453125, -9.3626880645751953125),
}, {
“name”: “Elf”, “face”: “face_IDskin_1”, “left_eye_pos”: (-3.305, 171.376, -9.84), “right_eye_pos”: (3.305, 171.376, -9.84),
},
pref_cont: Optional, Controller which will hold the morph attributes. Default is ‘pref_cont’
Returns:
- lip_zipper(upper_lip_edges, lower_lip_edges, morph_mesh, final_mesh, pair_count, controller=None, negative_z_direction=True, prefix='lipZip')
- parse_sides(input_list)
- shrink_wrap_eyebulge(face_mesh, proxy_eye_ball, iris_guide, resolution=30, look_axis='+z', local_inf=2, eyescale=1.0, group=None)
Basic eye bulge with shrink wrap and lattice deformer without the need for extra helper geo.
- Args:
face_mesh (String): The mesh which will be deformed proxy_eye_ball (String): eye ball proxy. The scale attributes needs to be unlocked if eyescale is different than 1.0 iris_guide (String): Guide geometry (preferably joint) sits on the iris. resolution (int): overall resolution of the proxies and lattices. look_axis (str): Characters facing direction. Default is ‘z’. local_inf (int): Local influence value of lattice deformers. eyescale (float): Multiplier for eye scale. The movement will be as if the eye is this big. group (String): If defined, everything will be tucked inside this group. Else ‘eye_bulging’ group will be used
Returns: Eye Bulge Group