trigger.library.api

Methods that use Maya Api

Functions

get_all_vertices(mesh_transform)

Return all vertices of given mesh

get_between_vector(node, target_point_list)

Get the between vector between the source node and target node list.

get_center(node_list)

Return the center world position of the given nodes.

get_mdag_path(node)

Return the API 2.0 dagPath of given node.

get_vertex_ids_in_radius(source_mesh, point_node[, ...])

get_world_translation(node)

Return given nodes world translation of rotate pivot.

select_vertices(mesh, id_list)

Selects vertices of the mesh with given id list

unlock_normals(transform[, soften])

Unlock the normals of the specified geometry.

Module Contents

get_all_vertices(mesh_transform)

Return all vertices of given mesh

get_between_vector(node, target_point_list)

Get the between vector between the source node and target node list. Args:

node: (String) source node target_point_list: (List) Target nodes

Returns: MVector

get_center(node_list)

Return the center world position of the given nodes.

get_mdag_path(node)

Return the API 2.0 dagPath of given node.

get_vertex_ids_in_radius(source_mesh, point_node, radius=0.2, select=False)
get_world_translation(node)

Return given nodes world translation of rotate pivot.

select_vertices(mesh, id_list)

Selects vertices of the mesh with given id list

unlock_normals(transform, soften=False)

Unlock the normals of the specified geometry.

Args:
transform (str or list): string or list of strings for the geometries

to unlock.

soften (bool, optional): If true, softens the edges with given

softedge_angle value. Defaults to True.