Go to: Related nodes. Attributes.

This node can be used to constrain points in a hair simulation.

Node nameParentsMFn typeCompatible function sets
hairConstraintshapekHairConstraintkBase
kNamedObject
kDependencyNode
kDagNode
kShape
kHairConstraint

Related nodes

hairSystem

Attributes (8)

constraintMethod, curveIndices, glueStrength, outPin, pointMethod, stiffness, uDistance, uParameter

Long name (short name)TypeDefaultFlags
curveIndices (cin) integer0arrayoutputinputconnectablestorable
HairSystem node index values used to determine curves affected by this constraint.
constraintMethod (cm) enum1outputinputconnectablestorablekeyable
This specifies how the hairpin constrains the hair. If off then no constraint is computed. HairToPin locks attaches the hair to the pin, such that moving the pin will drag along the hair. HairToHair will constrain the hair vertices at the pin location to other hair vertices. The attachments are created at the startframe and are based on the start position of the hairs. The closest points along each hair to the pin are the ones that get the constraint.
pointMethod (pmt) enum0outputinputconnectablestorablekeyable
This specifies how the point to constrain along each hair is determined. Nearest constrains the closest point on each curve to the constraint at the start frame. U Parameter constrains the point at that U value along the curve. The end of the curve is 1.0 . U Distance constrains the points at that distance in worldspace from the start of the curve.
stiffness (stf) double0.5outputinputconnectablestorablekeyable
The stiffness of the spring attachments created by the hair pin.
glueStrength (gst) double1.0outputinputconnectablestorablekeyable
Strength of glue holding the pin. A value less than one can allow the constraint to break during the simulation if the tension exceeds the strength.
uParameter (upr) double1.0outputinputconnectablestorablekeyable
If the point method is uParameter this determines the u value used in determining the point along curves to constrain.
uDistance (udi) double1.0outputinputconnectablestorablekeyable
If the point method is uDistance this determines the distance from the curve start that determines the point along curves to constrain.
outPin (opn) hairPinNULLarrayoutputconnectable
output hairpin data for use by hairSystemShape node