Show frames

Go to: Related nodes. Attributes.

Description:

The shrinkwrap deformer node projects a geometry's vertices onto another surface (the 'target'), using either raycasting or by finding the closest point on the target surface. Another object can optionally be specified (the 'inner' object) to help define the direction of the rays cast. There are five main projection modes: "Toward Inner Object" - the ray from a vertex is cast towards the corresponding vertex on the inner object. (If no inner object is connected, falls back to "Toward Center".) "Toward Center" - rays are cast towards either the center of the target object's bounding box, or the world origin, depending on the boundingBoxCenter attribute. "Parallel To Axes" - rays are cast along the x/y/z axis of a space defined by the axisReference attribute. "Vertex Normals" - the ray from a vertex is cast along the (inverted) vertex normal. "Closest" - no raycasting is done; instead the closest point (in worldspace) on the inner object (if present) or target object is used.

At present, only poly meshes are supported as target and inner objects.

Node nameParentsClassificationMFn typeCompatible function sets
shrinkWrapweightGeometryFilterdrawdb/geometry/deformer/shrinkwrapkShrinkWrapFilterkBase
kNamedObject
kDependencyNode
kGeometryFilt
kShrinkWrapFilter

Related nodes

lattice, cluster, jointCluster, nonLinear, blendShape, skinCluster, boneLattice, wire, ffd, jointFfd, sculpt, jointLattice, flexorShape, deformFunc, deformSquash, deformTwist, deformBend, deformWave, deformFlare, deformSine, baseLattice, clusterHandle, wrap

Attributes (32)

alongX, alongY, alongZ, axisReference, bidirectional, boundaryRule, boundingBoxCenter, cachedInflatedTarget, cachedSmoothTarget, closestIfNoIntersection, continuity, falloff, falloffIterations, innerGeom, innerGroupId, inputEnvelope, keepBorder, keepHardEdge, keepMapBorders, offset, projection, propagateEdgeHardness, reverse, shapePreservationEnable, shapePreservationIterations, shapePreservationMethod, shapePreservationReprojection, shapePreservationSteps, smoothUVs, targetGeom, targetInflation, targetSmoothLevel

Long name (short name)TypeDefaultFlags
alongX (ax) boolfalseoutputinputconnectablestorablekeyable
If projection mode is Parallel To Axes, enables the x component of the axis.
alongY (ay) boolfalseoutputinputconnectablestorablekeyable
If projection mode is Parallel To Axes, enables the y component of the axis.
alongZ (az) boolfalseoutputinputconnectablestorablekeyable
If projection mode is Parallel To Axes, enables the z component of the axis.
axisReference (ar) enum0outputinputconnectablestorablekeyable
Space to use for the axes in Parallel To Axes mode.
bidirectional (bi) boolfalseoutputinputconnectablestorablekeyable
Tests rays in both directions.
boundaryRule (bnr) enum1outputinputconnectablestorable
Controls how boundary edges and vertices are creased. By default, creases are automatically applied to all boundary edges and all vertices that have only 2 incident edges prior to converted to a smooth mesh. Users can control this behavior by modifying this enum. The options are 0 - use the original legacy algorithm which did not automatically crease boundary edges and vertices. 1 - default setting, apply creasing 2 - apply creasing to edges only
boundingBoxCenter (bbc) boolfalseoutputinputconnectablestorablekeyable
Use the bounding box center for 'towards center' projections.
cachedInflatedTarget (cit) meshNULLoutputinputconnectablehidden
A cached inflated version of the target, when targetInflation is non-zero.
cachedSmoothTarget (cst) meshNULLoutputinputconnectablehidden
A cached smoothed version of the target, when targetSmoothLevel is non-zero.
closestIfNoIntersection (cni) boolfalseoutputinputconnectablestorablekeyable
If there is no ray intersection, fallback to 'closest' projection mode.
continuity (co) float1outputinputconnectablestorable
The smoothness parameter. Range is [0,1]. Default value of 1 smooths the faces as much as possible. Value of 0 subdivides faces only.
falloff (fo) distance (double)0.0cmoutputinputconnectablestorablekeyable
Falloff of the deformation into points where there was no intersection with the target surface.
falloffIterations (fi) short1outputinputconnectablestorablekeyable
Number of internal iterations when calculating falloff.
innerGeom (in) geometryNULLoutputinputconnectablestorable
Inner geometry
innerGroupId (igi) integer0outputinputconnectablestorable
The group id of the inner geometry
inputEnvelope (ien) float1arrayoutputinputconnectablestorablekeyable
How much of the deformation should be applied. 0.0 means no deformation at all; 1.0 means the full deformation. This per-input attribute is multiplied by the deformer's overall envelope.
keepBorder (kb) boolfalseoutputinputconnectablestorable
If true: border edges will not be smoothed.
keepHardEdge (khe) boolfalseoutputinputconnectablestorable
If true: hard edges will not be smoothed.
keepMapBorders (kmb) enum1outputinputconnectablestorable
Treatment of UV map borders 0 - all map border edges will be smoothed 1 - map borders that are also geometry borders will be smoothed 2 - no map borders will be smoothed
offset (o) distance (double)0.0cmoutputinputconnectablestorablekeyable
The offset of the shrinkwrapped surface along the target surface normal.
projection (prj) enum0outputinputconnectablestorablekeyable
Projection mode
propagateEdgeHardness (peh) boolfalseoutputinputconnectablestorable
If true: The smooth mesh preview edges which are a result of edges from the base cage will share the same hardness value.
reverse (rev) boolfalseoutputinputconnectablestorablekeyable
Reverse the ray direction.
shapePreservationEnable (spe) boolfalseoutputinputconnectablestorablekeyable
Enable shape preservation.
shapePreservationIterations (spi) short1outputinputconnectablestorable
Number of shape preservation iterations per step.
shapePreservationMethod (spm) enum0outputinputconnectablestorable
What information to use when calculating the shape preservation.
shapePreservationReprojection (spr) enum1outputinputconnectablestorablekeyable
When to reproject to the target surface during shape preservation.
shapePreservationSteps (sps) short1outputinputconnectablestorablekeyable
Number of steps of shape preservation to apply.
smoothUVs (suv) booltrueoutputinputconnectablestorable
If true: UVs as well as geometry will be smoothed
targetGeom (tgt) geometryNULLoutputinputconnectablestorable
Target geometry
targetInflation (ti) distance (double)0.0cmoutputinputconnectablestorablekeyable
Inflates the target shape along its surface normals before projecting.
targetSmoothLevel (tsl) short0outputinputconnectablestorablekeyable
The smoothing level to use when the target is a poly mesh.