unreal.GeometryScript_WeightMaps

class unreal.GeometryScript_WeightMaps(outer: Object | None = None, name: Name | str = 'None')

Bases: BlueprintFunctionLibrary

Geometry Script Library Mesh Weight Map Functions

C++ Source:

  • Plugin: GeometryScripting

  • Module: GeometryScriptingCore

  • File: MeshWeightMapFunctions.h

classmethod find_or_add_mesh_weight_map(target_mesh, name, debug=None) -> (DynamicMesh, weight_map_handle=GeometryScriptWeightMapHandle)

Find or add a weight layer with the requested name.

Parameters:
Returns:

weight_map_handle (GeometryScriptWeightMapHandle):

Return type:

GeometryScriptWeightMapHandle

classmethod get_mesh_weight_map_values(target_mesh, weight_map_handle, skip_gaps, debug=None) -> (DynamicMesh, weight_values=GeometryScriptScalarList, has_vertex_id_gaps=bool)

Get the values of a given mesh weight map as a scalar list

Parameters:
Returns:

weight_values (GeometryScriptScalarList): The weights of each vertex in the Target Mesh

has_vertex_id_gaps (bool): Whether any values in the list correspond to ‘skipped’ vertices. Will only be true if SkipGaps is false, and the Target Mesh is non-compact.

Return type:

tuple

classmethod remove_mesh_weight_map(target_mesh, weight_map_handle, debug=None) DynamicMesh

Remove the requested weight layer, if present.

Parameters:
Return type:

DynamicMesh

classmethod set_mesh_constant_weight_map_value(target_mesh, weight_map_handle, weight, debug=None) DynamicMesh

Set all weights in the given layer to a constant value

Parameters:
Return type:

DynamicMesh

classmethod set_mesh_selection_weight_map_value(target_mesh, weight_map_handle, selection, weight, debug=None) DynamicMesh

Set the weights on selected vertices to a constant value.

Parameters:
Return type:

DynamicMesh

classmethod set_mesh_weight_map_values(target_mesh, weight_values, weight_map_handle, skip_gaps, debug=None) DynamicMesh

Set the values of a given mesh weight map from a scalar list.

Parameters:
Return type:

DynamicMesh