Go to: Related nodes. Attributes.

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

Node name Parents MFn type Compatible function sets
hairConstraint shape kHairConstraint kBase
kNamedObject
kDependencyNode
kDagNode
kShape
kHairConstraint

Related nodes

hairSystem

Attributes (8)

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

Long name (short name) Type Default Flags
curveIndices (cin) integer 0 arrayoutputinputconnectablestorable
HairSystem node index values used to determine curves affected by this constraint.
constraintMethod (cm) enum 1 outputinputconnectablestorablekeyable
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) enum 0 outputinputconnectablestorablekeyable
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) double 0.5 outputinputconnectablestorablekeyable
The stiffness of the spring attachments created by the hair pin.
glueStrength (gst) double 1.0 outputinputconnectablestorablekeyable
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) double 1.0 outputinputconnectablestorablekeyable
If the point method is uParameter this determines the u value used in determining the point along curves to constrain.
uDistance (udi) double 1.0 outputinputconnectablestorablekeyable
If the point method is uDistance this determines the distance from the curve start that determines the point along curves to constrain.
outPin (opn) hairPin NULL arrayoutputconnectable
output hairpin data for use by hairSystemShape node