trigger.utils.jointify

Module for converting blendshape deformations joint based deformations

Classes

Bone

Driver

Jointify

Progressbar

Shape

Functions

get_std_deviation(value_list)

Module Contents

class Bone(joint)

Bases: object

add_driver(t_matrix_plug, r_matrix_plug, position_offset=(0, 0, 0))
clear_keys()
is_active(time_gap, translate_threshold=0.01, rotate_threshold=0.5, decimal=3)

Checks if the object is moving between the given time gap

is_clean()
property name
class Driver(name='drv', bone=None, time_gap=None, parent_node=None)

Bases: object

clear_node()
copy_keys()

copies the keys from the joint

drive()
get_animcurves()
property bone
property name
property time_gap
class Jointify(blendshape_node=None, joint_count=30, shape_duration=0, joint_iterations=30, fbx_source=None, root_nodes=None, parent_to_roots=True, correctives=False, corrective_threshold=0.01, *args, **kwargs)

Bases: object

collect_original_data()

Collects all target and hook plug data

Sample: { ‘blink’: {

‘connected’: True, ‘in’: ‘morph_hook.blink’, ‘out’: ‘trigger_morph_blendshape.blink’, ‘type’: ‘base’},

‘browLowerer’: {

‘connected’: True, ‘in’: ‘morph_hook.browLowerer’, ‘out’: ‘trigger_morph_blendshape.browLowerer’, ‘type’: ‘base’}

}

static copy_keys(source, target, time_range=None, start_frame=None)
create_dem_bones()

Exports the training set to DEM bones. does the training and get back the FBX

static get_inbetween_values(blendshape_node, target_name)

Returns percentages of inbetween targets. If there are no inbetweens, returns [100]

jointify()

Creates a joint version of the blendshape deformations using the dem bones data as guidance

prepare_training_set(smooth=False)

Creates a ROM from blendshape targets

run()
class Progressbar(title='', max_value=100)

Bases: object

close()
is_cancelled()
update(step=1)
class Shape(name, jointify_node, duration, combination_of=None, hook_attrs=None, delta_shape=None, corrective_bs=None)

Bases: object

add_driver(driver)
get_driver_names()
make_connections()
get_std_deviation(value_list)