zBuilder.parameters package

Submodules

zBuilder.parameters.maps module

class zBuilder.parameters.maps.Map(*args, **kwargs)[source]

Bases: zBuilder.nodes.base.Base

get_mesh(long_name=False)[source]

Gets the stores name of the mesh associated with map.

Parameters:long_name – Returns long name. Default to False
Returns:Name of mesh.
get_mesh_component()[source]

Gets the mesh data object.

Returns:zBuilder data object of mesh.
interpolate()[source]

Interpolates map against mesh in scene. Re-sets value.

is_topologically_corresponding()[source]

Checks if mesh ih data object is corresponding with mesh in scene.

Returns:True if they are, else False.
populate(map_name=None, mesh_name=None)[source]

Populate node with that from the maya scene.

Parameters:
  • map_name – Name of map to populate it with.
  • mesh_name – Name of mesh to populate it with.
set_mesh(mesh)[source]

Stores the mesh name.

Parameters:mesh – The mesh name to store.
type = 'map'
values = None

str – Docstring after attribute, with type specified.

zBuilder.parameters.maps.get_weights(map_name, mesh_name)[source]

Gets the weights for the map. :param map_name: Map to get weights from. :param mesh_name: Mesh to check vert count.

Returns:value of map
Raises:ValueError – if there is a problem getting map.
zBuilder.parameters.maps.interpolate_values(source_mesh, destination_mesh, weight_list)[source]
Description:
Will transfer values between similar meshes with differing topology. Lerps values from triangleIndex of closest point on mesh.
Accepts:
sourceMeshName, destinationMeshName - strings for each mesh transform

Returns:

zBuilder.parameters.mesh module

class zBuilder.parameters.mesh.Mesh(*args, **kwargs)[source]

Bases: zBuilder.nodes.base.Base

build_mesh()[source]

Builds mesh in maya scene.

Returns:mesh name.
get_point_list()[source]

Get point List

get_polygon_connects()[source]

Get polygon Connects

get_polygon_counts()[source]

Get polygon counts.

is_topologically_corresponding()[source]

Compare a mesh in scene with one saved in this node. Currently just checking if vert count is same. Need to update this to a better method.

Returns:True if topologically corresponding, else False
mirror()[source]

Mirrors internal mesh by negating translate X on all points.

populate(mesh_name)[source]

Populate node with that from the maya scene.

Parameters:mesh_name – Name of mesh to populate it with.
set_point_list(point_list)[source]

Stores the point list.

Parameters:point_list (list) – List of points.
set_polygon_connects(pConnectList)[source]

Stores the polygon connects.

Parameters:pConnectList (list) – The connect list.
set_polygon_counts(pCountList)[source]

Stores the polygon counts.

Parameters:pCountList (list) – The count list.
type = 'mesh'

Type of node.

zBuilder.parameters.mesh.build_mesh(name, polygonCounts, polygonConnects, vertexArray)[source]

Builds mesh in maya scene. :param name: Name of mesh. :param polygonCounts: The polygon counts. :param polygonConnects: The polygon connects. :param vertexArray: The point list.

Returns:Name of newly built mesh.

Module contents